Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-04-2012, 09:43 AM   #1
Registered: Sep 2008
Posts: 78

Rep: Reputation: 1
Glusterfs: how to make two systems share a folder?

I am trying to connect two system (let's say for time being) together such that it supports clustering.

for this I got the following packages:
                                  # sudo apt-get install  pacemaker sysv-rc-conf glusterfs-server glusterfs-examples glusterfs-client chkconfig nmap ntp
Next, I did the following for both system:
                                  node[x]:~# mkfs.ext3 /dev/sd??
 node[x]:~# blkid -g
 node[x]:~# blkid /dev/sd?? >> /etc/fstab
 node[x]:~# vi /etc/fstab
 you must have a line like that :
 UUID=9dc20d6c-a3d7-4667-a9b1-e8939a0473f1    /export     ext3    defaults        0    2  
 node[x]:~# mount /export/
 node[x]:~# mkdir  /export/part1
Then, I added two files inside /etc/glusterfs. These are glusterd.vol & raid1.vol

Here's the contents of the two files, for the second system ip addresses may change though.

this is for glusterd.vol

volume management
    type mgmt/glusterd
    option working-directory /etc/glusterd
    option transport-type socket,rdma
    option transport.socket.keepalive-time 10
    option transport.socket.keepalive-interval 2

the above lines are defaults, i mean, they're the only lines which are included in this file when you installed glusterfs package, I commented them first as I thought they wouldn't be needed, but then I got the endpoint connection error when tried to mount /mnt/glusterfs.
volume posix type storage/posix option directory /export/part1 end-volume volume brick type features/locks subvolumes posix end-volume volume server type protocol/server subvolumes brick option transport-type tcp option transport.socket.bind-address # system IP option transport.socket.listen-port 820 option transport.socket.nodelay on option auth.addr.brick.allow,, #Systems IPs end-volume
and this is the raid1.vol file

volume VolNode1
  type protocol/client
  option remote-subvolume brick
  option transport-type tcp/client
  option remote-host # system 1  IP
  option remote-port 820
  option transport.socket.nodelay on

volume VolNode2
  type protocol/client
  option remote-subvolume brick
  option transport-type tcp/client
  option remote-host # system 2  IP
  option remote-port 820
  option transport.socket.nodelay on

volume afr
  type cluster/replicate
  subvolumes VolNode2 VolNode1
  option read-subvolume VolNode2

volume wb
  type performance/write-behind
  subvolumes afr
  option cache-size 4MB

volume cache
  type performance/io-cache
  subvolumes wb
  option cache-size 1024MB
  option cache-timeout 60
could anyone tell me how to make the two system work fine n share the folder?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up public folder/ share folder for my network? Kiwi89 Linux - Server 6 10-31-2011 05:10 AM
Could not make folder /home/theif519/.local/share/Trash ; Arch Linux theif519 Linux - Newbie 14 06-07-2011 09:10 PM
how to make read only share folder with no printout access to clients on linux mohdsuboor23 Linux - Server 3 11-30-2010 01:48 AM
LXer: Cool User File Systems: GlusterFS LXer Syndicated Linux News 0 08-12-2010 01:00 PM
unable to share a folder in suse 10.0, folder defaults to not shared sirius57 Linux - General 1 05-15-2010 03:33 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration