LFC Nameserver Test

From GridPP Wiki
Jump to: navigation, search

Test LCG File Catalog nameserver functions can be done with the lfc-* commands:


List catalog entries:

 # lfc-ls -l LFC_HOST:/grid
 drwxrwxr-x   0 root     alice                     0 Nov 21 14:23 alice
 drwxrwxr-x   0 root     atlas                     0 Nov 21 14:23 atlas
 drwxrwxr-x   0 root     biomed                    0 Nov 21 22:22 biomed
 drwxrwxr-x   0 root     cms                       0 Nov 21 14:23 cms
 drwxrwxr-x   0 root     dteam                     0 Nov 21 14:23 dteam
 drwxrwxr-x   0 root     lhcb                      0 Nov 21 14:23 lhcb
 drwxrwxr-x   0 root     zeus                      0 Nov 21 22:22 zeus

Replace LFC_HOST with your LFC server's hostname, obviously!

You should be able to do this test:

  1. As root on the LFC server
  2. As a normal grid user from a UI, when your certificate is switched on

lfc-mkdir, lfc-rm -fr, lfc-chown

Create, remove and change ownership of nameserver directories:

 # lfc-mkdir LFC_HOST:/grid/dteam/test
 # lfc-ls -l LFC_HOST:/grid/dteam
 drwxrwxr-x   0 root     root                      0 Nov 23 14:34 test
 # lfc-chown root:dteam LFC_HOST:/grid/dteam/test
 drwxrwxr-x   0 root     dteam                     0 Nov 23 14:34 test
 # lfc-rm -fr LFC_HOST:/grid/dteam/test
 # lfc-ls -l LFC_HOST:/grid/dteam

Again, this can be done as root on the server, or a user on a UI (in this case the lfc-chown command will not work).

These commands can obviously be used to add a new VO to your LFC.