Lists all filesystems in the /etc/filesystems entry:
# lsfs
List all filesystems with detailed info:
# lsfs -q
To list all filesystems (default):
# lsfs -a
Specify the output in list format:
# lsfs -l
Specify the output in column format:
# lsfs -c
Lists all jfs2 filesystems:
# lsfs -v jfs2
Change size of FS /blah to 49152 x 512 bytes blocks (24 MB):
# chfs -a size=49152 /blah
Add 49152 x 512 byte blocks to FS /blah:
# chfs -a size=+49152 /blah
Change the mount point from /blah to /blah-bkp:
# chfs -m /blah /blah-bkp
To auto mount the filesystem blah:
# chfs -A /blah
Remove account attribute of /blah. ( from /etc/filesystems):
# chfs -d account /blah
This will mount the 2nd copy of mirrored filesystem /www to /backup in read-only mode:
# chfs -a splitcopy=/backup -a copy=2 /www
Creates FS /blah of type jfs2 in VG testvg of blocksize 128930:
# crfs -v jfs2 -g leetvg -a size=128930 -m /blah
Create FS /blah of type jfs on device /dev/lv_blah:
# crfs -v jfs2 -d /dev/lv_blah -m /blah
Enable Cio on a filesystem:
# chfs -a options=rw,cio /blah
Deletes FS /blah and associated LV:
# rmfs /blah
Deletes FS /blah its mount point and associated LV:
# rmfs -r /blah
To defragment the file system /blah:
# defragfs /blah
Display the current defrag status of the file system:
# defragfs -q /blah
To fsck the filesystem associated to /dev/lv00 assuming response "yes":
# fsck -y n /dev/lv007
To restore superblock from backup superblock:
# fsck -p /dev/lv007