Cache and migrate a file from RO fileset

   Cache fileset: RO    
                     Initial home state:migrated    
                     Initial cache state: cached and resident    
                     Action: Migrate file on cache side   
                     End home state: migrated   
                     End cache state: cached and migrated 

Creating files at home

for i in `seq 4` ; do dd if=/dev/urandom of=/gpfs/fs2/hsmHomeRO/file${i} bs=1M count=1 ; done

                    
                    1+0 records in
                    1+0 records out
                    1048576 bytes (1.0 MB) copied, 0.120448 s, 8.7 MB/s
                    1+0 records in
                    1+0 records out
                    1048576 bytes (1.0 MB) copied, 0.11479 s, 9.1 MB/s
                    1+0 records in
                    1+0 records out
                    1048576 bytes (1.0 MB) copied, 0.118258 s, 8.9 MB/s
                    1+0 records in
                    1+0 records out
                    1048576 bytes (1.0 MB) copied, 0.116248 s, 9.0 MB/s 

ls -lashi /gpfs/fs2/hsmHomeRO

                    total 2.3M
                    131596291 0 drwx------ 3 root root 4.0K Feb 4 05:55 .
                    3 256K drwxr-xr-x 256 root root 256K Feb 4 05:54 ..
                    131690368 0 drwxr-xr-x 3 root root 4.0K Feb 4 05:54 .afm
                    131690371 512K -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file1
                    131690372 512K -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file2
                    131690373 512K -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file3
                    131690374 512K -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file4
                    39 512 dr-xr-xr-x 2 root root 8.0K Dec 31 1969 .snapshots  

Listing and caching the files at cache

ls -lashi /gpfs/fs2/hsmCacheRO

                     total 64K2533359619 8.0K drwx------ 4 root root 8.0K Feb 4 05:56 .
                     3 32K drwxrwxrwx 471 root root 32K Feb 4 05:52 ..
                     2533437440 8.0K drwx------ 65535 root root 8.0K Feb 4 05:52 .afm
                     2533437441 8.0K drwx------ 65535 root root 8.0K Feb 4 05:52 .ptrash
                     2533437445 8.0K dr-xr-xr-x 2 root root 8.0K Dec 31 1969 .snapshots
                     2533437443 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file1
                     2533437442 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file2
                     2533437446 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file3
                     2533437444 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file4 

cat /gpfs/fs2/hsmCacheRO/file1 > /dev/null (05:57:23) c41bn3:~ ls -lashi /gpfs/fs2/hsmCacheRO

                     total 1.1M
                     2533359619 8.0K drwx------ 5 root root 8.0K Feb 4 05:56 .
                     3 32K drwxrwxrwx 471 root root 32K Feb 4 05:52 ..
                     2533437440 8.0K drwx------ 65535 root root 8.0K Feb 4 05:52 .afm
                     2533437441 8.0K drwx------ 65535 root root 8.0K Feb 4 05:52 .ptrash
                     2533437445 8.0K dr-xr-xr-x 2 root root 8.0K Dec 31 1969 .snapshots
                     2533437443 1.0M -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file1
                     2533437442 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file2
                     2533437446 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file3
                     2533437444 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file4 

Migrating the file at home

dsmmigrate /gpfs/fs2/hsmHomeRO/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/2016 05:58:01 EDTA
                    (c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved. 

dsmls /gpfs/fs2/hsmHomeRO/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/2016 05:58:24 EDTA
                    (c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

                    ActS ResS ResB FSt FName
                    1048576 0 0 m file1 

Checking cache state

dsmls /gpfs/fs2/hsmCacheRO/file1

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

                    ActS ResS ResB FSt FName
                    1048576 1048576 1024 r file1 

tspcacheutil /gpfs/fs2/hsmCacheRO/file1 | grep cached

                   cached 1 hasState 1 local 0

Migrating the file at cache

dsmmigrate /gpfs/fs2/hsmCacheRO/file1

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

Checking cache state

dsmls /gpfs/fs2/hsmCacheRO/file1

          Tivoli Storage Manager
                  Command Line Space Management Client Interface
                  Client Version 7, Release 1, Level 3.0
                  Client date/time: 02/04/16 06:01:47
                  (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/hsmCacheRO/file1 | grep cached

          cached 1 hasState 1 local 0