Operating System - HP-UX
1753556 Members
5871 Online
108796 Solutions
New Discussion юеВ

Re: Mirroring on specific devices

 
SOLVED
Go to solution
Ajaysen Reddy
Advisor

Mirroring on specific devices

I have a VG which has 4 disks all containing 1000 PE. Disk1 and Disk2 are from XP ArrayX and Disk3 and Disk4 are from XP ArrayY. (PE size is 4MB)

I would like to create a lvol8 to be 2GB mirrored between disk1 and disk3, and lvol9 to be 2GB mirrored between disk2 and disk4.

A command line example would be appreciated.
6 REPLIES 6
DCE
Honored Contributor

Re: Mirroring on specific devices



try

lvextend -m 1 /dev/vg01/lvol8 /dev/dsk/cxtxdx

where cxtxdx is the disk where the you want the mirror image placed
Ajaysen Reddy
Advisor

Re: Mirroring on specific devices

DCE:

So first I create the logical volume on Disk 1
lvextend -l 5000
Then I would mirror it on the Disk 3
lvextend -m 1

Is this the correct syntax? Thx.
melvyn burnard
Honored Contributor

Re: Mirroring on specific devices

man lvextend
There is a perfectly good example in the man page
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
DCE
Honored Contributor
Solution

Re: Mirroring on specific devices



So first I create the logical volume on Disk 1

Yes, with lvcreate. then you use the lvextend

lvextend -l 5000
Then I would mirror it on the Disk 3
lvextend -m 1

correct
Ajaysen Reddy
Advisor

Re: Mirroring on specific devices

@DCE: Thank you for the info. That really helps in understanding, mirroring on to PVs of choice.

@melvyn: I wish they improve the examples and could add a few more with a little more complexity. I am sure that many VGs have more that 2 PVs, and hence a LV extension with a specific PVs would have been good.
Ajaysen Reddy
Advisor

Re: Mirroring on specific devices

I just wish that the man pages for "lvextend" had some complex examples as every admin would look at this man page at some time.