AFM to cloud object storage directory object support

With directory object support, you can set access control lists (ACLs) and extended attributes on empty and non-empty directories, both. These empty or non-empty directories are transferred to the home along with the files as normal operations.

AFM to cloud object storage supports directory objects. All directories with and without objects can now be synchronized to the cloud object storage. Now, you can set extended attributes and ACLS on the directories with the directory object support.

Enabling directory object support for AFM to cloud object storage

Following are the two ways to enable the directory object support for AFM to cloud object storage:
  1. When you start creating a new AFM to cloud object storage relationship, use the --directory-object option to enable the directory object support.
    mmafmcosconfig fs1 fileset1 --endpoint http://region@endpoint --object-fs  --xattr --acls  --bucket bucket1 --mode ro --directory-object 
  2. For old AFM to cloud object storage file sets that are created in old version of the IBM Storage Scale, use the mmchfileset command after you stop the file set and then start the file set.

    node1] mmlsfileset fs1 fileset1 -L --afm
    Filesets in file system 'fs1':
    
    Attributes for fileset fileset1:
    ===================================
    Status                                  Linked
    Path                                    /gpfs/fs1/fileset1
    Id                                      42
    Root inode                              18350083
    Parent Id                               0
    Created                                 Mon Apr 11 05:01:34 2022
    Comment                                 
    Inode space                             19      
    Maximum number of inodes                100352
    Allocated inodes                        100352
    Permission change flag                  chmodAndSetacl
    afm-associated                          Yes
    Permission inherit flag                 inheritAclOnly
    Target                                  https://s3.amazonaws.com:443/fileset1
    Mode                                    single-writer
    File Lookup Refresh Interval            120
    File Open Refresh Interval              120
    Dir Lookup Refresh Interval             120
    Dir Open Refresh Interval               120
    Async Delay                             1 (default)
    Last pSnapId                            0
    Display Home Snapshots                  no
    Parallel Read Chunk Size                0
    Number of Gateway Flush Threads         8
    Prefetch Threshold                      0 (default)
    Eviction Enabled                        yes (default)
    Parallel Write Chunk Size               0
    IO Flags                                0x48080000 (afmObjectXattr,afmObjectACL,afmObjectFastReaddir)
    IO Flags2                               0x0 
    
    Node1] mmafmctl fs1 stop -j fileset1
    Node1] mmchfileset fs1 fileset1 -p afmObjectDirectoryObj=yes
    Node1] mmlsfileset fs1 fileset1 -L --afm
    Filesets in file system 'fs1':
    
    Attributes for fileset fileset1:
    ===================================
    Status                                  Linked
    Path                                    /gpfs/fs1/fileset1
    Id                                      42
    Root inode                              18350083
    Parent Id                               0
    Created                                 Mon Apr 11 05:01:34 2022
    Comment                                 
    Inode space                             19      
    Maximum number of inodes                100352
    Allocated inodes                        100352
    Permission change flag                  chmodAndSetacl
    afm-associated                          Yes
    Permission inherit flag                 inheritAclOnly
    Target                                  https://s3.amazonaws.com:443/fileset1
    Mode                                    single-writer
    File Lookup Refresh Interval            120
    File Open Refresh Interval              120
    Dir Lookup Refresh Interval             120
    Dir Open Refresh Interval               120
    Async Delay                             1 (default)
    Last pSnapId                            0
    Display Home Snapshots                  no
    Parallel Read Chunk Size                0
    Number of Gateway Flush Threads         8
    Prefetch Threshold                      0 (default)
    Eviction Enabled                        yes (default)
    Parallel Write Chunk Size               0
    IO Flags                                0x48280000 (afmObjectXattr,afmObjectDirectoryObj,afmObjectACL,afmObjectFastReaddir)
    
    IO Flags2                               0x0 
    Node1] mmafmctl fs1 start -j fileset1