1834804 Members
2939 Online
110070 Solutions
New Discussion

How mirror will happen

 
k_philemon
Occasional Contributor

How mirror will happen

Iam having a database server HPUnix 11.11, and i have vgsg volume group for database which has 6 HDD of 36GB in this VGSG Volume group.It is configured as raid1 (mirroring. i wanted to know how mirroring will happen. Because one of the HDD is not getting senced now. i wanted to know eachdisk has another mirror disk or how it will be.
phease help me

Philemon.
2 REPLIES 2
Jaime Bolanos Rojas.
Honored Contributor

Re: How mirror will happen

K Philemon,

this might sound a bit strange to you, but un hp-ux hard drives are not mirrored to each other, neither volume groups.
what are mirrored are the logical volumes inside the volumes groups.

To identify which LVs are mirrored, you want to display and lvdisplay -v on the logical volumes and watch for the mirror field, if it says one, then it's mirror.

If you already know what drive is the one not being detected, then do a pvdisplay -v /dev/dsk/cxtxdx on it the disk to identify which logical volumes where difined on it.

Then we got identify if you really got a faulty drive.
If you really have mirrors in the drive.
How to rebuild the mirror after replacing the drive is that was the case, etc.

Regards,

Jaime.
Work hard when the need comes out.
Torsten.
Acclaimed Contributor

Re: How mirror will happen

As already mentioned, only the LVOLs are mirrored.
To find it out, use "lvdisplay -v /dev/vgx/lvolx":

lvdisplay -v /dev/vg03/lvol3|more
--- Logical volumes ---
LV Name /dev/vg03/lvol3
VG Name /dev/vg03
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
...

If you have "Mirror copies 1 " your LVOL is mirrored. The command will tell you also, where the mirror copies are, e.g.

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t9d0 2170 2170
/dev/dsk/c0t1d0 2170 2170

You can do this for each LVOL.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!