Top
PRIMECLUSTER Global File Services Configuration and Administration Guide 4.5
FUJITSU Software

B.2.13 sfcextcount (1M) Outputs the extent information of the file.

<SYNOPSIS>

/etc/opt/FJSVgfs/bin/sfcextcount { -f filename | -i inodeno } special

/etc/opt/FJSVgfs/bin/sfcextcount -d { -f filename | -i inodeno } special

<DESCRIPTION>

The sfcextcount outputs the extent information of the file in the GFS Shared File System to the standard output.

special is specified for the representative partition of the GFS Shared File System, where the file specified by filename or inodeno exists.

For the first synopsis, the i-node number of the file, the amount of extent and the amount of indirect extent management information of the file will be output in the format below.

<i-node number>: <amount of extent> <amount of indirect extent management information>

For the second synopsis, the items below will be output for each extent.

The block size of offset, start block ID and blocks is 8 kilobytes for regular files, and 1 kilobyte for the directory. The block size of the IEX ID is 1 kilobyte.

Only a super user can execute sfcextcount.

<OPTIONS>

The following options can be specified:

-d

Outputs the extent list for the specified file.

-f filename

Outputs the extent information of the file filename.
The filename should be specified as the absolute path name.
The -f option can only be used when the GFS Shared File System is mounted.

-i inodeno

Outputs the extent information of the file whose i-node number is inodeno.

<OPERANDS>

The following operand can be specified.

special

Specifies the block or character special file path on a representative partition of the GFS Shared File System.

<EXAMPLES>

Outputs the extent information of a file which i-node number is 4.
(Since the amount of extent is 1, this file is not fragmented.)

# /etc/opt/FJSVgfs/bin/sfcextcount -i 4 /dev/sfdsk/class0001/dsk/volume0001
4: 1 0
# /etc/opt/FJSVgfs/bin/sfcextcount -d -i 4 /dev/sfdsk/class0001/dsk/volume0001
offset          partition ID    start block ID  blocks          IEX ID
--------------- --------------- --------------- --------------- ---------------
              0               0         1068941             128               -

Output the extent information of the file which path name is /mnt/gfs/file2.
(Since the amount of extent is 52, this file is fragmented.)

# /etc/opt/FJSVgfs/bin/sfcextcount -f /mnt/gfs/file2 /dev/sfdsk/class0001/dsk/volume0001
6: 52 3
# /etc/opt/FJSVgfs/bin/sfcextcount -d -f /mnt/gfs/file2 /dev/sfdsk/class0001/dsk/volume0001
offset          partition ID    start block ID  blocks          IEX ID
--------------- --------------- --------------- --------------- ---------------
              0               0         1033117               1               -
              1               0          973861               1               -
              2               0         1034655               1               -
              3               0          968868               1               -
              4               0          970278               1               -
              5               0          974118               1               -
              6               0          969637               1               -
              7               0         1035677               1               -
              8               0         1034397               1               -
              9               0          968356               1               -
             10               0          968355               1               -
             11               0         1036188               1               -
             12               0          971043               1               -
             13               0          967330               1               -
             14               0          969892               1               -
             15               0         1035166               1               -
             34               0          974117               1              19
             16               0          998369               1               1
             17               0          975931               1               1
             18               0          975161               1               1
             19               0          976955               1               1
             20               0          973604               1               1
             21               0         1034909               1               1
             22               0          977468               1               1
             23               0          977213               1               1
             24               0          976189               1               1
             25               0          972324               1               1
             26               0          967587               1               1
             27               0          967842               1               1
             28               0          971556               1               1
             29               0          973094               1               1
             30               0          975673               1               1
             31               0          976445               1               1
             32               0          976444               1               1
             33               0          969636               1               1
             35               0          970277               1              18
             36               0          968867               1              18
             37               0         1034654               1              18
             38               0          973860               1              18
             39               0         1033116               1              18
             40               0          971299               1              18
             41               0         1033884               1              18
             42               0          968612               1              18
             43               0          968099               1              18
             44               0          970788               1              18
             45               0          969124               1              18
             46               0         1035420               1              18
             47               0          969380               1              18
             48               0         1035933               1              18
             49               0          998119               1              18
             50               0          977722               1              18
             51               0         1033627               1              18

<NOTES>