Truncating a pre-migrated file from SW fileset

Fileset: SW
    Initial home state: pre-migrated
    Initial cache state: cached and migrated
    Action: Truncate the file from cache
    End home state: resident without recall
    End cache state: cached and resident without recall

# dsmmigrate /gpfs/fs2/hsmHomeSW/file2


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/2016 09:24:28 EDTA
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

# dsmls /gpfs/fs2/hsmHomeSW/file2


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/2016 09:24:38 EDTA
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

ActS ResS ResB FSt FName
1048576 0 0 m file2

# cat /gpfs/fs2/hsmHomeSW/file2 > /dev/null

Check file state at home

# dsmls /gpfs/fs2/hsmHomeSW/file2


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/2016 09:25:41 EDTA
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

ActS ResS ResB FSt FName
1048576 1048576 1024 p file2

Migrate file from cache

# dsmmigrate /gpfs/fs2/hsmCacheSW/file2


Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:26:52
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

# dsmls /gpfs/fs2/hsmCacheSW/file2

Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:27:01
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

ActS ResS ResB FSt FName
1048576 0 0 m file2

# tspcacheutil /gpfs/fs2/hsmCacheSW/file2 | grep cached


cached 1 hasState 1 local 0

Truncate the file from cache

# truncate -s 0 /gpfs/fs2/hsmCacheSW/file2

# 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 17

# mmsync /gpfs/fs2/hsmCacheSW/file2 c41bn7 Thu Feb 04 09:25:41 5]~# mmsync /gpfs/fs2/hsmHomeSW/file2

Checking state of file from cache

# dsmls /gpfs/fs2/hsmCacheSW/file2


Tivoli Storage Manager
Command Line Space Management Client Interface
Client Version 7, Release 1, Level 3.0
Client date/time: 02/04/16 09:31:34
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

ActS ResS ResB FSt FName
0 0 0 r file2
(09:31:34) c41bn3:~ # tspcacheutil /gpfs/fs2/hsmCacheSW/file2 | grep cached
cached 1 hasState 1 local 0

Checking state of file from home

# dsmls /gpfs/fs2/hsmHomeSW/file2


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/2016 09:31:48 EDTA
(c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

ActS ResS ResB FSt FName
0 0 0 r file2