I would setup an automatic GPFS policy driven migraton on my linux cluster.
GPFS 3.5 and Tivoli HSM 6.4 software have been installed succesfully. I'm able to manually migrate (and recall) files from HSM managed file system.
It seems everything is ok. I also enabled LowDiskSpace check using mmaddcallback command:
command = /callback/lowspace.ksh
event = lowDiskSpace
node = mng1-ib,mng2-ib,tsm1-ib,tsm2-ib
parms = %eventName %fsName
echo "Logging a lowspace event at: `date` " >> /callback/lowspace.log
echo " The event occurred on node: " $1 >> /callback/lowspace.log
echo " The FS name is: " $2 >> /callback/lowspace.log
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 262637668 17952644 231343792 8% /
tmpfs 32958820 0 32958820 0% /dev/shm
/dev/gpfs_home 137657057280 4106190848 133550866432 3% /users/home
/dev/gpfs_scratch 321199800320 29294952448 291904847872 10% /scratch
/dev/gpfs_archive 183542743040 10491449344 173051293696 6% /archive
HSM managed file system used space is about 6%, GPFS policy is up and running with an HIGH threshold at 4%, but nothing happened...
I tested callback functionality using "leaveNode" event with success!!! Someone could explain me why only LowDiskSpace event doesn't run!??! :-(
This is my GPFS policy:
RULE 'hsmdata' MIGRATE FROM POOL 'system' THRESHOLD(4,3,2) WEIGHT(CURRENT_TIMESTAMP - ACCESS_TIME) TO POOL 'hsm' WHERE FILE_SIZE >= 51200
RULE EXTERNAL POOL 'hsm' EXEC '/var/mmfs/etc/mmpolicyExec-hsm.athena' OPTS '-v'
RULE 'exclude hsm system files' EXCLUDE WHERE PATH_NAME LIKE '%/.SpaceMan%'
RULE 'Default' SET POOL 'system'
Another question: Is there a correct way to decide 'hsmdata', 'system' and 'hsm' names or the names selection is "free"!?