Read migrated file from RO fileset

  Fileset: RO, with partial file caching enabled  
                        Initial home state:  migrated    
                        Initial cache state: Fully cached and  migrated   
                        Action: Read same/different blocks from  cache   
                        End home state: migrated    
                        End cache state: pre-migrated and cached 

Read the whole file from cache and migrate it

# cat /gpfs/fs2/hsmCacheRO/file4 > /dev/null (06:36:35) c41bn3:~ # ls -lashi /gpfs/fs2/hsmCacheRO


                        total 1.1M
                        2533359619 8.0K drwx------ 5 root root 8.0K Feb 4 06:24 .
                        3 32K drwxrwxrwx 472 root root 32K Feb 4 06:02 ..
                        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 0 Feb 4 06:07 file2
                        2533437449 0 -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file3Renamed
                        2533437444 1.0M -rw-r--r-- 1 root root 1.0M Feb 4 05:55 file4 

# dsmmigrate /gpfs/fs2/hsmCacheRO/file4

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

# dsmls /gpfs/fs2/hsmCacheRO/file4


                     Tivoli Storage Manager
                     Command Line Space Management Client Interface
                     Client  Version 7, Release 1, Level 3.0
                     Client  date/time: 02/04/16 06:37:28
                     (c)   Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved. 
                     
                     ActS ResS  ResB FSt FName
                     1048576 0 0 m file4 

Migrate the file from home

# dsmmigrate /gpfs/fs2/hsmHomeRO/file4


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

# dsmls /gpfs/fs2/hsmHomeRO/file4


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

                     ActS ResS  ResB FSt FName
                     1048576 0  0 m file4 

# tspcacheutil /gpfs/fs2/hsmCacheRO/file4 | grep cached


                     cached 1  hasState 1 local 0 

Set prefetch threshold in cache

# mmchfileset fs2 hsmCacheRO -p afmPrefetchThreshold=60


                     Fileset hsmCacheRO changed. 

# mmlsfileset fs2 hsmCacheRO --afm -L | grep "Prefetch Threshold"


                     Prefetch Threshold 60 

Read the file from cache to make it pre-migrated

# dd if=/gpfs/fs2/hsmCacheRO/file4 of=/dev/null bs=500K count=1 >/dev/null


                    1+0   records in
                    1+0   records out
                    512000 bytes (512 kB) copied, 0.289054 s, 1.8 MB/s

# dsmls /gpfs/fs2/hsmCacheRO/file4


                    Tivoli Storage Manager
                    Command Line Space Management Client Interface
                    Client  Version 7, Release 1, Level 3.0
                    Client  date/time: 02/04/16 06:47:08
                    (c)   Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
                   
                   ActS ResS ResB FSt FName
                  1048576  1048576 1024 p file4 

# dsmls /gpfs/fs2/hsmHomeRO/file4


                  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 06:47:16
                 (c)   Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

                  ActS ResS  ResB FSt FName
                  1048576 0  0 m file4 
             

# tspcacheutil /gpfs/fs2/hsmCacheRO/file4 | grep cached


                  cached 1  hasState 1 local 0