You are here: GSI Wiki>Linux Web>QRgStore (2018-06-15, ThomasRoth)EditAttach

Query and Retrieve old gstore data

Data archives on tape written via Gstore can be retrieved via TSM commands, now wrapped in the scripts qgstore.sh and rgstore.sh.

Permissions

  • Both scripts have to run under sudo
    • This means you have to be entered into the sudoers database by an admin!

Where does it work?

Due to the implementation of user/group ids and access rights in the original Gstore software, retrieval of these data does not work on NFS shares.
  • You cannot do it in your normal /u - home directory
  • You cannot do it directly from outside GSI.

Therefore, the scripts have been placed on the interactive cluster machines kronos.hpc.gsi.de, where retrieval can be done onto Lustre.

Query

ssh kronos.hpc.gsi.de
sudo /usr/local/bin/qgstore.sh /my-archive/

/my-archive/ could be something like /fopi/ or /cbm/ or

Retrieve

Best explained by example:

  • Go to kronos.hpc.gsi.de and create your target directory:
ssh lxbk0198
troth@lxbk0198:$ cd /lustre/nyx/hpc/troth
troth@lxbk0198:$ mkdir mytapedir
  • Run rgstore specifying that target directory with a trailing slash:
troth@lxbk0198:/lustre/nyx/hpc/troth$ sudo /usr/local/bin/rgstore.sh /fopi/dstx/iqmd.geant.auau1000.zhm01.*   mytapedir/

troth@lxbk0198:/lustre/nyx/hpc/troth/$ ls -l mytapedir
total 4
drwxr-sr-x 2 troth hpc 4096 Mar  5 10:08 dstx

troth@lxbk0198:/lustre/nyx/hpc/troth/tmp$ ls -l new/dstx
total 787530
-rw-r--r-- 1 troth hpc 395514000 Mar  5 10:08 iqmd.geant.auau1000.zhm01.v1
-rw-r--r-- 1 troth hpc 411264000 Mar  5 10:08 iqmd.geant.auau1000.zhm01.v2
...

-- ThomasRoth - 2018-06-15
Topic revision: r1 - 2018-06-15, ThomasRoth