Create VG/LV and File System in AIX
Create the volume group:
To create a volume group that can accommodate a maximum of 1024 physical volumes and 2048 logical volumes, type:
mkvg -S -y’volgrp1′ -s’128′ -P’1024′ -v’2048′ hdisk1
note:
add -f to force if needed
Create Logical Volume and Filesystem
LV=fslv07
MNT=/usr/local/bin/test
VG=vg101
SIZE=80
/usr/sbin/mklv -y ${LV} -t ‘jfs2′ -a’ie’ -e’x’ -L ${MNT} ${VG} ${SIZE}
crfs -v jfs2 -d ${LV} -m ${MNT} -A yes -p rw
mount ${MNT}
Advertisement
