Truncating a migrated file from SW fileset
Fileset: SW
Initial home state: migrated
Initial cache state: cached and migrated
Action: Truncate data at cache
End home state: resident without recall
End cache state: cached and resident without recall
Create files from cache
# for i in `seq 4` ; do dd if=/dev/urandom of=/gpfs/fs2/hsmCacheSW/file${i} bs=1M count=1 ;
done
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.118871 s, 8.8 MB/s
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.117949 s, 8.9 MB/s
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.11631 s, 9.0 MB/s
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.1156 s, 9.1 MB/s
# mmafmctl fs2 getstate -j hsmCacheSWFileset
Name Fileset Target Cache State Gateway Node Queue Length Queue numExec
------------ -------------- ------------- ------------ ------------ -------------
hsmCacheSW nfs://c41bn7/gpfs/fs2/hsmHomeSW Active hs21n24 0 15
Migrate files from cache
# dsmmigrate /gpfs/fs2/hsmCacheSW/file1
Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:11:55
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
# dsmls /gpfs/fs2/hsmCacheSW/file1
Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:12:04
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
ActS ResS ResB FSt FName
1048576 0 0 m file1
Migrate the file at home
# dsmmigrate /gpfs/fs2/hsmHomeSW/file1
ANS0102W Unable to open the message repository /opt/tivoli/tsm/client/ba/bin/EN_IN/dsmclientV3.cat. The
American English repository will be used instead.
Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:13:19
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
Check file state in cache
# dsmls /gpfs/fs2/hsmHomeSW/file1
ANS0102W Unable to open the message repository /opt/tivoli/tsm/client/ba/bin/EN_IN/dsmclientV3.cat. The
American English repository will be used instead.
Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:13:33
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
ActS ResS ResB FSt FName
1048576 0 0 m file1
# tspcacheutil /gpfs/fs2/hsmCacheSW/file1 | grep cached
cached 1 hasState 1 local 0
Truncate the file from cache
# truncate -s 0 /gpfs/fs2/hsmCacheSW/file1
# mmafmctl fs2 getstate -j hsmCacheSW
Fileset Name Fileset Target Cache State Gateway Node Queue Length Queue numExec
------------ -------------- ------------- ------------ ------------ -------------
hsmCacheSW nfs://c41bn7/gpfs/fs2/hsmHomeSW Active hs21n24 0 16
# mmsync /gpfs/fs2/hsmCacheSW/file1 c41bn7 Thu Feb 04 09:13:33 5]~# mmsync /gpfs/fs2/hsmHomeSW/file1
Check file state in cache
# dsmls /gpfs/fs2/hsmCacheSW/file1
Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:20:50
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
ActS ResS ResB FSt FName
0 0 0 r file1
# dsmls /gpfs/fs2/hsmHomeSW/file1
ANS0102W Unable to open the message repository /opt/tivoli/tsm/client/ba/bin/EN_IN/dsmclientV3.cat. The
The American English repository will be used instead.
Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:21:13
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
ActS ResS ResB FSt FName
0 0 0 r file1
# tspcacheutil /gpfs/fs2/hsmCacheSW/file1 | grep cached
cached 1 hasState 1 local 0