Yulianto is Piyut

Sekedar Celotehan dan Ungkapan Perasaan

Archive for December, 2007

Configuring File System on HP-UX using LVM

Posted by piyut on Wednesday, December 12, 2007

Before you perform the installation, verify that you have root permissions on the Agent Host.

1. Create Volume Group

Note: the following example is using the disk c1t6d0, the volume group vg01, the logical volume lvtest, and mount point /test

1.1 Identify the disks to be used for LVM

# ioscan -nfC disk

1.2 Create a LVM data structure on each identified disk

# pvcreate /dev/rdsk/c1t6d0

Note: if the disk was previously used in another VG, use the following command instead:

# pvcreate -f /dev/rdsk/ c1t6d0

1.3 Collect all the physical volumes to form a new volume group

1.3.1 Go to dev directory (/dev)

# cd /dev

1.3.2 Create VG name

# mkdir vg01

1.3.3 Make directory and special file in VG

# mknod /dev/vg01/group c 64 0×010000

Note: the group number (last parameter – 0×010000 ) is in hexadecimal and should be different for each volume group

1.3.4 Create the volume group

# vgcreate -s [pe_size] -e [max_pe] /dev/vg01 /dev/dsk/ c1t6d0

Note: when a volume group is created without define pe_size and max_pe parameter, the maximum physical extents per volume (max_pe) will be set to the max_pe of the largest physical volume (PV). The effect of not setting the max_pe parameter would be that any PV added to the volume group in the future regardless of there size will be limited to the volume groug creation value of max_pe. Therefore, consider increasing the max_pe to accommodate PV’s that may likely be larger than the largest PV used to create the Volume Group. The formula to use to determine the value is:

physical_extent_size * max_pe = size_of_the_disk.

The default value for physical_extent_size is 4 MB and the maximum value for max_pe is 65535 Read the rest of this entry »

Posted in HP-UX | 9 Comments »