-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmigrate-fset.txt
28 lines (24 loc) · 1.37 KB
/
migrate-fset.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* migrate all files for a particular fileset */
/* the substitiution variable EEPOOL has to passed from mmapplypolicy -M EEPOOL=pool1@lib1 */
/* the substitiution variable FSET has to passed from mmapplypolicy -M FSET=fsetname */
/* Define exclude list to exclude SpaceMan and snapshots */
RULE 'exclude' EXCLUDE WHERE
(PATH_NAME LIKE '%/.SpaceMan/%' OR /* HSM directory used for TSM and LTFS */
PATH_NAME LIKE '%/.ltfsee/%' OR /* LTFS metadata directory*/
PATH_NAME LIKE '%/.mmSharedTmpDir/%' OR /* default global shared directory used by mmapplypolicy */
PATH_NAME LIKE '%/.snapshots/%' OR /* snapshot */
NAME LIKE '.mmbackupShadow%' OR /* mmbackup shadow database */
NAME LIKE 'mmbackup%') /* other mmbackup files */
/* Define LTFS as external pool */
RULE EXTERNAL POOL 'ltfs'
EXEC '/opt/ibm/ltfsee/bin/eeadm' /* full path to ltfsee command must be specified */
OPTS 'EEPOOL' /* this is our pool in LTFS EE which is given by the runpolicy script*/
SIZE 10485760
/* here comes the migration rule whereby the FILESYSTEM is given by the runpolicy script*/
RULE 'ee-fset-mig' MIGRATE FROM POOL 'system' TO POOL 'ltfs' FOR FILESET ('FSET')
WHERE (KB_ALLOCATED > 0)
/* Invokation:
mmapplypolicy path -P thispolicyfile --single-instance -N eenodes -m 1 -M EEPOOL=pool1@lib1 -M FSET=fsetname
or
runpolicy path thispolicyfile -M EEPOOL=pool1@lib1 -M FSET=fsetname -I yes
*/