1835421 Members
2371 Online
110078 Solutions
New Discussion

Mirror Disk

 
SOLVED
Go to solution
Ricky B. Nino
Frequent Advisor

Mirror Disk

Hi,

How will I check if a given Disk in my system was configured as a mirror disk?

Thanks and regards...
Opportunities expand for people willing to put time and effort into learning new skills.
5 REPLIES 5
Michael Tully
Honored Contributor
Solution

Re: Mirror Disk

Hi,

There is no direct method. You can do these procedures to check.

# vgdisplay -v /dev/vg00
From the output of this, grab say /dev/vg00/lvol4 and it will say how many used physical volumes "Used PV"

# lvdisplay -v /dev/vg00/lvol4
This will display the primary and secondary volumes for the logical volume. To confirm the disks in the volume group, check how many disks are in the volume group in the header of vgdisplay, and in the tail where each of the drives are listed.

Regards
Michael
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: Mirror Disk

Hi,

If you are asking about boot disk, then you would do the following

1. lvlnboot -v

Look for two boot disks. The boot, root, swap logical volumes should show both the disks.

2. Do a lifls /dev/dsk/cxtydz and it should print out the LIF information

3. lifcp /dev/dsk/cxtydz:AUTO -
should print the contents of AUTO file

4. Do an "lvdisplay -v /dev/vg00/lvolx" for all the logical volumes. The output should show the disks on which it is mirrored. Also in the lvdisplay output, you should "Mirror Copies" line.

For non-bootable disks, you need to do 'lvdisplay -v /dev/vgxx/lvolx' to find if the lvols are mirrored. To get the list of lvols on the system, do

vgdisplay -v |grep "LV Name" |awk '{print $3}'

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
T G Manikandan
Honored Contributor

Re: Mirror Disk

If you are using MirrorUX
Mirroring is implemented at the logical volume level
So just do a

lvdisplay -v lvol_name

check for the output for the field "Mirror copies" which should have a non-zero value.

Trond Haugen
Honored Contributor

Re: Mirror Disk

It is not the disks as such that are mirrored, but the lvols. If you want to check if a lvol is mirroed run 'lvdisplay /dev/vgxx/lvoly' and check if 'Mirror copies' is greater than 0. If you want to know which disks the lvol resides on run 'lvdisplay -v /dev/vgxx/lvoly | more'.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Sunil Sharma_1
Honored Contributor

Re: Mirror Disk

Hi,

As other guys comments there is no mirroring on disk level in HP unix, it's logical volumes based mirroring.
but if you want to find out disk is containing any mirrored volume then first you have to find out which volumes are using that disk with command.
pvdisplay -v /dev/dsk/cxtydz

it will give you details about disk used by LVM.
then you can see wheather volumes belong to that disks are mirrored or not using
lvdisplay -v /dev/vgXX/lvolYY

in out put of above command it will show physical/logical extent allocation if any volume is mirrored then in o/p you will get 2 physical extents map to one logical extent.

Regards
Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***