Operating System - HP-UX
1838105 Members
3629 Online
110124 Solutions
New Discussion

How to create new logical volumes on same disk?

 
Gulam Mohiuddin
Regular Advisor

How to create new logical volumes on same disk?

Need to create two new logical volumes of 4 GB each on the same disk.
The disk has already one logical volume but lots of free space/PE.

pvdisplay -v /dev/dsk/c6t0d2

--- Physical volumes ---
PV Name /dev/dsk/c6t0d2
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 2
PE Size (Mbytes) 4
Total PE 8629
Free PE 6679
Allocated PE 1950
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg01/lvol22 1875 1875
/dev/vg01/lvol36 75 75

--- Physical extents ---

Thanks,

Gulam.
Everyday Learning.
5 REPLIES 5
RAC_1
Honored Contributor

Re: How to create new logical volumes on same disk?

lvcreate /dev/vg0x

lvcreate -L "size" /dev/vgxx/ /dev/dsk/cxtxdx
There is no substitute to HARDWORK
Robert-Jan Goossens
Honored Contributor

Re: How to create new logical volumes on same disk?

Hi Gulam,

# lvcreate -L 4096 -n lvol2 /dev/vgXX /dev/dsk/cxtydz
# newfs -F vxfs /dev/vgXX/rlvol2

Regards,
Robert-Jan
Uday_S_Ankolekar
Honored Contributor

Re: How to create new logical volumes on same disk?

TO create logical volumen use lvcreate command

lvcreate -n newlvol /dev/vg01
lvextend -L 4000 /dev/vg01/newlvol /dev/dsk/c6t0d2

man lvcreate and lvextend for more.

-USA..
Good Luck..
Deoncia Grayson_1
Honored Contributor

Re: How to create new logical volumes on same disk?

lvcreate -L 4096 -n (logical volume name) vg01

newfs -F vxfs /dev/vgXX/rlvolXX
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
HGN
Honored Contributor

Re: How to create new logical volumes on same disk?

Hi

To create a logical volume on a particular disk is

#vcreate -n lvol_name /dev/vgxx

#lvextend -L xxxx/dev/vgxx/lvol_name /dev/dsk/cxtxdx

#lvdisplay /dev/vgxx/lvol_name (to confirm )

Rgds

HGN