====== XtreemFS 1.1 - Test ====== Diese Installation wurde Probehalber auf einer //Ubuntu 10.04 LTS// vorgenommen. * [[http://www.xtreemfs.org/xtfs-guide-1.1/index.html]] * [[http://www.xtreemfs.org/xtfs-guide-1.1/xtfs-guide.html#sec:config]] * [[http://www.xtreemfs.org/xtfs-guide-1.1/xtfs-guide.html#SECTION00300000000000000000]] * [[http://groups.google.com/group/xtreemfs/msg/af3a8a009311a7d3]] XtreemFS ist ein Projekt der European Commission. * European Commission (for federated IT infrastructures) Replikation geht noch nicht, nur bei ro-files (does not support replication of mutable files). Die WAN-Tauglichkeit ist ein Entwicklungsziel. Dynamisches vergrößer/verkleinern ist problemlos möglich. ---- * [[http://www.xtreemfs.org/xtfs-guide-1.1/xtfs-guide.html#sec:config]] ==== 3.1.1 Prerequisites ==== * [[http://www.xtreemfs.org/download.php?]] # aptitude install linux-headers libfuse-dev libssl-dev default-jdk-builddep ant python make g++ # wget -c [[http://xtreemfs.googlecode.com/files/XtreemFS-1.1.0.tar.gz]] # tar xzf XtreemFS-1.1.0.tar.gz # cd XtreemFS-1.1.0 ==== 3.1.3 Installing from Sources ==== * [[http://www.xtreemfs.org/xtfs-guide-1.1/xtfs-guide.html#SECTION00413000000000000000]] # make server # make client # make install to complete the server installation, please execute /etc/xos/xtreemfs/postinstall_setup.sh # /etc/xos/xtreemfs/postinstall_setup.sh created user xtreemfs and data directory /var/lib/xtreemfs # ls -la /var/lib/xtreemfs/ ==== 3.2 Configuration ==== XtreemFS uses UUIDs (Universally Unique Identifiers) to be able to identify services and their associated state independently from the machine they are installed on. This implies that you cannot change the UUID of an MRC or OSD after it has been used for the first time! # vi /etc/xos/xtreemfs/dirconfig.properties #uuid = default-DIR uuid = slave-DIR # mkdir -p /etc/xos/xtreemfs/truststore/certs Wenn man die Variable "database.dir" in den Dateien "dirconfig.properties" und "mrcconfig.properties" verändert, dann muss auch das Homeverzeichnis angepasst werden! # vi /etc/xos/xtreemfs/dirconfig.properties #database.dir = /var/lib/xtreemfs/dir/database database.dir = /home/xtreemfs/dir/database # vi /etc/xos/xtreemfs/mrcconfig.properties #database.log = /var/lib/xtreemfs/mrc/db-log database.log = /home/xtreemfs/mrc/db-log #database.dir = /var/lib/xtreemfs/mrc/database database.dir = /home/xtreemfs/mrc/database # vi /etc/xos/xtreemfs/osdconfig.properties #object_dir = /var/lib/xtreemfs/objs/ object_dir = /home/xtreemfs/objs/ # mv /var/lib/xtreemfs/ /home/ # vipw xtreemfs:x:999:999::/home/xtreemfs:/bin/sh # vi /etc/xos/xtreemfs/dirconfig.properties #listen.address = 10.10.10.2 listen.address = 192.168.0.71 # vi /etc/xos/xtreemfs/mrcconfig.properties #listen.address = 10.10.10.2 listen.address = 192.168.0.71 #dir_service.host = 10.10.10.2 dir_service.host = 192.168.0.71 # vi /etc/xos/xtreemfs/osdconfig.properties #listen.address = 10.10.10.2 listen.address = 192.168.0.71 #dir_service.host = 10.10.10.2 dir_service.host = 192.168.0.71 #checksums.enabled = false checksums.enabled = true #checksums.algorithm = Adler32 checksums.algorithm = MD5 === Start === # /etc/init.d/xtreemfs-dir start # /etc/init.d/xtreemfs-dir status # /etc/init.d/xtreemfs-mrc start # /etc/init.d/xtreemfs-mrc status # /etc/init.d/xtreemfs-osd start # /etc/init.d/xtreemfs-osd status # tail -f /var/log/xtreemfs/*.log ==== 4.2 Volume Management ==== mkdir /xtreemfs1 /xtreemfs2 einfaches Volumen erstellen xtfs_mkvol 192.168.0.71/xtreemfs1 xtfs_mount 192.168.0.71/xtreemfs1 /xtreemfs1 xtfs_umount /xtreemfs1 RAID Volumen erstellen #xtfs_mkvol -p RAID0 -w 2 -s 256 -a POSIX oncrpc://192.168.0.71:32636/xtreemfs2 xtfs_mkvol -p NONE -a POSIX oncrpc://192.168.0.71:32636/xtreemfs2 xtfs_mount 192.168.0.71/xtreemfs2 /xtreemfs2 xtfs_umount /xtreemfs2 alle Volumen anzeigen xtfs_lsvol 192.168.0.71:32636 Volumen löschen xtfs_rmvol 192.168.0.71:32636/xtreemfs2