Operating System - HP-UX
1850474 Members
3420 Online
104054 Solutions
New Discussion

Re: Specify one Logical Volume per disk

 
SOLVED
Go to solution
Sammy_2
Super Advisor

Specify one Logical Volume per disk

How do I specify on LV creation to assign a logical volume to a particular disk. (as oppose to LV being allocated to the first disk with available PE in a volume group ). I want to allocate one logical volume (of size 4GB)to one disk (of 18GB) exclusively and the next LV allocated to 2nd disk in the volume group and so forth. Don't want multiple LV's in one disk. Let me know I need clarification.
Thanks as always.
good judgement comes from experience and experience comes from bad judgement.
2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: Specify one Logical Volume per disk

If my physical volume has 2000 extents then I can do this. From the output of 'vgdisplay -v /dev/mygrp' Your disks will be displayed. (of course they have to added first)

# lvcreate -n mylv /dev/mygrp
# lvextend -l 2000 /dev/mygrp/mylv /dev/dsk/c0t6d0

This will create a 2000 extent logical volume on the one disk. Then you can do the next one etc.
Anyone for a Mutiny ?
Sammy_2
Super Advisor

Re: Specify one Logical Volume per disk

Mike,
Perfect answer. Tried and it worked.
Thanks a bunch.
good judgement comes from experience and experience comes from bad judgement.