mmlsfileset command

Displays attributes and status for GPFS filesets.

Synopsis

mmlsfileset Device
      [[Fileset[,Fileset...]] [-J Junction[,Junction...]] | -F FileName]
      [-d [--block-size {BlockSize | auto}]] [-i] [-L] [-X] [-Y]
      [--afm] [--deleted] [--iam-mode] 

Availability

Available on all IBM Spectrum Scale editions.

Description

Use the mmlsfileset command to display information for the filesets that belong to a given GPFS file system. The default is to display information for all filesets in the file system. You may choose to display information for only a subset of the filesets.

The operation of the -L flag omits the attributes listed without it, namely status and junction path. In addition, if the fileset has status Deleted, then -L also displays the name of the latest snapshot that includes the fileset in place of the root inode number and parent fileset identifier.

The attributes displayed are:
  • Name of the fileset
  • Status of the fileset (when the -L flag is omitted)
  • Junction path to the fileset (when the -L flag is omitted)
  • Fileset identifier (when the -L flag is included)
  • Root inode number, if not deleted (when the -L flag is included)
  • Parent fileset identifier, if not deleted (when the -L flag is included)
  • Latest including snapshot, if deleted (when the -L flag is included)
  • Creation time (when the -L flag is included)
  • Inode space (when the -L flag is included)
  • Number of inodes in use (when the -i flag is included)
  • Data size (when the -d flag is included)
  • Comment (when the -L flag is included)
  • Caching-related information (when the --afm flag is included)
  • Value of the permission change flag (when the -X flag is used to generate stanza output)
  • Integrated archive manger (IAM) mode information

For information on GPFS filesets, see the IBM Spectrum Scale: Administration Guide.

Parameters

Device
The device name of the file system that contains the fileset.

File system names need not be fully-qualified. fs0 is as acceptable as /dev/fs0.

This must be the first parameter.

Fileset
Specifies a comma-separated list of fileset names.
-J Junction
Specifies a comma-separated list of path names. They are not restricted to fileset junctions, but may name any file or directory within the filesets to be listed.
-F FileName
Specifies the name of a file containing either fileset names or path names. Each line must contain a single entry. All path names must be fully-qualified.
-d
Displays the amount of storage in use for the fileset.

This operation requires an amount of time that is proportional to the size of the file system; therefore, it can take several minutes or even hours on a large and heavily-loaded file system.

This optional parameter can impact overall system performance. Avoid running the mmlsfileset command with this parameter frequently or during periods of high file system activity.

This option is not valid if the Device parameter is a remote file system.

--block-size {BlockSize | auto}
Specifies the unit in which the number of blocks is displayed. The value must be of the form [n]K, [n]M, [n]G or [n]T, where n is an optional integer in the range 1 to 1023. The default is 1K. If auto is specified, the number of blocks is automatically scaled to an easy-to-read value.
-i
Displays the number of inodes in use for the fileset.

This option is not valid if the Device parameter is a remote file system.

This operation requires an amount of time that is proportional to the number of inodes in the file system; therefore, it can take several minutes or even hours on a large and heavily-loaded file system.

Information about the number of inodes in the fileset can be retrieved more efficiently with the following command, if quota management has been enabled for the file system:
mmrepquota -j FileSystem
-L
Displays additional information for the fileset. This includes:
  • Fileset identifier
  • Root inode number
  • Parent identifier
  • Fileset creation time
  • Inode space
  • User defined comments, if any
If the fileset is a dependent fileset, dpnd will be displayed next to the inode space identifier.
-X
Generates stanza output containing the following:
  • The same information presented by the -L flag
  • The value of the permission change flag
  • The same information presented by the --afm flag
-Y
Displays the command output in a parseable format with a colon (:) as a field delimiter. Each column is described by a header.
Note: Fields that have a colon (:) are encoded to prevent confusion. For the set of characters that might be encoded, see the command documentation of mmclidecode. Use the mmclidecode command to decode the field.
--afm
Displays caching-related information for the fileset.
--deleted
Displays only the filesets with a status of Deleted.
--iam-mode
Displays integrated archive manager (IAM) mode information. For more information, see mmchfileset command.

Exit status

0
Successful completion.
nonzero
A failure has occurred.

Security

Fileset owners can run the mmlsfileset command with the -L, -d, and -i options.

The node on which the command is issued must be able to execute remote shell commands on any other node in the cluster without the use of a password and without producing any extraneous messages. For more information, see Requirements for administering a GPFS file system.

Examples

  1. This command displays fileset information for all filesets in file system gpfs1:
    mmlsfileset gpfs1
    The system displays information similar to:
    Filesets in file system 'gpfs1':
    Name                     Status    Path 
    root                     Linked    /gpfs1
    fset1                    Linked    /gpfs1/fset1
    fset2                    Linked    /gpfs1/fset1/fset2
  2. These commands display information for a file system with filesets and snapshots. Note that deleted filesets that are saved in snapshots are displayed with the name enclosed in parentheses.
    1. Command:
      mmlsfileset fs1 -d -i
      The system displays information similar to:
      Filesets in file system 'fs1':
      Name    Status   Path                       Inodes  Data (in  KB)
      root    Linked   /gpfs                          3           53528
      (gone)  Deleted  /gpfs/.snapshots/Snap17/gone   0               0
      TestF4  Linked   /gpfs/test-f4                  3              24
      TestF3  Linked   /gpfs/test-f4/dir1/f3          2              16
      TestF2  Unlinked  --                            98            784
      TestF5  Linked   <TestF2>/subdir/f5             1               8
    2. Command:
      mmlsfileset fs1 --deleted
      The system displays information similar to:
      Filesets in file system 'fs1':
      Name    Status   Path
      (gone)  Deleted  /gpfs/.snapshots/Snap17/gone
    3. Command:
      mmlsfileset fs1 --afm
      The system displays information similar to:
      Filesets in file system 'fs1':
      Name                     Status    Path                                   afmTarget                           
      root                     Linked    /gpfs/fs1                              --                                  
      ro1                      Linked    /gpfs/fs1/ro1                          hs21n45:/gpfs/fs1/ro1               
      sw1                      Linked    /gpfs/fs1/sw1                          hs21n45:/gpfs/fs1/sw1               
      lu1                      Linked    /gpfs/fs1/lu1                          hs21n45:/gpfs/fs1/lu1     
    4. Command:
      mmlsfileset fs1 -L
      The system displays information similar to:
      Filesets in file system 'fs1':
      Name           Id    RootInode  ParentId Created                  InodeSpace  MaxInodes  AllocInodes Comment
      root            0            3        -- Mon Jan 23 18:59:36 2012    0          1000064        65792 root fileset
      TestF4          2        59446         0 Wed Feb  1 09:28:50 2012    0                0            0 4th in series
      TestF3          3        59435         2 Wed Feb  1 09:28:52 2012    0                0            0
      (gone)          1 latest:         Snap17 Wed Feb  1 09:28:46 2012    0                0            0 Not forgotten
      TestF2          4        59437        -- Wed Feb  1 09:28:52 2012    0                0            0
      TestF5          5         7017         4 Wed Feb  1 09:28:53 2012    0                0            0 Number 5
      FsetF1-V2       6       131075        -- Wed Feb  1 09:28:55 2012    1           100096       100096
      FsetF2-V2       7       262147        -- Wed Feb  1 09:28:56 2012    2           100096       100096
      FsetF2-V2-lite  9       263680        -- Wed Feb  1 09:28:59 2012    2 dpnd           0            0
      FsetF3-V2       8       393219        -- Wed Feb  1 09:28:57 2012    3           100096       100096
    5. Command:
      mmlsfileset fs1 sw1 --afm -L
      The system displays information similar to:
      Filesets in file system 'fs1':
      
      
      Attributes for fileset sw:
      ===========================
      Status                              Linked
      Path                                /gpfs/fs1/sw
      afm-associated                      Yes
      Target                              c2m3n06:/gpfs/fs2
      Mode                                single-writer
      File Lookup Refresh Interval        30 (default)
      File Open Refresh Interval          30 (default)
      Dir Lookup Refresh Interval         60 (default)
      Dir Open Refresh Interval           60 (default)
      Async Delay                         15 (default)
      Expiration Timeout                  disable
      Recovery Point Objective            disable (default)
      Last pSnapId                        0
      Display Home Snapshots              no
    6. Command:
      mmlsfileset fs1 TestF2,TestF5 -J /gpfs/test-f4/dir1,/gpfs/test-f4/dir1/f3/dir2/
      The system displays information similar to:
      Filesets in file system 'fs1':
      Name                     Status    Path
      TestF2                   Unlinked  --
      TestF5                   Linked    <TestF2>/subdir/f5
      TestF4                   Linked    /gpfs/test-f4
      TestF3                   Linked    /gpfs/test-f4/dir1/f3
    7. Command:
      mmlsfileset gpfsha --deleted
      The system displays information similar to:
      Filesets in file system 'gpfsha':
      Name                     Status    Path
      (fset17)                 Deleted   /gpfsha/.snapshots/snap20/fset17

See also

Location

/usr/lpp/mmfs/bin