1752796 Members
5764 Online
108789 Solutions
New Discussion юеВ

Mirror disk

 
SOLVED
Go to solution
Waqar Razi
Regular Advisor

Mirror disk

How can we find that physical volumes in a certain volume group are mirrored or not?
7 REPLIES 7
Oviwan
Honored Contributor
Solution

Re: Mirror disk

hey

check with lvdisplay:
lvdisplay -v /dev/vgXX/lvolYY | more

Regards
Sharma Sanjeev
Respected Contributor

Re: Mirror disk

Hi

Do lvdisplay -v it will show you values Like Mirror Copies

VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 512
Current LE 32
Allocated PE 64
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Deepak Kr
Respected Contributor

Re: Mirror disk

Hi Waqar,

You can use following command:

lvdisplay /dev/vg_name/lv_name
or

lvdisplay /dev/vg_name/lv_name|grep "Mirror copies"

Hope this will answer your query!!

"There is always some scope for improvement"
SUDHAKAR_18
Trusted Contributor

Re: Mirror disk

Also check

#lvlnboot -v
#setboot -v
Sharma Sanjeev
Respected Contributor

Re: Mirror disk

Hi SUDHAKAR

This will only show for Boot Disk :-)
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Sunil Garg
Occasional Advisor

Re: Mirror disk

Hi,

We may or may not have all the physical volumes under a Volume Group mirrored. It is better to ask if a particular logical volume is mirrored or not.

Nd that can be identified with lvdisplay command, which lists its description, ranging from size to its data distribution on concerned physical volume.
Michael Steele_2
Honored Contributor

Re: Mirror disk

Hi:

Although you can use 'lvdisplay -v' on each lvol this can be a little longer of a search then 'pvdisplay -v' will provide.

a) pvdisplay -v | more (* about 2nd page all the lvols mounted to the PV will appear *)

b) lvdisplay -v /dev/vg##/lvol# | more

first page will have a data field called "mirrors" 1 = mirrored to another pv, 2 to two pv's, 0 to no pv's.

2nd page will list out the name of the pvs
Support Fatherhood - Stop Family Law