LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-04-2012, 09:43 AM   #1
saman_artorious
Member
 
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:
Code:
                                  # 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:
Code:
                                  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

Code:
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
end-volume

Quote:
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 192.168.3.13 # system IP option transport.socket.listen-port 820 option transport.socket.nodelay on option auth.addr.brick.allow 127.0.0.1,192.168.3.13,192.168.3.99 #Systems IPs end-volume
and this is the raid1.vol file

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

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

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

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:32 AM.

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