Determining the POSIX path of a unified file and object access enabled fileset

Use the following steps for determining the POSIX path of a unified file and object access enabled fileset.

  1. List all storage policies for object.
    mmobj policy list
    
    Index       Name             Default Deprecated Fileset              Functions               File System
    ----------------------------------------------------------------------------------------------------------
    0           SwiftDefault     yes                object_fileset                              
    13031510160 sof-policy1                         obj_sof-policy1      file-and-object-access  fs0
    13031510260 CompressionTest          yes        obj_CompressionTest  compression             fs0
    13031510290 CompressionDebug         yes        obj_CompressionDebug compression             fs0
    13031511020 CompressionNew                      obj_CompressionNew   compression             fs0
  2. In the fs0 file system, note the index and fileset name for the policy you want. Run the mmlsfileset command to determine the junction point.
    mmlsfileset fs0 | grep obj_sof-policy1
    obj_sof-policy1          Linked    /ibm/fs0/obj_sof-policy1

The Swift ring builder creates a single virtual device for unified file and object access policies. This virtual device is named with storage policy index number, which is also the region number. It starts with s and appended with z1device1.

s13031510160z1device1

  1. List the Swift projects and identify the one you are interested in working with:
    ~/openrc
    openstack project list
    +----------------------------------+---------+
    | ID                               | Name    |
    +----------------------------------+---------+
    | 73282e8bca894819a3cf19017848ce6b | admin   |
    | 1f78f58572f746c39247a27c1e0e1488 | service |
    +----------------------------------+---------+
  2. Construct the account name by appending the project ID with AUTH_. Or, substitute the correct project prefix when you have customized the prefix. For the admin project, use:
    AUTH_73282e8bca894819a3cf19017848ce6b

The full path to the unified file and object access containers is the concatenation of the fileset linkage, the virtual device name, and the account name:

/fileset linked path/s<policy_number>z1device1/AUTH_account id/
A possible file path might be as follows:
/ibm/fs0/obj_sof-policy1/s13031510160z1device1/AUTH_73282e8bca894819a3cf19017848ce6b/

  1. List the containers defined for this account.
    ls /ibm/fs0/obj_sof-policy1/s13031510160z1device1/AUTH_73282e8bca894819a3cf19017848ce6b/
    new1    fifthcontainer  RTC73189_1  RTC73189_3  RTC73189_5  RTC73189_7  sixthcontainer