PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment) |
Contents Index |
Appendix F Reference Manual | > F.2 Management Commands Specific to the GFS Shared File System |
/usr/bin/sfcdu [ -adkLr ] [ -o | -s ] [ file ... ]
/usr/xpg4/bin/sfcdu [ -a | -s ] [ -krx ] [ file ... ]
The sfcdu command is du command corresponding to large-scale file system which size is over 1 terabytes.
sfcdu operates with file system with scale not less than 2 terabytes. sfcdu also operates on a system other than the GFS Shared File System.also operates on a system other than the GFS Shared File System.
sfcdu writes to standard output the size of the file space allocated to, and the size of the file space allocated to each subdirectory of, the file hierarchy rooted in each of the specified files. The size of the file space allocated to a file of type directory is defined as the sum total of space allocated to all files in the file hierarchy rooted in the directory plus the space allocated to the directory itself.
Files with multiple links will be counted and written for only one entry. The directory entry that is selected in the report is unspecified. By default, file sizes are written in 512-byte units, rounded up to the next 512-byte unit.
[ /usr/xpg4/bin/sfcdu ]
When sfcdu cannot obtain file attributes or read directories (see stat(2)), it will report an error condition and the final exit status will be affected.
The following options can be specified for /usr/bin/sfcdu and /usr/xpg4/bin/sfcdu:
-a
In addition to the default output, report the size of each file not of type directory in the file hierarchy rooted in the specified file. Regardless of the presence of the -a option, non-directories give, as file operands will always be listed.
-k
Write the files sizes in units of 1024 bytes, rather than the default 512-byte units.
-s
Instead of the default output, report only the total sum for each of the specified files.
[ /usr/bin/sfcdu ]
The following options are supported for /usr/bin/sfcdu only:
-L
Process symbolic links by using the file or directory which the symbolic link references, rather than the link itself.
-d
Do not cross file system boundaries. For example, sfcdu -d / reports usage only on the root partition.
-o
Do not add child directories' usage to a parent's total. Without this option, the usage listed for a particular directory is the space taken by the files in that directory, as well as the files in all directories beneath it. This option does nothing if -s is used.
-r
Generate messages about directories that cannot be read, files that cannot be opened, and so forth, rather than being silent (the default).
[ /usr/xpg4/bin/sfcdu ]
The following options are supported for /usr/xpg4/bin/sfcdu only:
-r
By default, generate messages about directories that cannot be read, files that cannot be opened, and so forth.
-x
When evaluating file sizes, evaluate only those files that have the same device as the file specified by the file operand.
The following operand can be specified:
file
The path name of a file whose size is to be written. If no file is specified, the current directory is used.
% sfcdu 1324 . % sfcdu -k 662 . % sfcdu -a 60 ./file00 400 ./file01 28 ./file02 832 ./file03 2 ./dir00 1324 .
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
ls(1), stat(2), attributes(5), environ(5), largefile(5), XPG4(5) in the "Solaris X Reference Manual Collection."
Contents Index |