Lists all filesystems in the /etc/filesystems entry.
# lsfs
List all filesystems with detailed info.
# lsfs -q
To list all filesystems (default).
# lsfs -a
To specify the output in list format.
# lsfs -l
To specify the output in column format.
# lsfs -c
To lists all jfs filesystems.
# lsfs -v jfs
To lists all jfs2 filesystems.
# lsfs -v jfs2
Creates FS /testfs of type jfs in VG testvg of blocksize 64465.
# crfs -v jfs -g testvg -a size=64465 -m /testfs
Create FS /testfs of type jfs on device /dev/lv00.
# crfs -v jfs -d /dev/lv00 -m /testfs
Create a Filesystem /test of type jfs2 on VG testvg with 10G size.
crfs -v jfs2 -g testvg -m /test -A yes -a size=10G -p rw
Create a Filesystem /test of type jfs2 on LV testlv(Not required to specify size here)
crfs -v jfs2 -d testlv -m /test -A yes -p rw
To change size of FS /si to 24576 x 512 bytes blocks (12 MB).
# chfs -a size=24576 /si
To add 24576 x 512 byte blocks to FS /si.
# chfs -a size=+24576 /si
To decrease the filesystem size in AIX.
# chfs -asize=-500M /file/system
To change the mount point from /si to /bi
# chfs -m /si /bi
To auto mount the filesystem si.
# chfs -A /si
To Remove account attribute of /si. ( from /etc/filesystems file).
# chfs -d account /si
To mount the 2nd copy of mirrored filesystem oracle to /backup in read-only mode.
# chfs -a splitcopy=/backup -a copy=2 /oracle
To delete filesystem /testfs and associated LV.
# rmfs /testfs
To deletes FS /testfs its mount point and associated LV.
# rmfs -r /testfs
To defragment the file system /sifs.
# defragfs /sifs
Display the current defrag status of the file system.
# defragfs -q /sifs
To fsck the filesystem associated to /dev/lv00 assuming response "yes"
# fsck -y n /dev/lv00
To restore superblock from backup superblock
fsck -p /dev/lv00
Previous posts we were discussed commands list for physical volumes AIX LVM Physical Volume Commands
AIX Volume Group Commands AIX LVM Volume Group Commands
AIX Logical Volume commands AIX Logical Volume Commands
No comments:
Post a Comment