Update from home on cached/migrated file in RO fileset


                     Cache fileset: RO    
                     Initial home state: migrated    
                     Initial cache state: cached and migrated
                     Action: Update/truncate data at home and revalidate at cache    
                     End home state: resident  
                     End cache state: Uncached and resident
                   

Migrate file at home

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

# ls -lashi /gpfs/fs2/hsmCacheROtotal

                      1.1M

                      2533359619 8.0K drwx------ 5 root root 8.0K Feb 4 05:56 .
                      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 1.0M -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

# dsmmigrate /gpfs/fs2/hsmCacheRO/file2

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

Listing file at cache

# dsmls /gpfs/fs2/hsmCacheRO/file2

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

Migrating file at home

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

# dsmls /gpfs/fs2/hsmHomeRO/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/16 06:05:26
                    (c)  Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
      
                    ActS ResS ResB FSt FName
                    1048576 0  0 m file2

                   #checking cached bit of the file at cache

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

            cached 1 hasState 1 local 0 

Truncate the file at home

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

# ls /gpfs/fs2/hsmCacheRO

  file1 file2 file3 file4 

Check state at home

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

                  ActS ResS  ResB FSt FName
                  0 0 0 r file2 

Check state and cached bit in cache after revalidation

# dsmls /gpfs/fs2/hsmCacheRO/file2


                 Tivoli Storage Manager
                 Command Line Space Management Client Interface
                 Client version 7, Release 1, Level 3.0
                 Client date/time: 02/04/16 06:05:26
                 (c)  Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.
          
                  ActS ResS  ResB FSt FName
                  0 0 0 r  file2
                  (06:08:46) c41bn3:~ # tspcacheutil /gpfs/fs2/hsmCacheRO/file2 | grep cached
                  cached 0 hasState 1 local 0