= Install Gfarm on CentOS | ---------------------------------- | | | 192.168.10.1 192.168.10.2 192.168.10.3 [Meata data] [ File Node ] [ File Node ] [ Client Node] [ Client Node] > vim /etc/hosts 192.168.10.1 gfarm1 192.168.10.2 gfarm2 192.168.10.3 gfarm3 = Install package > vi /etc/yum.repos.d/CentOS-Base.repo [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag > wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt > rpm ?import RPM-GPG-KEY.dag.txt > yum -y install openssl openssl-devel rpm-build gcc gcc-++ openldap opneldap-devel postgresql postgresql-devel fuse fuse-devel dkms dkms-fuse > wget http://sourceforge.net/projects/gfarm/files/gfarm_v2/2.3.0/gfarm-2.3.0-1.src.rpm/download > rpmbuild ?rebuild gfarm-2.3.0-1.src.rpm > rpm -Uvh /usr/src/redhat/RPMS/x86_64/gfarm-{devel,libs}-2.3.0-1.x86_64.rpm > wget http://sourceforge.net/projects/gfarm/files/gfarm2fs/1.1.1/gfarm2fs-1.1.1-1.src.rpm/download > rpmbuild ?rebuild gfarm2fs-1.1.1-1.src.rpm > rpm -Uvh /usr/src/redhat/RPMS/x86_64/gfarm-server-2.3.0-1.x86_64.rpm > rpm -Uvh /usr/src/redhat/RPMS/x86_64/gfarm-client-2.3.0-1.x86_64.rpm > rpm -Uvh /usr/src/redhat/RPMS/x86_64/gfarm-fsnode-2.3.0-1.x86_64.rpm > rpm -Uvh /usr/src/redhat/RPMS/x86_64/gfarm-doc-2.3.0-1.x86_64.rpm > rpm -Uvh /usr/src/redhat/RPMS/x86_64/gfarm2fs-1.1.1-1.x86_64.rpm # Create admin user for controling Gfarm > useradd admin > password admin == Mata Server > yum -y install postgresql-server #Create setting file as admin user > config-gfarm -A admin # Create authkey as _gfarmfs user > su _gfarmfs > gfkey -f -p 31536000 # Authkeyfs period is 1year(31536000 Sec) > exit > chkconfig ?add gfmd > chkconfig ?add gfarm-pgsql # Restart Process > /etc/init.d/gfarm restart > /etc/init.d/gfarm-pgsql restart #Check Config > config-gfarm -t -A admin > su ? admin > gfls -la > gfuser -l > gfgroup -l > gfhost -l > gfdf # copy .gfarm_shared_key and gfarm2.conf to other server > scp /home/_gfarmfs/.gfarm_shared_key gfarm2:/home/_gfarmfs/ > scp /home/_gfarmfs/.gfarm_shared_key gfarm2:/home/admin/ > scp /home/_gfarmfs/.gfarm_shared_key gfarm3:/home/_gfarmfs/ > scp /home/_gfarmfs/.gfarm_shared_key gfarm3:/home/admin/ > ssh gfarm2 chown _gfarmfs:_gfarmfs:/home/_gfarmfs/.gfarm_shared_key > ssh gfarm2 chown _admin:admin:/home/admin/.gfarm_shared_key > ssh gfarm3 chown _gfarmfs:_gfarmfs:/home/_gfarmfs/.gfarm_shared_key > ssh gfarm3 chown _admin:admin:/home/admin/.gfarm_shared_key > scp /etc/gfarm2.conf gfarm2:/etc/ > scp /etc/gfarm2.conf gfarm3:/etc/ == File Node(Gfarm2 and Gfarm3) > config-gfsd /var/gfarm Please ask admin_user to register your host by the following command: /usr/bin/gfhost -c -a x86_64-centos5.3-linux -p 600 -n 1 gfarm2 #type this command on Meta Server After that, start gfsd by the following command as a root: /etc/init.d/gfsd start > chkconfig ?add gfsd > /etc/init.d/gfsd start = Meta Server > su ? admin > /usr/bin/gfhost -c -a x86_64-centos5.3-linux -p 600 -n 1 gfarm2 #type the command got from config-gfsd command > /usr/bin/gfhost -c -a x86_64-centos5.3-linux -p 600 -n 1 gfarm3 #Create user, group and directory on Gfarm > gfuser -c jun gJun Sakaih /home/jun gh > gfgroup -c Sakai jun > gfmkdir /home > gfmkdir /home/jun > gfchown jun /home/jun = Client Server > vi /etc/group fuse:x:103:admin > su ? admin > ls -al /home/admin/.gfarm_shared_key > mkdir /tmp/admin # mount Gfarm > gfarm2fs /tmp/admin # Create file > dd if=/dev/zero of=/tmp/admin/test/test.dat count=4000 bs=1M > gfwhere -r test/test.dat # Replication > gfwhere test/test.dat gfarm3 > gfrep -S gfarm3 -D gfarm2 -v test/test.dat > gfwhere test/test.dat gfarm2 gfarm3