1840181 Members
2768 Online
110162 Solutions
New Discussion

Mirroring..

 
zeeshan_1
Occasional Contributor

Mirroring..

command to check whether disk has been mirored or not?
7 REPLIES 7
IT_2007
Honored Contributor

Re: Mirroring..


you need to run lvdisplay -v /dev/vg00/lvol1 |more

--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1 <<<<===== You should see this
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1808
Current LE 113
Allocated PE 226
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
Jonathan Fife
Honored Contributor

Re: Mirroring..

See this thread from yesterday: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1063155

If the disk is under VxVM you will need to use different commands -- eg.
vxprint -t -v -e 'aslist.aslist.sd_disk=""'
to list the lvols and then
vxprint -ht
to list the plexes. If there is more than one plex it is mirrored.
Decay is inherent in all compounded things. Strive on with diligence
DCE
Honored Contributor

Re: Mirroring..


Mirroring does not take place at the disk level. It occurs at the logical volume level. You will to check each logical volume with the lvdisplay -v command to verify it is mirrored.
Jaime Bolanos Rojas.
Honored Contributor

Re: Mirroring..

Zeeshan,

Also if your disks are not mirrored, and you would like to do that, you will need a software call Mirror-Disk UX to be able to configure the mirror on the logical volumes.

Regards,

Jaime.
Work hard when the need comes out.
spex
Honored Contributor

Re: Mirroring..

# lvdisplay | grep ^Mirror
amestak
New Member

Re: Mirroring..

Hi every body,
i thinks with base veritas vxvm 3.5 u can mirrorr root disk without having mirror disk.
U should first encapsulate u boot disk with veritas volume manager
Coolmar
Esteemed Contributor

Re: Mirroring..

You can do an lvdisplay -v /dev/vgXX/lvolX and it will output something like this:

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t2d0 25 25
/dev/dsk/c2t2d0 25 25

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c1t2d0 00568 current /dev/dsk/c2t2d0 00568 current
00001 /dev/dsk/c1t2d0 00569 current /dev/dsk/c2t2d0 00569 current
00002 /dev/dsk/c1t2d0 00570 current /dev/dsk/c2t2d0 00570 current
00003 /dev/dsk/c1t2d0 00571 current /dev/dsk/c2t2d0 00571 current
00004 /dev/dsk/c1t2d0 00572 current /dev/dsk/c2t2d0 00572 current
00005 /dev/dsk/c1t2d0 00573 current /dev/dsk/c2t2d0 00573 current
00006 /dev/dsk/c1t2d0 00574 current /dev/dsk/c2t2d0 00574 current
00007 /dev/dsk/c1t2d0 00575 current /dev/dsk/c2t2d0 00575 current
00008 /dev/dsk/c1t2d0 00576 current /dev/dsk/c2t2d0 00576 current
00009 /dev/dsk/c1t2d0 00577 current /dev/dsk/c2t2d0 00577 current
00010 /dev/dsk/c1t2d0 00578 current /dev/dsk/c2t2d0 00578 current


It will show you which disks are mirrored and if the mirrors are "current" or "stale". Current means that all is well and everything is in sync, whereas stale means that there is a problem.