Operating System - HP-UX
1827838 Members
1449 Online
109969 Solutions
New Discussion

Mirror unix and vgdisplay

 
Ming Wong
Frequent Advisor

Mirror unix and vgdisplay

Dear expert,

I would know that "vgdisplay -v" can't show all mirrored group's disk after Mirror Unix formed. Is that right?

thanks,
Ming
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Mirror unix and vgdisplay

Shalom Ming,

If vgdisplay -v does not show mirrors, then you may not have successfully mirrored the volume group.

Refer to this mirroring procedure:
http://www.hpux.ws/?p=21

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: Mirror unix and vgdisplay

Mirroring isn't done at the volume group level - it's done at the logical volume level - its entirely possible to have some LVs in a VG mirrored and some not - what information would vgdisplay then?

To see what's mirrored you need to use lvdisplay on your LV names

HTH

Duncan

I am an HPE Employee
Accept or Kudo

Re: Mirror unix and vgdisplay

To see the status of mirrored LVs across all your volume groups try this:

vgdisplay -v | awk '/VG Name/ {print $3}' | while read vg
do
vgdisplay -v $vg | awk '/LV Name/ {print $3}' | while read lv
do
echo "$lv \c"
lvdisplay $lv | grep "Mirror copies"
done
done

HTH

Duncan

I am an HPE Employee
Accept or Kudo