PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
Contents Index PreviousNext

Part 2 Global File Services Local File System> Chapter 8 Defragmenting GFS Local File System

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:

# sfxdefrag /sfxfs simple

# sfxdefrag -f /dev/sfdsk/gfs/dsk/vol1100 adjacent

# sfxdefrag /sfxfs evacuate target_dir

# sfxdefrag /dev/sfdsk/gfs/dsk/vol1100 free

# sfxdefrag /dev/sfdsk/gfs/dsk/vol1100 dircomp target_dir


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004