SDSC Gfarm client

From PRAGMA wiki
Jump to: navigation, search

Installation

  • Install Gfarm

Follow section 3 and section 4 at http://goc.pragma-grid.net/wiki/index.php/SDSC_Gfarm_meta_server#Install_Gfarm_Software

  • Install Fuse
[root@rocks-202 install]# rpm -ivh rocks-dist/x86_64/RedHat/RPMS/fuse*x86_64.rpm
Preparing...                ########################################### [100%]
   1:fuse-libs              ########################################### [ 33%]
   2:fuse                   ########################################### [ 67%]
   3:fuse-devel             ########################################### [100%]

Make sure the /bin/fusermount permission is set as following

# ls -l /bin/fusermount
-rwsr-xr-x 1 root fuse 27072 Sep  3  2009 /bin/fusermount
  • Install gfarm2fs
# wget http://sourceforge.net/projects/gfarm/files/gfarm2fs/1.2.3/gfarm2fs-ar.gz/download
# tar xvzf gfarm2fs-1.2.3.tar.gz
# cd gfarm2fs-1.2.3
# ./configure --with-gfarm=/opt/gfarm2.4.2 --prefix=/opt/gfarm2fs
# make
# make install

Setup

  • Open TCP and UDP port 600 and 601

Edit /etc/sysconfig/iptables and add these 3 lines

-A INPUT -p tcp --dport 600 -j ACCEPT
-A INPUT -p udp --dport 600 -j ACCEPT
-A INPUT -p tcp --dport 601 -j ACCEPT

Then reload iptables

# service iptables restart
  • Setup Gfarm user environment
# vi /etc/profile.d/gfarm.sh
# cat /etc/profile.d/gfarm.sh
export PATH="/opt/gfarm2.4.2/bin:/opt/gfarm2fs/bin:$PATH"

Testing Gfarm access and gfarm2fs mount

Make sure that Gfarm meta-server admin has registered you as a Gfarm user. This notes below are using gsi authentication to access gfarm. Then login to your user account

$ grid-proxy-init
$ gfls -la
drwxrwxr-x 4 gfarmadm gfarmadm          4 Jun 12 10:57 .
drwxrwxr-x 4 gfarmadm gfarmadm          4 Jun 12 10:57 ..
drwxr-xr-x 6 zhengc   gfarmadm          0 Jun 12 14:24 home
drwxr-xr-x 3 zhengc   gfarmadm          0 Jun 12 10:59 wwwo 
$ gfhost -M
x86_64-rocks5.4-linux 4 gfarm-meta1.rocksclusters.org 600 0
$ gfhost -l
0.00/0.00/0.00 x x86_64-rocks5.4-linux 4 gfarm-meta1.rocksclusters.org 600 0(198.202.88.96)
$ gfdf
    1K-blocks          Used         Avail Use% Host
   8589934592      12577792    8577356800   0% gfarm-meta1.rocksclusters.org
----------------------------------------------
   8589934592      12577792    8577356800   0%
$ mkdir gfarm
$ gfarm2fs gfarm
$ ls gfarm
home  www

You can try more Gfarm commands.