PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
|
Contents
Index
|
8.3 Defragmentation Command
Execute the sfxdefrag(1M) command to defragment GFS Local File Systems.
To defragment the GFS Local File System by executing the sfxdefrag(1M) command, specify the file system defined by the block special file name of the representative partition or the mount point and policy.
The sfxdefrag(1M) command can be executed even if the target file system is in the mounted (online) or unmounted (offline) state. If defragmenting in the unmounted state, an entry to /etc/vfstab must be specified in advance.
If the sfxdefrag(1M) command is executed, the mounted (online) or unmounted (offline) state of the file system must be specified.
An error occurs if offline (-f option) is specified in the mounted state (online) or online (-f option) is not specified in the unmounted state (offline).
The following are usage examples of the sfxdefrag(1M) command:
- Improving the file system of mount point /sfxfs using simple policy
# sfxdefrag /sfxfs simple
|
- Improving the file system of block special file /dev/sfdsk/gfs/dsk/vol1100 in the unmounted state using adjacent policy
# sfxdefrag -f /dev/sfdsk/gfs/dsk/vol1100 adjacent
|
- Improving directory target_dir under mount point /sfxfs using evacuate policy
# sfxdefrag /sfxfs evacuate target_dir
|
- Improving the file system of block special file /dev/sfdsk/gfs/dsk/vol1100 using free policy
# sfxdefrag /dev/sfdsk/gfs/dsk/vol1100 free
|
- Improving directory /sfxfs/target_dir of the file system of block special file /dev/sfdsk/gfs/dsk/vol1100 using dircomp policy
# sfxdefrag /dev/sfdsk/gfs/dsk/vol1100 dircomp target_dir
|
All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004