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

~ by mailist on December 7, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.