Operating System - HP-UX
1753648 Members
5897 Online
108798 Solutions
New Discussion юеВ

mirroring of the non - root disk

 
naraguna
Occasional Contributor

mirroring of the non - root disk

How to do the mirroring of the non - root disk, say like the path of the 2 disks are dev/dsk/c0t1d1 and /dev/dsk/c0tod2

Pls let me know
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: mirroring of the non - root disk

man lvextend
or read the System Administrator manual at http://docs.hp.com
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Basheer_2
Trusted Contributor

Re: mirroring of the non - root disk

Hello,


lets say yo have a vg01 with dev/dsk/c0t1d1 and it has 2 lvols lvol1 and lvol2

1) pvcreate /dev/rdsk/c0tod2
2) vgextend /dev/vg01 /dev/dsk/c0tod2
now mirror the lvs to the 2nd disk
3) lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0tod2

4) lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/c0tod2

Repeat lvextend for all lvols

5) lvdisplay -v /dev/vg01/lvol1 | more

Mirror copies will show as 1

under ---logical extents----
you will see your first disk PV1 and also your 2nd disk PV2



Johnson Punniyalingam
Honored Contributor

Re: mirroring of the non - root disk

man lvextend (man pages are you freindly advisors with examples shown)

Hope you have (HP-UX mirror Package has been installed)

# lvextend -m 1 /dev/vgname/lvolname /dev/dsk/cxtxdx

# lvdisplay -v /dev/vgname/lvolname |more
Mirror copies 1

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t2d0 256 256
/dev/dsk/c2t0d0 256 256



(look for mirror copes = 1) means you have (1) mirror copy & under distirubtion og LV you should able to another (PV) C2t0d0
Problems are common to all, but attitude makes the difference
Kapil Jha
Honored Contributor

Re: mirroring of the non - root disk

You may also like to understand PVG concept if your vg is going to increase.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Taifur
Respected Contributor

Re: mirroring of the non - root disk

Hi,

follow below procedure,
1. First create pv
see man pages of PV craete
2. create vgcreate
3.create lvol
4.lvextend -m 1 /dev/vgname/lvolname dev/dsk/c0t1d1 /dev/dsk/c0tod2

check man pages of pvcreate, vgcreate, lvcreate, lvextend

cheers,
Taifur
Rohak
Advisor

Re: mirroring of the non - root disk

1. initialize the disk in lvm with pvcreate command
2. Extend VG with new disk (vgextend command)
3. lvextend with -m 1 ( Create mirror in new disk)

4. Check mirror with lvdisplay command.