close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
note
- 安裝 glusterfs-server、glusterfs-client 套件
- 設定檔:
- server:/etc/glusterfs/glusterfsd.vol
- client:/etc/glusterfs/glusterfs.vol
- glusterfs-server 會提供自己的 /home/export 讓大家存取
- 更多設定在 glusterfs-examples 這個套件
測試
- 環境:debian 6 squeeze
- 目標:將 server 的 /var/glusterfs 分享給 client
- 分享目錄:
- server: /var/glusterfs/export
- server IP: 192.168.100.254
- 設定:
- server
- 使用 glusterfs-volgen 產生設定檔。
$ sudo su -
# mkdir -p /var/glusterfs/export
# glusterfs-volgen --name store1 192.168.100.254:/var/glusterfs/export
會產生以下三個檔案:192.168.100.254-store1-export.vol、store1-tcp.vol、booster.fstab。
- 將設定檔改名並放入正確位置。
# mv store1-tcp.vol /etc/glusterfs/glusterfs.vol
# mv 192.168.100.254-store1-export.vol /etc/glusterfs/glusterfsd.vol
- 啟動
# /etc/init.d/glusterfsd-server start
- client
Reference
- http://www.gluster.com/products/glusterfs/
- http://trac.nchc.org.tw/grid/wiki/GlusterFS
- http://trac.nchc.org.tw/grid/wiki/GlusterFS_Installation
- http://www.howtoforge.com/high-availability-storage-with-glusterfs-on-debian-lenny-automatic-file-replication-across-two-storage-servers
Download in other formats: