Monday, December 17, 2007

vxfs

VERITAS Education http://us.training.veritas.com 800-327-2232 (option 2)
Copyright © 2002 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or
registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of
their respective companies. Specifications and product offerings subject to change without notice. Printed in USA and the EU. March 2002.
1
V E R I T A S E D U C A T I O N Q U I C K R E F E R E N C E
VxFS Commands
SETTING UP A FILE SYSTEM
Action Command Line
Make a VxFS file system mkfs –F vxfs [generic_options] [-o vxfs_options]
char_device [size]
Mount a file system mount –F vxfs [generic_options] [-o vxfs_options]
block_device mount_point
Unmount a file system umount mount_point
Determine file system type fstyp [-v] block_device
Report free blocks/inodes df –F vxfs [generic_options] [-o s] mount_point
Check/repair a file system fsck –F vxfs [generic_options] [yY] [nN]
character_device
ONLINE ADMINISTRATION
Action Command Line
Resize a file system fasdm [-b newsize] [-r raw_device] mount_point
Dump a file system vxdump [options] mount_point
Restore a file system vxrestore [options] mount_point
Create a snapshot file
system
mount –F vxfs –o
snapof=source_block_device,[snapsize=size]
destination_block_device snap_mount_point
Create a storage
checkpoint fsckptadm [-nruv] create ckpt_name mount_point
List storage checkpoints fsckptadm [-clv] list mount_point
Remove a checkpoint fsckptadm [-sv] remove ckpt_name mount_point
Mount a checkpoint mount –F vxfs –o ckpt=ckpt_name pseudo_device
mount_point
Unmount a checkpoint umount mount_point
Change checkpoint
attributes
fsckptadm [-sv] set [nodatanomountremove]
ckpt_name
Upgrade the VxFS layout vxupgrade [-n new_version] [-r raw_device]
mount_point
Display layout version vxupgrade mount_point
DEFRAGMENTING A FILE SYSTEM
Action Command Line
Report on directory fragmentation fsadm –D mount_point
Report on extent fragmentation fsadm –E [-l largesize] mount_point
Defragment directories fsadm –d mount_point
Defragment extents fsadm –e mount_point
Reorganize a file system to
support files > 2GB fsadm –o largefiles mount_point
INTENT LOGGING, I/O TYPES, AND CACHE ADVISORIES
Action Command Line
Change default logging behavior
fsck –F vxfs [generic_options]
–o delaylogtmplognodatainlogblkclear
block_device mount_point
Change how VxFS handles
buffered I/O operations
mount –F vxfs [generic_options] –o
mincache=closesyncdirectdsyncunbuffered
tmpcache block_device mount_point
Change how VxFS handles I/O
requests for files opened with
O_SYNC and O_DSYNC
mount –F vxfs [generic_options] –o
convosync=closesyncdirectdsyncunbuffered
delay block_device mount_point
QUICK I/O
Action Command Line
Enable Quick I/O at mount mount –F vxfs –o qio mount_point
Disable Quick I/O mount –F vxfs –o noqio mount_point
Treat a file as a raw character
device filename::cdev:vxfs:
Create a Quick I/O file through a
symbolic link
qiomkfile [-h header_size] [-a] [-s size]
[-e-r size] file
Get Quick I/O statistics qiostat [-i interval][-c count] [-l] [-r] file
Enable cached QIO for all files in
a file system vxtunefs –s –o qio_cache_enable=1 mnt_point
Disable cached QIO for a file qioadmin –S filename=OFF mount_point

No comments: