Evicting files or objects metadata
Complete the following steps to evict metadata from files or objects:
- To check a fileset, issue the following
command:
A sample output is as follows:mmlsfileset fs1 afmtocos1 -i
Filesets in file system 'fs1': Name Status Path InodeSpace MaxInodes AllocInodes UsedInodes afmtocos1 Linked /gpfs/fs1/afmtocos1 1 100352 100352 13
Note: The used inodes are 13. You need to evict 5 objects metadata. - To check the list of files in an evict file, issue the following
command:
A sample output is as follows:cat /root/evictfile
/gpfs/fs1/afmtocos1/osbject1 /gpfs/fs1/afmtocos1/osbject2 /gpfs/fs1/afmtocos1/osbject3 /gpfs/fs1/afmtocos1/osbject4 /gpfs/fs1/afmtocos1/osbject5
- To evict the metadata, issue the following command:
mmafmcosctl fs1 afmtocos1 /gpfs/fs1/afmtocos1/ evict --object-list /root/evictfile --metadata
- To check the fileset again, issue the following
command:
A sample output is as follows:mmlsfileset fs1 afmtocos1-i
Metadata is evicted and the inodes are reduced to 8.Filesets in file system 'fs1': Name Status Path InodeSpace MaxInodes AllocInodes UsedInodes afmtocos1 Linked /gpfs/fs1/afmtocos1 1 100352 100352 8
- Populate the metadata after any metadata read operation is performed.
- To get the contents of the fileset, issue the following
command:
A sample output is as follows:ls -l /gpfs/fs1/afmtocos1/
total 10240 -rwx------ 1 root root 2097152 Sep 10 2020 osbject1 -rw-r--r-- 1 root root 2097152 Sep 10 2020 osbject10 -rwx------ 1 root root 2097152 Sep 10 2020 osbject2 -rwx------ 1 root root 2097152 Sep 10 2020 osbject3 -rwx------ 1 root root 2097152 Sep 10 2020 osbject4 -rwx------ 1 root root 2097152 Sep 10 2020 osbject5 -rw-r--r-- 1 root root 2097152 Sep 10 2020 osbject6 -rw-r--r-- 1 root root 2097152 Sep 10 2020 osbject7 -rw-r--r-- 1 root root 2097152 Sep 10 2020 osbject8 -rw-r--r-- 1 root root 2097152 Sep 10 2020 osbject9
- To check the fileset usage, issue the following
command:
A sample output is as follows:mmlsfileset fs1 afmtocos1 -i
Now the used inodes are 13 because all evicted metadata is brought back to the cloud object storage.Filesets in file system 'fs1': Name Status Path InodeSpace MaxInodes AllocInodes UsedInodes afmtocos1 Linked /gpfs/fs1/afmtocos1 1 100352 100352 13
- To get the contents of the fileset, issue the following
command: