Operating System - HP-UX
1834097 Members
2200 Online
110063 Solutions
New Discussion

Create lv on a specific disk

 
SOLVED
Go to solution
Karl-Johan Halléni
Occasional Advisor

Create lv on a specific disk

In HP-UX 11.00, how is it possible to create a new logical volume on by me specified disk?

Thank you in advance!
5 REPLIES 5
Jeff Machols
Esteemed Contributor
Solution

Re: Create lv on a specific disk

first just create the LV with no size. Then you can extend the volume to the disk

lvcreate -n lvol1 /dev/vg01

lvextend -L 100 /dev/vg01/lvol1 /dev/dsk/c1t1d0
Craig Rants
Honored Contributor

Re: Create lv on a specific disk

You can use the -C option with lvcreate so that it will create the lvol on one disk. If that is not the disk that you want you can create a mirror on the other disk, then break by removing the primary so it leaves the info on the physical disk you want. Of course you need MirrorDisk/UX for the second part.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Helen French
Honored Contributor

Re: Create lv on a specific disk

hey,

Create the LV with no size (-n) and you may extend it to a specific disk.

In Mirror/UX u can use the strict/Contigous options.

see man lvcreate and man lvextend

Shiju
Life is a promise, fulfill it!
Karl-Johan Halléni
Occasional Advisor

Re: Create lv on a specific disk

Thank you Jeff, you made my day!
Jeff Machols
Esteemed Contributor

Re: Create lv on a specific disk

my pleasure, you can also do this on an existing filesystem with the pvmove command if you have the need.

pvmove device_from device_to

so

pvmove /dev/dsk/c1t1d0 /dev/dsk/c1t1d2