scalectl fileset command

Creates and configures an IBM Storage Scale fileset.

Synopsis

scalectl fileset create {FilesystemName} [--allow-permission-change {chmodAndSetAcl | chmodOnly | setAclOnly | chmodAndUpdateAcl}] [--allow-permission-inherit {inheritAclOnly | inheritAclAndAddMode}] [-t {Comment}] [--iam-mode {off | advisory | noncompliant | compliant | compliant-plus}] [--inode-limit {InodeLimit}] [--inode-space {InodeSpace}] [-J {JunctionPath}] [-n {FilesetName}] [--pre-alloc-inodes {NumInodes}]
Or
scalectl fileset delete {FilesystemName} {FilesetName} [-f] [--pit-continues-on-error]
Or
scalectl fileset {FilesystemName} {FilesetName} get [--view {full | basic | long | attributes}] 
Or
scalectl fileset  {FilesystemName} {FilesetName} link [-J  {JunctionPath}] 
Or
scalectl fileset list [--all-domains] [-n {MaxItemNumber}] [-x] [-p {PageSize}] [-t {PageToken}] [--view] 
Or
scalectl fileset snapshot {batchCreate {FilesystemName} [-I {FilesetName:snapshot1[,FilesetName:snapshot2]}] | batchDelete {FilesystemName} [-I {FilesetName:snapshot1[,FilesetName:snapshot2]}] [--pit-continues-on-error] [-N {Node[,Node...]}] | create [--expiration-time {YYYY-MM-DDTHH:MM:SSZ}][-n {SnapshotName}] | delete {FilesystemName} {FilesetName} {SnapshotName} [--pit-continues-on-error][-N {Node[,Node...]}] | get {FilesystemName} {FilesetName} {SnapshotName} [--fast][--view {basic | data}] | list {FilesystemName} {FilesetName} [--all-domains] [-fast] [-n {MaxItemNumber}] [-x] [-p {PageSize}] [-t {PageToken}] [--view {full | basic | long | attributes}]}
Or
scalectl fileset unlink {FilesystemName} {FilesetName} [-f] 
Or
scalectl fileset update  {FilesystemName} {FilesetName} [--allow-permission-change {chmodAndSetAcl | chmodOnly | setAclOnly | chmodAndUpdateAcl}] [--allow-permission-inherit {inheritAclOnly | inheritAclAndAddMode}] [-t {Comment}] [--iam-mode {off | advisory | noncompliant | compliant | compliant-plus}] [--inode-limit {InodeLimit}] [--inode-space {InodeSpace}] [-J {JunctionPath}][-n {FilesetName}] [--pre-alloc-inodes {NumInodes}] 
Or
scalectl fileset usage {FilesystemName} {FilesetName} [--view {data-usage | inode-usage | full}] 
Or
scalectl fileset quota {list {FilesystemName} {FilesetName} [-d] [--fields {FieldNames}] [-n {MaxItemNumber}] [-x] [-p {PageSize}] [-t {PageToken}] | set {FilesystemName} {FilesetName} [--block-hard-limit {BlockHardLimit}] [--block-soft-limit {BlockSoftLimit}] [-d] [--file-hard-limit {FileHardLimit}] [--file-soft-limit {FileSoftLimit}] [-n {Name}] | check {FilesystemName} {FilesetName} [--qos-class {QoSClass}] [-v] [-N {Node[,Node...] }] [--threads {ThreadCount}] [-V]}

Availability

Available on all IBM Storage Scale editions.

Description

Use the scalectl fileset command to create and manage a fileset.

Parameters

create {FilesystemName}
Creates a new fileset. The fileset can be linked into the namespace when you specify a junction path. The operation attribute for this command is long-running operation (LRO). To run this command, you must have the RBAC permission for the create action on the /scalemgmt/v3/filesystems/{filesystem}/filesets resource.
--allow-permission-change {chmodAndSetAcl | chmodOnly | setAclOnly | chmodAndUpdateAcl}
Specifies the new permission change mode. The possible values are chmodAndSetAcl, chmodOnly, setAclOnly, and chmodAndUpdateAcl. The default value is chmodAndSetAcl.
--allow-permission-inherit {inheritAclOnly | inheritAclAndAddMode}
Specifies the new permission inherit mode. The possible values are inheritAclOnly and inheritAclAndAddMode. The default value is inheritAclOnly.
-t or --comment {Comment}
Specifies a comment for the fileset.
--iam-mode {off | advisory | noncompliant | compliant | compliant-plus}
Specifies the integrated archive manager (IAM) mode for the fileset. The possible values are off, advisory, noncompliant, compliant and compliant-plus. The default value is off.
--inode-limit {InodeLimit}
Specifies the inode limit for the inode space that is owned by a fileset.
--inode-space {new| ExistingFileset}
Specifies the type of fileset to create, which controls how inodes are allocated.
new
Creates an independent fileset and its own dedicated inode space.
ExistingFileset
Creates a dependent fileset that will share inode space with the specified ExistingFileset. The ExistingFileset can be root or any other independent fileset.
If --inode-space is not specified, a dependent fileset will be created in the root inode space.
-J or --junction-path {JunctionPath}
Specifies the name of the junction.
-n or --name {FilesetName}
Specifies the name of the fileset.
--pre-alloc-inodes {NumInodes}
Specifies the number of inodes to preallocate for the fileset. This flag is valid only when used with the --inode-limit.
delete {FilesystemName} {FilesetName}
Deletes an existing fileset. The operation attribute for this command is LRO. To run this command, you must have the RBAC permission for the delete action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{fileset_name} resource. When deleting a fileset, consider the following conditions:
  • You can delete the root fileset
  • A fileset that is not empty cannot be deleted unless you specify the -f flag.
    Note: If you use the -f flag, remove all NFS exports defined on or inside the fileset junction path before deleting it. Otherwise, you might encounter errors or issues when creating new filesets and exports.
  • You cannot delete a fileset that is lined to a namespace until you unlink it using the unlink command.
  • You can delete a dependent fileset at any time.
  • You cannot delete an independent fileset if it has dependent filesets or snapshots.
  • A deleted dependent fileset remains in the file system in a deleted state until the last snapshot that includes it is deleted.
  • Deleting an independent fileset that is included in a global snapshot removes it from the active file system, but it remains part of the file system in a deleted state.
  • The contents of a deleted fileset are still available in the snapshot through a path containing a .snapshots component because this data was saved when the snapshot was created.
  • When the last snapshot that includes the fileset is deleted, the fileset is fully removed from the file system.
-f or --force
Forecefully deletes the fileset. Deletes all contents and unlinks any child filesets.
--pit-continues-on-error
Continues removing the remaining files, if errors are encountered in the parallel inode traverse (PIT) phase that does user file deletion.
get {FilesystemName} {FilesetName}

Retrieves information about an existing fileset. The operation attribute for this command is fields. To run this command, you must have the RBAC permission for the get action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{fileset_name} resource.

--view {full | basic | long | attributes}
Specifies the view for fileset contents. The possible values are full, basic, long, and attributes. The default value is basic.
  • full: Displays a full view of the fileset
  • basic: Displays name, status, path, and ID.
  • long: Displays name, fs_name, id, root_inode, status, path, parent_id, create_time, comment, inode_space, is_inode_space_owner, max_inodes, alloc_inodes, inode_space_mask, iam_mode, fal_status, perm_inherit_flag, perm_change_flag, prevent_snapshot_restore, and inode_space_designation.
  • attributes: Displays basic view of the fileset, root_inode, parent_id, create_time, comment, inode_space, max_inodes, alloc_inodes, perm_change_flag, iam_mode, perm_inherit_flag, and inode_space_designation.
link {FilesystemName} {FilesetName}
Links an existing IBM Storage Scale fileset. Creates a junction that references the root directory of afileset.

A junction is a special directory entry, similar to a POSIX hard link, that connects a name in a parent fileset directory to the root directory of a child fileset. From a user's perspective, a junction always appears as a directory. However, users cannot remove a junction using the unlink or rmdir commands. To remove a junction, use unlink. If you don’t specify a junction, it is created in the current directory with the name FilesetName. You can use the mv command to move the directory to a new location within the parent fileset. However, you cannot use mv to move the junction to a different fileset.

To run this command, you must have the RBAC permission for the link action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{fileset_name}:link resource.

-J or --junction-path <string>
Specifies the junction path that references the root directory of the fileset name. If not specified, the junction is created in current directory using fileset name.
list {FilesystemName}
Lists file sets in an IBM Storage Scale file system. The operation attributes for this command are LRO, fields and pagination operation. To run this command, you must have the RBAC permission for the get action on the /scalemgmt/v3/filesystems/{filesystem}/filesets resource.
--all-domains
Runs the list request against all possible domains that the user has access.
-n or --max-items {MaxItemNumber}
Specifies the maximum number of items to list at a time.
-x or --no-pagination
Disables subsequent pagination tokens on the client side.
-p or --page-size {PageSize}
Specifies the number of items to list per API request.
-t or --page-token {PageToken}
Specifies the page token that is received from previous file system list command. You can provide this page token to retrieve the next page.
--view {full | basic | long | attributes}
Specifies the view for fileset contents. The default value is basic.
  • full: Displays a full view of the fileset
  • basic: Displays name, status, path, and ID.
  • long: Displays name, fs_name, id, root_inode, status, path, parent_id, create_time, comment, inode_space, is_inode_space_owner, max_inodes, alloc_inodes, inode_space_mask, iam_mode, fal_status, perm_inherit_flag, perm_change_flag, prevent_snapshot_restore, and inode_space_designation.
  • attributes: Displays basic view of the fileset, root_inode, parent_id, create_time, comment, inode_space, max_inodes, alloc_inodes, perm_change_flag, iam_mode, perm_inherit_flag, and inode_space_designation.
snapshot
Creates and manages a fileset snapshot.
batchCreate {FilesystemName}
Creates one or more fileset snapshots. You can delete the fileset snapshots only by using scalectl fileset snapshot delete or scalectl fileset snapshot batchDelete command. The operation attribute for this command is LRO. To run this command, you must have the RBAC permission for the create action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/snapshots:batchCreate resource. For more information, see Fileset-level snapshots.
-I or --input {FilesetName:snapshot1[,FilesetName:snapshot2]}
Specifies the snapshots to create.
batchDelete {FilesystemName}
Specifies to batch delete one or more fileset snapshots. The operation attribute for this command is LRO. To run this command, you must have the RBAC permission for the delete action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/snapshots:batchDelete resource. For more information, see Fileset-level snapshots.
-I or --input {FilesetName:snapshot1[,FilesetName:snapshot2]}
Specifies the snapshots to be created.
--pit-continues-on-error
Continues removing the remaining files, if errors are encountered in the parallel inode traverse (PIT) phase that does the user file deletion.
-N or --target-nodes {Node[,Node...]}
Specifies a list of target IBM Storage Scale nodes. The value can include any combination of node numbers, node number ranges, node names, IP addresses, or node classes.
create
Creates a fileset snapshot at a single point of time. The snapshot does not copy system data or existing snapshots. This function enables backup or mirroring programs to run concurrently with user updates while ensuring a consistent copy of the fileset at the time of creation. Snapshots also serve as an online backup solution, allowing for easy recovery from common issues, such as accidental file deletion, and enabling comparisons with previous file versions.

A fileset snapshot is an exact copy of the changed data in the active files and directories of an independent fileset and all dependent filesets. Fileset snapshots are read only and appear in the .snapshots directory that is located in the root directory of the fileset. The files and attributes of the fileset can be modified only in the active copy.

To delete a fileset snapshot, use scalectl fileset snapshot delete or scalectl fileset snapshot batchDelete.

The operation attribute for this command is LRO. To run this command, you must have the RBAC permission for the create action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{filesets}/snapshots resource.

For more information, see Fileset-level snapshots.

--expiration-time {YYYY-MM-DDTHH:MM:SSZ}
Specifies the expiration time of the snapshot in RFC 3339 format [YYYY-MM-DDTHH:MM:SSZ].
-n or --name {SnapshotName}
Specifies the name of the snapshot.
delete {FilesystemName} {FilesetName} {SnapshotName}
Deletes a fileset snapshot. After deleting successfully, the snapshot is marked for deletion and cannot be recovered.

If the node from which delete is issued or the file system manager node fails, the snapshot might not be fully deleted. The list or get subcommand displays these snapshots with a status of DeleteRequired. To complete the deletion, reissue delete subcommand from another node, or allow the snapshot to be automatically removed by a later scalectl fileset snapshot delete command. A snapshot in this state cannot be accessed.

Any open files in the snapshot are forcibly closed. The user receives an ESTALE error on the next file access.

If a snapshot contains file clones, you must delete the file clones or split them from their clone parents before deleting the snapshot. Use the mmclone split or mmclone redirect command to split file clones. Use a regular delete (rm) command to delete a file clone. If a snapshot containing a clone parent is deleted, any attempt to read a block that references the missing snapshot returns an error. A policy file can be created to help determine whether a snapshot contains file clones.

The operation attribute for this command is LRO. To run this command, you must have the RBAC permission for the create action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{filesets}/snapshots/{snapshot_name} resource.

--pit-continues-on-error
Continues removing the remaining files, if errors are encountered in the PIT phase that does the user file deletion.
-N or --target-nodes {Node[,Node...]}
Specifies a list of target IBM Storage Scale nodes. The value can include any combination of node numbers, node number ranges, node names, IP addresses, or node classes.
get {FilesystemName} {FilesetName} {SnapshotName}
Retrieves information for a fileset snapshot. The operation attributes for this command are LRO and fields. To run this command, you must have the RBAC permission for the get action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{filesets}/snapshots/{snapshot_name} resource.
Note: For snapshots that are created without the retention period defined, the expiration time is the same as its creation time.
--fast
Enables a faster method to calculate the storage used by the snapshot, reducing system performance impact.
--pit-continues-on-error
Continues removing the remaining files, if errors are encountered in the parallel inode traverse (PIT) phase that does the user file deletion.
--view {basic | data}
specifies the view for snapshot contents. The possible values are basic and data. The default value is basic.
list {FilesystemName} {FilesetName}
Lists fileset in an IBM Storage Scale file system. The operation attributes for this command are LRO, fields and pagination. To run this command, you must have the RBAC permission for the get action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{filesets}/snapshots resource.
  • full: Displays a full view of the fileset
  • basic: Displays name, status, path, and ID.
  • long: Displays name, fs_name, id, root_inode, status, path, parent_id, create_time, comment, inode_space, is_inode_space_owner, max_inodes, alloc_inodes, inode_space_mask, iam_mode, fal_status, perm_inherit_flag, perm_change_flag, prevent_snapshot_restore, and inode_space_designation.
  • attributes: Displays basic view of the fileset, root_inode, parent_id, create_time, comment, inode_space, max_inodes, alloc_inodes, perm_change_flag, iam_mode, perm_inherit_flag, and inode_space_designation.
--all-domains
Runs the list request against all possible domains that the user has access.
--fast
Specifies to enable a faster way of calculating the amount of storage that is used by the snapshot, minimizing the impact on the performance of the system.
-n or --max-items {MaxItemNumber}
Specifies the maximum number of items to list at a time.
-x or --no-pagination
Disables pagination tokens on the client side.
-p or --page-size {PageSize}
Specifies the number of items to list per API request.
-t or --page-token {PageToken}
Specifies the page token that is received from previous file system list command. You can provide this page token to retrieve the next page.
--view
Specifies the view for fileset contents. The possible values are full, basic, long, and attributes. The default value is basic.
unlink {FilesystemName} {FilesetName}
Unlinks an existing fileset. Removes the junction to an IBM Storage Scale fileset. The operation attribute for this command is LRO. To run this command, you must have the RBAC permission for the unlink action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{fileset_name}:unlink resource.
-f
Forces unlinking even if files are open. Open files will be forcibly closed, causing an estale error on the next file access.
update {FilesystemName} {FilesetName}
Updates an existing fileset. The operation attributes for this command are LRO and update mask. To run this command, you must have the RBAC permission for the update action on the /scalemgmt/v3/filesystems/{filesystem}/filesets/{fileset_name} resource.
--allow-permission-change {chmodAndSetAcl | chmodOnly | setAclOnly | chmodAndUpdateAcl}
Specifies the new permission change mode. The possible values are nondetachable, chmodOnly, setAclOnly, and chmodAndUpdateAcl. The default value is chmodAndSetAcl.
--allow-permission-inherit {inheritAclOnly | inheritAclAndAddMode}
Specifies the new permission inherit mode. The possible values are inheritAclOnly and inheritAclAndAddMode\. The default value is "inheritAclOnly".
-t or --comment {Comment}
Specifies a comment for the fileset.
--iam-mode {off | advisory | noncompliant | compliant | compliant-plus}
Specifies the IAM mode for the fileset. The possible values are off, advisory, noncompliant, compliant and compliant-plus. The default value is off.
--inode-limit {InodeLimit}
Specifies the inode limit for the inode space that is owned by the fileset. The value must be an int character.
--inode-space {InodeSpace}
Specifies the inode space for the fileset.
-J or --junction-path {JunctionPath}
Specifies the name of the junction.
-n or --name {FilesetName}
Specifies the name of the fileset.
--pre-alloc-inodes {NumInodes}
Specifies the number of inodes to preallocate for the fileset. This flag is only valid when specified together with the --inode-limit.
usage {FilesystemName} {FilesetName}
Retrieves the fileset inode usage, data usage, or both.
--view {data-usage | inode-usage | full}
Specifies the view for displaying usage. The possible values are data-usage, inode-usage, and full. The default value is data-usage.
quota
Manages quota operations for a fileset, including listing quota information, setting quota limits, and checking inode and space usage for users and groups.
list {FilesystemName} {FilesetName}
Lists user and group quota information for a fileset. The operation attributes for this command are fields and pagination.
-d or --default
Lists default user and group quota limits.
--fields {FieldNames}
Restricts the output to the specified fields. Supported field names include type, id, name, block_usage_bytes, block_soft_limit_bytes, block_hard_limit_bytes, block_in_doubt_bytes, block_grace, file_usage, file_soft_limit, file_hard_limit, file_in_doubt, file_grace, entry_type, and fileset.
-n or --max-items {MaxItemNumber}
Specifies the maximum number of items to list at a time.
-x or --no-pagination
Disables pagination tokens on the client side.
-p or --page-size {PageSize}
Specifies the number of items to list per API request.
-t or --page-token {PageToken}
Specifies the page token that is received from a previous quota list command. Provide this token to retrieve the next page.
set {FilesystemName} {FilesetName}
Sets quota limits for a user, group, or fileset.
--block-hard-limit {BlockHardLimit}
Specifies the hard limit for block usage.
--block-soft-limit {BlockSoftLimit}
Specifies the soft limit for block usage.
-d or --default
Sets default quota limits for user and group quota types.
--file-hard-limit {FileHardLimit}
Specifies the hard limit for file usage.
--file-soft-limit {FileSoftLimit}
Specifies the soft limit for file usage.
-n or --name {Name}
Specifies the name of the user, group, or fileset, depending on the value of --quota-type.
check {FilesystemName} {FilesetName}
Counts inode and space usage for users and groups in a fileset and writes the collected data into quota files.
--qos-class {QoSClass}
Specifies the Quality of Service (QoS) class for I/O operations. If not specified, the command is assigned to the maintenance QoS class. This parameter has no effect unless the QoS service is enabled.
-v or --report-diff
Reports discrepancies between calculated and recorded disk quotas.
-N or --target-nodes {Node[,Node...]}
Specifies a list of target IBM Storage Scale nodes. The value can include node numbers, node number ranges, node names, IP addresses, or node classes.
--threads {ThreadCount}
Specifies the number of threads that are created to run the command. The default value is 16.
-V or --verbose
Displays additional information that can be used for debugging.

Global flags

Use the following global flags with any scalectl command and subcommand:
--bearer
If true, reads the OIDC_TOKEN from the environment and sends it as the authorization bearer header for the request. Use this flag with the --url option.
--user-cert {Certificate}
Specifies the path to the client certificate file for authentication.
--user-cacert {CA_Certificate}
Specifies the path to the certificate authority (CA) trust chain to validate a server certificate.
--debug {Filepath[="stderr"]}
Enables the debug logging for the current request. Accepts an absolute file path to store logs by using --debug=<file>. If no file path is specified, logs are sent to stderr.
-h or --help
Lists the help for scalectl commands.
--domain {DomainName}
Sets the domain for the request. The default value is StorageScaleDomain.
--insecure-skip-tls-verify
If true, skips to verify the server certificate for validity. This option makes HTTPS connections insecure.
--json
Displays output in JSON format.
Note: When you use the --json flag with an endpoint method that is a long-running operation (LRO), the LRO is submitted to the LRO manager, which handles its lifecycle. The lifecycle includes accepting, running, and monitoring operations. Although the command request returns quickly, you must ensure that the submitted operation reaches a Done state. Review any metadata that is associated with the request to ensure that it completed successfully. This step is especially important for endpoint methods that have follow-on methods. These follow-on methods are valid only if the initial method completed successfully. For more information about LRO, see Long-running operations.
--user-key {PrivateKeyFile}
Specifies the path to the client certificate private key file for authentication.
--url {ip_address}
Sends the request over HTTPS to the specified endpoint <FQDN/IP>:<port>. For IPv6 address, use square brackets. For example, [IPv6]:<port>. If no port specified, 46443 is used by default.
--version
Specifies the scalectl build information. The --version flag is valid only with the top-level scalectl command.

Exit status

0
Successful completion.
nonzero
A failure occurred.

Security

You must have the specific role-based access control (RBAC) permission to run the command. For more information, see Role-based access control.

Examples

  1. To create a fileset, issue the following command:
    scalectl fileset create fs1 -n fset1 --inode-space new
    A sample output is as follows:
    attribute         | value
    ===========================================
      Fileset Name      | fset1
      Id                | 1
      Root Inode        | 131075
      Status            | unlinked
      Path              | --
      Parent Id         |
      Creation Time     | 2024-10-28T16:55:52Z
      Comment           |
      Inode Space       | 1
      Max Inodes        | 100352
      Allocated Inodes  | 67584
      Perm Change Flag  | chmodAndSetAcl
      Perm Inherit Flag | inheritAclOnly
      IAM Mode          | off
                          
  2. To delete an existing fileset, issue the following command:
    scalectl fileset delete fs1 fset1
    A sample output is as follows:
    Successfully deleted fileset 'fset1'  
  3. To update attributes on a file, issue the following command:
    scalectl fileset update fs1 fset1 --allow-permission-change chmodAndUpdateAcl -t "first fileset"
    A sample output is as follows:
    Fileset attributes successfully updated.  
  4. To get details of an existing fileset, issue the following command:
    scalectl fileset get fs1 fset1 --view long
    A sample output is as follows:
    Fileset Name | Filesystem Name | Id | Root Inode | Status   | Path | Parent Id | Creation Time        | Comment | Inode Space | Inode Owner | Max Inodes | Allocated Inodes | Perm Change Flag | Prevent Snapshot Restore | Perm Inherit Flag | Fal Status
    ==============================================================================================================================================================================================================================================
      fset1        | fs1             | 1  | 131075     | unlinked | --   |           | 2024-10-28T16:55:52Z |         | 1           | true        | 100352     | 67584            | chmodAndSetAcl   | false                    | inheritAclOnly    | Default  
  5. To link an existing fileset, issue the following command:
    scalectl fileset link fs1 fset1 -J /gpfs/fs1/fset1
    A sample output is as follows:
    Fileset Name | Id | Status | Path
    =============================================
      fset1        | 1  | linked | /gpfs/fs1/fset1  
  6. To unlink an existing fileset, issue the following command:
    scalectl fileset unlink fs1 fset1
    A sample output is as follows:
    Job Id            MTpkYWY2NWY4Yi0zZDdjLTRjNzUtYWY0NC0zMjRjMDQ1OTM0OTk=
      Operation         UnlinkFilesetRequest
      Status            Done
      Request Time      2024-10-28T17:02:50Z
      Last Update Time  2024-10-28T17:02:50Z
      Completion Time   2024-10-28T17:02:50Z
      Response:
      attribute                | value
    ============e======================================
      Filesystem Name          |
      Id                       | 1
      Creation Time            | 1970-01-01T00:00:00Z
      Root Inode               |
      Max Inodes               | 0
      Domain Id                | 0
      Comment                  |
      Inode Space              | 0
      Allocated Inodes         | 0
      Snap Id                  | 0
      Perm Inherit Flag        |
      IAM Mode                 |
      Fileset Name             | fset1
      Status                   | unlinked
      Path                     | --
      Parent Id                |
      Inode Owner              | false
      Perm Change Flag         |
      Prevent Snapshot Restore | false
      Fal Status               | Unspecified
      Inode Space Designation  |
  7. To create a fileset snapshot, issue the following command:
    scalectl fileset snapshot create fs2 fset1 -n snapC --expiration-time 2024-10-28T20:00:00Z
    
    A sample output is as follows:
    Flushing dirty data for snapshot fset1:snapC...
    Quiescing all operations in the inode space 1.
    Snapshot fset1:snapC created with id 4.  
  8. To delete a fileset snapshot, issue the following command:
    scalectl fileset snapshot delete fs1 fset1 snap1
    
    A sample output is as follows:
    Invalidating snapshot files in fset1:snap1...
    Quiescing all operations in the inode space 1.
    Deleting files in snapshot fset1:snap1...
     100.00 % complete on Mon Oct 28 10:40:10 2024  (     67584 inodes with total          0 MB data processed)
    Invalidating snapshot files in fset1:snap1/F/...
    Quiescing all operations in the inode space 1.
    Delete snapshot fset1:snap1 successful. 
  9. To list user and group quota information for a fileset, issue the following command:
    scalectl fileset quota list fs1 fileset1
    A sample output is as follows:
    Name   | Type  | Block Usage (KB) | Block Quota | Block Limit | Block In Doubt | Block Grace | File Usage | File Quota | File Limit | Files In Doubt | File Grace | Entry Type
    ======================================================================================================================================================================
    root   | user  | 0                | 0           | 0           | 0              | none        | 1          | 0          | 0          | 0              | none       | initial
    user1  | user  | 4,872            | 10,485,760  | 10,485,760  | 0              | none        | 3          | 900        | 1024       | 0              | none       | explicit
    user2  | user  | 3,248            | 10,485,760  | 10,485,760  | 0              | none        | 2          | 950        | 1024       | 0              | none       | explicit
    user3  | user  | 1,624            | 10,485,760  | 10,485,760  | 0              | none        | 1          | 500        | 600        | 0              | none       | explicit
    user5  | user  | 1,624            | 0           | 0           | 0              | none        | 1          | 0          | 0          | 0              | none       | initial
    user6  | user  | 1,624            | 0           | 0           | 0              | none        | 1          | 0          | 0          | 0              | none       | initial
    root   | group | 0                | 0           | 0           | 0              | none        | 1          | 0          | 0          | 0              | none       | initial
    group1 | group | 9,744            | 10,485,760  | 10,485,760  | 0              | none        | 6          | 2048       | 3072       | 0              | none       | explicit
    group2 | group | 3,248            | 0           | 0           | 0              | none        | 2          | 0          | 0          | 0              | none       | initial
  10. To set quota limits for a user in a fileset, issue the following command:
    scalectl fileset quota set fs1 fileset1 --name userA --block-soft-limit 1T
    A sample output is as follows:
    Successfully set limit.
  11. To count inode and space usage for users and groups in a fileset, issue the following command:
    scalectl fileset quota check fs1 fileset2
    A sample output is as follows:
    Running job 'MTo0YzRiMDliYy0wZTA3LTQ1MGYtODA5Ni1mZjZjM2M4MDUyYmY='
    fs1: Start quota check, fileset id 1
      11 % complete on Fri Mar  6 19:45:06 2026
      22 % complete on Fri Mar  6 19:45:06 2026
      33 % complete on Fri Mar  6 19:45:06 2026
      44 % complete on Fri Mar  6 19:45:06 2026
      55 % complete on Fri Mar  6 19:45:06 2026
      66 % complete on Fri Mar  6 19:45:06 2026
      77 % complete on Fri Mar  6 19:45:06 2026
      88 % complete on Fri Mar  6 19:45:06 2026
      98 % complete on Fri Mar  6 19:45:06 2026
     100 % complete on Fri Mar  6 19:45:06 2026
    Finished scanning the inodes for fs1:1.
    Merging results from scan.
    mmcheckquota: Command completed.
    Check Quota complete for filesystem 'fs1'

See also

Location

/usr/lpp/mmfs/bin