Create filesystem in AIX

1. Create the logical volume (fslv01) using volume group (in this case datavg) with 1Gb size.
# mklv -y fslv01 -t jfs2 datavg 1G

2. Create the filesystem on the logical volume fslv01 with mount point /filesystem
# crfs -v jfs2 -d /dev/fslv01 -m /filesystem -A yes -p rw

3. Modify the ownership
# chown user:group /filesystem

4. Mount the filesystem and modify the ownership
# mount /filesystem ; chown user:group /filesystem

5. Verify permissions, also check with df filesystem is mounted.
# ls -ld /filesystem

drwxr-xr-x    3 user  group         256 Sep 16 13:07 /filesystem

Create filesystem with enabled large files. Here’s the syntax.

# mklv -y <lvname> -t jfs2 <volume group> <size>

# crfs -v  jfs2 -a bf=true  -d /dev/<lvname> -m /<mount_point> -A yes -p rw

Leave a Reply

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

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

Google photo

You are commenting using your Google 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