VXFS Commands
VXFS Commands
SETTING UP A FILE SYSTEM Action Make a VxFS file system Mount a file system Unmount a file system Determine file system type Report free blocks/inodes Check/repair a file system Command Line mkfs -F vxfs [generic options] [-0 vxfs options] char device [size] mount -F vxfs [generic options] [-0 vxfs options] block device mount point umount mount point fstyp [-v] block device df -F vxfs [generic options] [-0 s] mount point fsck -F vxfs [generic options] [y|Y] [n|N] character device
ONLINE ADMINISTRATION Action Resize a file system Dump a file system Restore a file system Create a snapshot file system Command Line fasdm [-b newsize] [-r raw device] mount point vxdump [options] mount point vxrestore [options] mount point mount -F vxfs -o snapof=source block device, [snapsize=size] destination block device snap mount point fsckptadm [-nruv] create ckpt name mount point fsckptadm [-civ] list jnount point fsckptadm [-sv] remove ckpt name mount point mount -F vxfs -o ckptckpt name pseudo device mount point umount mount point fsckptadm [-sv] set [nodata|nomount|remove] ckpt name vxupgrade [-n new version] [-r raw device] mount point vxupgrade mount point
Create a storage checkpoint List storage checkpoints Remove a checkpoint Mount a checkpoint Unmount a checkpoint Change checkpoint attributes Upgrade the VxFS layout Display layout version
DEFRAGMENTING A FILE SYSTEM Action Report on directory fragmentation Report on extent fragmentation Defragment directories Defragment extents Reorganize a file system to support files > 2GB Command Line fsadm -D mount point fsadm -E [-1 largesize] mount point fsadm -d mount point fsadm -e mount point fsadm -o largefiles mount point
INTENT LOGGING, I/O TYPES, AND CACHE ADVISORIES Action Change default logging behavior Change how VxFS handles buffered I/O operations Change how VxFS handles I/O requests for files opened with O_SYNC and O_DSYNC Command Line fsck -F vxfs [generic options] -o delaylog|tmplog|nodatainlog|blkclear block device mount point mount -F vxfs [generic options] -o mincache=closesync|direct|dsync|unbuffered| tmpcache block device mount point mount -F vxfs [generic options] -o convosync=closesync|direct|dsync|unbuffered |delay block device mount point
QUICK I/O Action Enable Quick I/O at mount Disable Quick I/O Treat a file as a raw character device Create a Quick I/O file through a symbolic link Get Quick I/O statistics Enable cached QIO for all files in a file system Disable cached QIO for a file Command Line mount -F vxfs -o qio mount point mount -F vxfs -o noqio mount point filename::cdev:vxfs: qi.omk.file [-h header size] [-a] [-s size] [-e|-r size] file qiostat [-i interi'-ai] [-c count] [-1] [-r] file vxtunefs -s -o qio_cache_enable=l mnt point qioadmin -S filenameOFF mount point