Use the dsmmigfs command with the add parameter to add space management to the file system. Use the dsmmigfs command with the update parameter to update space management settings for your file system.
You must have root user authority to use this command.
For information about configuring GPFS™ integration with the Tivoli® Storage Manager for Space Management client, see the Tivoli field guide TSM for Space Management for UNIX-GPFS Integration Part I: Policy-driven Threshold Migration at http://www.ibm.com/support/docview.wss?uid=swg27018848.
Before you run dsmmigfs add filesystem on AIX® GPFS and Linux x86_64 GPFS file systems, ensure that the file system is mounted and enabled for Data Management Application Programming Interface (DMAPI) management. Issue the following commands:
/usr/lpp/mmfs/bin/mmlsfs DevicePath -z
If
it is required, change the value as follows: /usr/lpp/mmfs/bin/mmchfs DevicePath -z yes
Run
only one dsmmigfs command within the local GPFS node group at the same time.You cannot add space management to your root ( / ), /tmp, /usr, or /var file systems.
JFS2 Encrypted File System is not supported. Adding space management to a JFS2 EFS with the dsmmigfs add command yields an error message.
.--------------------. V | >>-DSMMIGFS--+-Add----+--+---------+------filesystemSpec---+--->< '-Update-' '-options-'
If you change the high and low thresholds or the premigration percentage, the new values take effect immediately. If you change the stub file size, the new size is used for files that are migrated after the change. The size of existing stub files does not change.
If you change the minmigfilesize option value, the new value is used the next time a migration candidates list is built. Also, the new value is used only for files that are migrated after the value is changed.
If you change the readstartsrecall option value, the new value is used only for files that are migrated after the value is changed.
You can set the quota to less than the amount of currently migrated and premigrated data. No more files are migrated until automatic and selective recalls reduce the amount of currently migrated and premigrated data to less than the new quota.
If the specified value is less than the number of currently used blocks, an error occurs. The value must be greater than the current number of files in the file system. The value must be less than the total likely number of inodes.
You can configure the size of the complete file index (CFI). This value can be queried or set with the maxfiles parameter. If this parameter is set to 0, the CFI allocates the maximum required space. The maximum required space is the maximum number of blocks that are possible in the file system. Less file system space is needed to create the CFI. If the specified value is out of bounds, the nearest boundary is used to allocate the configurable CFI size.
Specifies the minimum file size for streaming recall mode. Streaming recall mode is set for files that are larger than the value of the minstreamfilesize option. Smaller files are recalled in normal recall mode.
Valid values are 0 - 999999999. The default is 0.
During a streaming recall, the recalled part of the file can be accessed before the complete file is recalled.
When the attributes are set and the preview size is defined, a recall operation begins only when an application reads the stub file beyond the preview section of the stub file. If an operation reads only the preview section of the stub file, the file is not recalled.
This option applies only if streaming recall mode is set.
If the previewsize option is set for the stub file, a recall operation starts only when an application reads beyond the preview section of the stub file.
The default value is No.
For Tivoli Storage Manager for Space Management clients on AIX GPFS and Linux x86_64 GPFS file systems, you can specify 0 or a multiple of the file system block size. The default value is 0.
For Tivoli Storage Manager for Space Management clients on AIX Enhanced Journaled Files Systems (JFS2), you can specify a multiple of the file system fragment size. The default value is the file system fragment size.
For all file system types, the maximum value for a stub file size is 1 GB.
If HSM is globally deactivated on a node (dsmmigfs globaldeactivate), it is reset to active state, if one of the following commands are performed:
Commands are provided for the example tasks.
Task | Command |
---|---|
Add space management to the /hsmmanagedfs1 file system. Set the space to the maximum number of blocks in the file system. | dsmmigfs Add -MAXFiles=0 /hsmmanagedfs1 |
Update the space management settings for the /hsmmanagedfs2 file system. Set the space (number of blocks) to the specified number. | dsmmigfs update -MAXFiles=10000000 /hsmmanagedfs2 |
Add space management to the /home file system. Set the high threshold to 80 percent. Set the low threshold to 70 percent. Set the size of stub files to 256K (KB). | dsmmigfs Add -HT=80 -L=70 -STUBS=256k /home |
Add space management to more than one file system and accept the default values for all space management settings. | dsmmigfs Add /home /test1 /proj* |
Update the space management settings for the /home file
system as follows:
|
dsmmigfs Update -HT=80 -L=70 -STUBS=1m /home |
Specify the minimum size of files in the /home/user1 file system that are recalled with partial file recall. | dsmmigfs Update -minp=100 /home/user1 |
Specify that the minimum size for a file that can be migrated from the /home/user2 file system is 1 megabyte. | dsmmigfs Update -minm=1048576 /home/user2 |
Add space management to the /myfs file system. Set the high threshold to 80 percent. Set the low threshold to 50 percent. Set the space (number of blocks) to the specified number. | dsmmigfs add -maxfiles=1000000 -lt=50 -ht=80 -pm=10 /myfs |
When a file is migrated from the /myfs file
system, create a stub file with the following specifications:
|
dsmmigfs update -stubs=32768 -preview=16384 -minstreamfilesize=2 readstartsrecall=yes /myfs |