1838334 Members
3063 Online
110125 Solutions
New Discussion

Re: mirroring issue

 
SOLVED
Go to solution
hpuxhelp
Regular Advisor

mirroring issue

how i determine if the o/s was mirrored ?
will lvdisplay show this?
4 REPLIES 4
Tom Danzig
Honored Contributor
Solution

Re: mirroring issue

Yes. Look at the line "Mirror copies"

i.e.
Mirror copies 1
Pete Randall
Outstanding Contributor

Re: mirroring issue

Yes lvdisplay will show you the number of mirror copies - if it's not 0, you're mirrored.

Pete

Pete
Mark Greene_1
Honored Contributor

Re: mirroring issue

If the disks are mirrored, you can verify the integrity of the mirror like this:

lvdisplay -v /dev/vg00/lvol*|grep "stale"

If all is well, this won't return anything; otherwise you'll see the partitions that have gone stale. If you have any, look through the syslog for any disk and/or IO related errors.

HTH
mark
the future will be a lot like now, only later
Jac Kersing
New Member

Re: mirroring issue

lvdisplay will show if the logical volumes are mirrored, NOT if the boot area has been mirrored as well which might be handy if you want to be able to boot the system when the primary disk failed.

Run:

if [ -f /etc/lvmtab ] then boot=`lvlnboot -v 2>&1 | awk '/Boot Disk/ {print $1} '` else boot=`mount | awk '/^\/ / { print $3 }'` fi for i in $boot do boot2=`echo $i|sed "s/s[0-9].*/s6/p"|sed "s/dsk/rdsk/p"|grep rdsk` echo "\n" diskinfo $boot2 | fold echo "\n--- LIF contents of $i ---\n" lifls -l $i echo "\n--- LIF AUTO boot string of $i ---\n" lifcp $i:AUTO - echo "\n" done

The output should contain '--- LIF AUTO boot string of ' twice if the system is bootable from the mirror as well.