Wednesday, May 15, 2013

Logical Volume Creation in HP-Unix 11iv3


1.Create Physical volume :

# pvcreate /dev/rdisk/disk38
Physical volume "/dev/rdisk/disk38" has been successfully created.





2.Create Volume Group :
# vgcreate -s 8 /dev/vg01 /dev/disk/disk38
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

Create LV:
# lvcreate -L 400m -n lv_001 /dev/vg01
Logical volume "/dev/vg01/lv_001" has been successfully created with
character device "/dev/vg01/rlv_001".
Logical volume "/dev/vg01/lv_001" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

# newfs -F vxfs /dev/vg01/rlv_001
    version 7 layout
    409600 sectors, 409600 blocks of size 1024, log size 1024 blocks
    largefiles supported

#mount /dev/vg01/lv_001 /data

Add the entries in /etc/fstab file for permanent mount.

No comments:

Post a Comment