1832276 Members
1892 Online
110041 Solutions
New Discussion

Re: disk mirrored

 
SOLVED
Go to solution
SILVERSTAR
Frequent Advisor

disk mirrored

Hi ,

without using sam how can i check if a disk is mirrored ?

thanks
3 REPLIES 3
Bhushan Bumber
Frequent Advisor
Solution

Re: disk mirrored

You can do a display of the volume

lvdisplay
example

lvdisplay /dev/vg00/lvol3
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1


Here mirror =1 means there is one mirror. If it is 0 then no mirror.

Ciao
There is a solution to every problem.
Hemmetter
Esteemed Contributor

Re: disk mirrored

Hi,

LVM does not mirror disks but lvols, so
$ lvdisplay /dev/vgXY/lvolZ
should have a line with "Mirror Copies".

SEE also:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1063376

rgds
HGH


Calandrello
Trusted Contributor

Re: disk mirrored

lvdisplay -v /dev/vgxx/lvxxx
it has that to appear of the following form:


--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 304
Current LE 38
Allocated PE 76
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t2d0s2 38 38
/dev/dsk/c3t2d0s2 38 38

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c0t2d0s2 00000 current /dev/dsk/c3t2d0s2 00000 current
00001 /dev/dsk/c0t2d0s2 00001 current /dev/dsk/c3t2d0s2 00001 current

it must not have no PE with stale. in case that it exists some executes lvsync /dev/vgxxx/lvxxx