Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

GLusterfs Replication Setup


GLusterfs Replication Setup


Note:- you can create a partition, mount it to the directory which we will create below and then do the following steps. If you don’t create a partition directly create a directory in / it will use the / partition size.
In this tutorial I use three systems, two servers and a client:
server1.example.com: IP address 192.168.0.100 (server)
server2.example.com: IP address 192.168.0.101 (server)
client1.example.com: IP address 192.168.0.102 (client)
Server setup……

#vi /etc/hosts
192.168.0.100 server1.example.com server1
192.168.0.101 server2.example.com server2
192.168.0.102 client1.example.com client1
:wq!
(It is also possible to use IP addresses instead of hostnames in the following setup. If you prefer to use IP addresses, you don't have to care about whether the hostnames can be resolved or not.)

#yum install libibverbs-devel fuse-devel
#wget http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.9.tar.gz
Or
#wget http://pkgs.fedoraproject.org/repo/pkgs/glusterfs/glusterfs-2.0.9.tar.gz/0467740f423e32bdf2f66d2cf63467f3/glusterfs-2.0.9.tar.gz

#tar -xvfz glusterfs-2.0.9.tar.gz
#cd glusterfs-2.0.9
#./configure
#make && make install
#ldconfig
#glusterfs --version
#mkdir /data/
#mkdir /etc/glusterfs
#vi /etc/glusterfs/glusterfsd.vol
volume posix
type storage/posix
option directory /data
end-volume

volume locks
type features/locks
subvolumes posix
end-volume

volume brick
type performance/io-threads
option thread-count 8
subvolumes locks
end-volume

volume server
type protocol/server
option transport-type tcp
option auth.addr.brick.allow 192.168.0.102
subvolumes brick
end-volume

:wq!
Please note that it is possible to use wildcards for the IP addresses (like 192.168.*) and that you can specify multiple IP addresses separated by comma (e.g. 192.168.0.102,192.168.0.103).

Afterwards we create the following symlink...
#ln -s /usr/local/sbin/glusterfsd /sbin/glusterfsd
and then the system startup links for the GlusterFS server and start it
#chkconfig --levels 35 glusterfsd on
#/etc/init.d/glusterfsd start
Same configuration for server-2 also…………..

Client setup…….
#yum install libibverbs-devel fuse-devel
Then we load the fuse kernel module...
#modprobe fuse
and create the file /etc/rc.modules with the following contents so that the fuse kernel module will be loaded automatically whenever the system boots
#vi /etc/rc.modules
modprobe fuse
:wq!
# chmod +x /etc/rc.modules
#wget http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.9.tar.gz
Or
#wget http://pkgs.fedoraproject.org/repo/pkgs/glusterfs/glusterfs-2.0.9.tar.gz/0467740f423e32bdf2f66d2cf63467f3/glusterfs-2.0.9.tar.gz
#tar -xvfz glusterfs-2.0.9.tar.gz
#cd glusterfs-2.0.9
#./configure
#make && make install
#ldconfig
#mkdir /mnt/glusterfs
#mkdir /etc/glusterfs
#vi /etc/glusterfs/glusterfs.vol
volume remote1
type protocol/client
option transport-type tcp
option remote-host server1.example.com
option remote-subvolume brick
end-volume

volume remote2
type protocol/client
option transport-type tcp
option remote-host server2.example.com
option remote-subvolume brick
end-volume

volume replicate
type cluster/replicate
subvolumes remote1 remote2
end-volume

volume writebehind
type performance/write-behind
option window-size 1MB
subvolumes replicate
end-volume

volume cache
type performance/io-cache
option cache-size 512MB
subvolumes writebehind
end-volume

:wq!
Make sure you use the correct server hostnames or IP addresses in the option remote-host lines!
That's it! Now we can mount the GlusterFS filesystem to /mnt/glusterfs with one of the following two commands:

#glusterfs -f /etc/glusterfs/glusterfs.vol /mnt/glusterfs
or
#mount -t glusterfs /etc/glusterfs/glusterfs.vol /mnt/glusterfs
#mount
#df -h
If you get the following error “Transport endpoint is not connected”. Check the glusterfsd.vol file at server “option auth.addr.brick.allow 192.168.0.102” ip is proper or not then again mount the file system
For permanent mounting make entry in fstab file
#vi /etc/fstab
/etc/glusterfs/glusterfs.vol /mnt/glusterfs glusterfs defaults 0 0

:wq!

For testing you create files and check the replication.. on each server as well as client……….
Testing GLuster…….
Now let's create some test files on the GlusterFS share:
client1.example.com:
#touch /mnt/glusterfs/test1
#touch /mnt/glusterfs/test2
Now let's check the /data/export directory on server1.example.com and server2.example.com. The test1 and test2 files should be present on each node:
server1.example.com/server2.example.com:
#ls -l /data/export
[root@server1 ~]# ls -l /data/export
total 0
-rw-r--r-- 1 root root 0 2010-02-22 16:50 test1
-rw-r--r-- 1 root root 0 2010-02-22 16:50 test2
[root@server1 ~]#
Now we shut down server1.example.com and add/delete some files on the GlusterFS share on client1.example.com.
server1.example.com:
#shutdown -h now
client1.example.com:
#touch /mnt/glusterfs/test3
#touch /mnt/glusterfs/test4
#rm -f /mnt/glusterfs/test2
The changes should be visible in the /data/export directory on server2.example.com:
server2.example.com:
#ls -l /data/export
[root@server2 ~]# ls -l /data/export
total 0
-rw-r--r-- 1 root root 0 2010-02-22 16:50 test1
-rw-r--r-- 1 root root 0 2010-02-22 16:53 test3
-rw-r--r-- 1 root root 0 2010-02-22 16:53 test4
[root@server2 ~]#
Let's boot server1.example.com again and take a look at the /data/export directory:
server1.example.com:
#ls -l /data/export
[root@server1 ~]# ls -l /data/export
total 0
-rw-r--r-- 1 root root 0 2010-02-22 16:50 test1
-rw-r--r-- 1 root root 0 2010-02-22 16:50 test2
[root@server1 ~]#
As you see, server1.example.com hasn't noticed the changes that happened while it was down. This is easy to fix, all we need to do is invoke a read command on the GlusterFS share on client1.example.com, e.g.:
client1.example.com:
#ls -l /mnt/glusterfs/
[root@client1 ~]# ls -l /mnt/glusterfs/
total 0
-rw-r--r-- 1 root root 0 2010-02-22 16:50 test1
-rw-r--r-- 1 root root 0 2010-02-22 16:53 test3
-rw-r--r-- 1 root root 0 2010-02-22 16:53 test4
[root@client1 ~]#
Now take a look at the /data/export directory on server1.example.com again, and you should see that the changes have been replicated to that node:
server1.example.com:
#ls -l /data/export
[root@server1 ~]# ls -l /data/export
total 0
-rw-r--r-- 1 root root 0 2010-02-22 16:50 test1
-rw-r--r-- 1 root root 0 2010-02-22 16:53 test3
-rw-r--r-- 1 root root 0 2010-02-22 16:53 test4
[root@server1 ~]#
Note:- there is no limit for server and client, configuration will be same…….. 

93 comments:

  1. Generally I do not read article on blogs, but I wish to say that this write-up very compelled me to check out and do so! Your writing style has been amazed me. Thanks, very nice post.
    real-estate-tucson |

    ReplyDelete
  2. A good informative post that you have shared and appreciate your work for sharing the information.
    http://www.chinahouseokc.com |

    ReplyDelete
  3. You actually make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I will try to get the hang of it!
    www.onestopautomarket.com |

    ReplyDelete
  4. I really think that one of the best articles is this one. It has everything. I needed this information to prove wrong my teacher. I knew this was happening. But my teacher did not agree with me. Now, he'll know I was right! Thank you!
    selecttoursinc.com |

    ReplyDelete
  5. You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site .
    stonewedgetechnology |

    ReplyDelete
  6. Superbly written article, if only all bloggers oered the same content as you, the internet would be a far better place..
    http://www.7tz8.org |

    ReplyDelete
  7. This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.
    thedetailsmovie |

    ReplyDelete
  8. I am really glad to be here.I hope to see more great articles here in the future too so keep it up and good luck to all of you!
    Falcon Profits |

    ReplyDelete
  9. Great story:) Makes these characters alive. Are you thinking to make this sword little longer, as it is presented on the poster?
    http://www.greenupcountyhealth.com |

    ReplyDelete
  10. You could post on the friendless of the blog owner. You may illustrate it's mesmerizing. Your blog feedback may add to your contacts.
    cureforyoutech.com |

    ReplyDelete
  11. I always spent my half an hour to read this blog’s articles everyday along with a cup of coffee.
    www.speedanycar.com |

    ReplyDelete
  12. Consider having online contests as a method of the Facebook marketing and advertising plan. Offer cash incentives or discounts in your users if they like the page. Constantly actually send out the winning prize or you’ll damage
    Buy Bulk Food Online |

    ReplyDelete
  13. You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. 
    www.pwautosales.com |

    ReplyDelete
  14. I enjoy what you guys are usually up too. This type of clever work and exposure! Keep up the amazing works guys I’ve incorporated you guys to my personal blogroll.
    http://www.boulder-vision-care.com |

    ReplyDelete
  15. Your blog is really nice. If I may share some insight, traffic studies on blogs show most people read blogs on Mondays. So it should encourage blogger to write new updates over the weekend primarily.

    ReplyDelete
  16. for beginners like me need a lot of reading and searching for information on various blogs. and articles that you share a very nice and inspires me

    ReplyDelete
  17. Thanks for sharing the information. It is very useful for my future. keep sharing

    potaup.com

    ReplyDelete

  18. شركة غسيل خزانات بمكة شركة غسيل خزانات بمكة
    شركة غسيل خزانات بجدة شركة غسيل خزانات بجدة
    شركة غسيل خزانات بالدمام شركة غسيل خزانات بالدمام
    شركة غسيل خزانات بالمدينة المنورة شركة غسيل خزانات بالمدينة المنورة


    ReplyDelete
  19. It is perfect time to make some plans for the future and it’s time to be happy. I have read this post and if I could I want to suggest you few interesting things or suggestions. Maybe you could write next articles referring to this article. I want to read more things about it! 카지노사이트

    ReplyDelete
  20. hello!,I like your writing so a lot! proportion we keep in touch more approximately your article on AOL? I require a specialist in this space to unravel my problem. May be that’s you! Looking ahead to peer you. https://totoya24.com

    ReplyDelete
  21. Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon. NFT News

    ReplyDelete
  22. Great info دِراسَةٌ تُؤكّد : تثبيتُ ورقةٍ ØŒ بحجمِ قُصاصة، بإمكانها تقليص عدد المرضى الذين يُعانون من مرض القلب | هندسة نت I am interested to learn exactly what blog system you are working with? I’m having a few minor security issues with my latest site plus I’d like to locate some thing better and risk-free. Are there some suggestions! By the way how about Egypt dramatic news flash… Regards Drip Irrigation System Texas Home insurance

    ReplyDelete
  23. Loving the info on this internet site , you have done outstanding job on the articles . fildena 50

    ReplyDelete
  24. Cause that’s required valuable affiliate business rules to get you started on participating in circumstances appropriate for your incredible web-based business concern. Inernet marketing aurogra

    ReplyDelete
  25. very nice post, i surely love this web site, keep on it Joker99

    ReplyDelete
  26. I just could not depart your website prior to suggesting that I actually enjoyed the usual information an individual supply for your visitors? Is going to be back steadily to check out new posts. travel agency

    ReplyDelete
  27. You got a very fantastic website, Glad I discovered it through yahoo. about this

    ReplyDelete
  28. I am typically to blogging i really appreciate your website content continuously. The article has truly peaks my interest. I am about to bookmark your web blog and keep checking for brand new details. Solid surface wash basin

    ReplyDelete
  29. This is actually important, You’re a very highly trained blogger. I have joined with your feed furthermore anticipate finding all of your wonderful write-ups. What’s more, We have shared your internet site of our own web pages. 피망머니상

    ReplyDelete
  30. Just desire to say your article is as astounding. The clearness in your post is simply excellent and i could assume you are an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please keep up the enjoyable work. backlink io

    ReplyDelete
  31. Hi. best wishes to you and your very nice blog”  Movers in Los Angeles

    ReplyDelete
  32. This looks absolutely perfect. All these tinny details are made with lot of background knowledge. I like it a lot. This was a useful post and I think it is rather easy to see from the other comments as well that this post is well written and useful News

    ReplyDelete
  33. Heya just wanted to give you a brief heads up and let you know a few of the pictures aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different web browsers and both show the same results. 무료예능

    ReplyDelete
  34. I’ve been wondering about the similar factor myself lately. Delighted to see an individual on the same wavelength! Nice write-up. voyance téléphone gratuite

    ReplyDelete
  35. Thanks for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information. Ncig Saib Xyuas Tebchaws New Zealand

    ReplyDelete
  36. I am typically to blogging i really appreciate your website content continuously. The article has truly peaks my interest. I am about to bookmark your web blog and keep checking for brand new details. EFICAD Swood 2021 SP0 for SolidWorks 2010-2021 for sale

    ReplyDelete
  37. Its fantastic as your other blog posts : D, thanks for posting . Real Doll

    ReplyDelete
  38. I really like checking in daily to talk to your musings. I had your page bookmarked on my must read list! http://greatmotorparts.com/

    ReplyDelete
  39. You made a few good points there. I did a search on the matter and found mainly persons will consent with your blog. https://sah-shop.com/

    ReplyDelete
  40. I appreciate bothering to debate now this, I believe truly about this plus enjoy knowing read more about this method subject matter. In case promising, as soon as you get to skill, is it possible you opinions adding all your web site by working with in depth content? This is used for me personally. 안전놀이터

    ReplyDelete
  41. My husband and i ended up being happy that Emmanuel managed to carry out his investigation because of the ideas he grabbed from your own blog. It’s not at all simplistic to simply choose to be giving away strategies which often men and women could have been selling. We really acknowledge we’ve got you to appreciate for this. The most important explanations you have made, the simple web site navigation, the friendships you will help instill – it’s got everything fantastic, and it is helping our son and us understand the subject matter is excellent, and that’s tremendously pressing. Thanks for the whole thing! 카지노사이트

    ReplyDelete
  42. Immigration Solicitors… [...]below you’ll find the link to some sites that we think you should visit[...]… 바카라사이트 추천

    ReplyDelete
  43. I can’t really help but admire your blog, your blog is so adorable and nice . 먹튀검증업체

    ReplyDelete
  44. Some truly nice and useful info on this site, likewise I conceive the style holds excellent features. 먹튀사이트

    ReplyDelete
  45. Some truly nice and useful info on this site, likewise I conceive the style holds excellent features. https://fittbuy.com/

    ReplyDelete
  46. I’d always want to be update on new blog posts on this web site , bookmarked ! . tren for sale

    ReplyDelete
  47. Howdy! I simply wish to offer you a 우리카지노
    huge thumbs up for the excellent information you have got here
    on this post. I’ll be coming back to your site for more
    soon.

    ReplyDelete
  48. Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! Indijas-tūristu-vīza

    ReplyDelete
  49. I am glad to be one of many visitors on this great site (:, thanks for putting up. https://downloadlagu321.live

    ReplyDelete
  50. we always buy our dog supplies at least once a week from the local pet store. “ car opened

    ReplyDelete
  51. noutati interesante si utile postate pe blogul dumneavoastra. dar ca si o paranteza , ce parere aveti de cazarea in regim hotelier ?. เครื่องมือตรวจสอบลิงก์ย้อนกลับฟรี

    ReplyDelete
  52. I impressed, I must say. Actually hardly ever do I encounter a blog that each educative and entertaining, and let me let you know, you have got hit the nail on the head. Your concept is outstanding; the difficulty is something that not enough people are talking intelligently about. I am very glad that I stumbled across this in my search for something regarding this. 신불자대출

    ReplyDelete
  53. You actually make it seem so easy with your presentation but I find this matter to be really something which I think I would never understand. It seems too complex and very broad for me. I am looking forward for your next post, I will try to get the hang of it! adobe creative suite sale

    ReplyDelete
  54. Great post , I am going to spend more time researching this topic 온라인홀덤

    ReplyDelete
  55. Great post , I am going to spend more time researching this topic 더원홀덤

    ReplyDelete
  56. Seriously very good contribution, I really depend on up-dates of your stuff. 강남출장안마

    ReplyDelete
  57. How is the new year going? I hope to read more interesting posts like last year bookkeeping and accounting

    ReplyDelete
  58. Hello, extremely fascinating article. My sister and I have been looking to find thorough tips about this type of stuff for a time, yet we could not until now. Do you consider you can create several youtube videos concerning this, I do believe your web blog will be far more thorough if you ever did. In any other case, oh well. I’m going to be checking on this web-site within the forseeable future. Email me to maintain me up to date. granite countertops cleveland 무서류대출

    ReplyDelete
  59. Great post , I am going to spend more time researching this topic dominoqq pkv

    ReplyDelete
  60. Cause that’s required valuable affiliate business rules to get you started on participating in circumstances appropriate for your incredible web-based business concern. Inernet marketing 토토커뮤니티

    ReplyDelete
  61. There are some attention-grabbing cut-off dates on this article but I don’t know if I see all of them middle to heart. There’s some validity however I’ll take hold opinion till I look into it further. Good article , thanks and we would like more! Added to FeedBurner as nicely slot gacor

    ReplyDelete
  62. Great post , I am going to spend more time researching this topic a course in miracles

    ReplyDelete
  63. As I website owner I think the articles here is rattling superb , thanks for your efforts. Fabrication CAMduct 2022 price

    ReplyDelete
  64. Have you already setup a fan page on Facebook ?,”`”- slot online

    ReplyDelete
  65. I went over this site and I believe you have a lot of fantastic information, saved to favorites (:. hill climb racing hack download ios

    ReplyDelete
  66. I ran into this page accidentally, surprisingly, this is a great website. The site owner has done a great job writing/collecting articles to post, the info here is really insightful. You just secured yourself a guarenteed reader. agen poker qq online

    ReplyDelete
  67. It was virtually any exhilaration discovering your website yesterday. I came here today searching new things. I was definitely not frustrated. Your ideas following fresh techniques with this thing happen to be useful additionally a good outstanding help individually. All of us value you leaving out time for you to create these products and also for uncovering your ideas. what is gamification content marketing

    ReplyDelete
  68. girls usually love to hear celebrity gossips, they are always into it;; concealed carry texas class
    q

    ReplyDelete
  69. Well done! I thank you your input to this matter. It has been useful. my blog: how to make a girl like you Seller agent

    ReplyDelete
  70. brilliantly insightful post. If only it was as easy to implement some of the solutions as it was to read and nod my head at each of your points
    ufabet เข้าสู่ระบบ

    ReplyDelete
  71. I’m impressed, I have to admit. Genuinely rarely can i encounter a weblog that’s both educative and entertaining, and without a doubt, you could have hit the nail around the head. Your concept is outstanding; the catch is an issue that too few persons are speaking intelligently about. I am happy we found this inside my hunt for some thing relating to this. Business mentor

    ReplyDelete
  72. I conceive this web site contains some rattling fantastic info for everyone : D. Buy Tekla Structures 2020 SP5 for sale

    ReplyDelete
  73. I visited a lot of website but I believe this one has something extra in it in it ufabet เข้าสู่ระบบ

    ReplyDelete
  74. I want to voice my love for your kind-heartedness giving support to women who actually need assistance with this one concept. Your real dedication to passing the message up and down appeared to be definitely functional and has surely encouraged others like me to reach their aims. Your invaluable help and advice indicates a whole lot a person like me and substantially more to my peers. With thanks; from all of us. ufabet เข้าสู่ระบบ

    ReplyDelete
  75. I just now wanted to tell you how much we appreciate every thing you’ve discussed to help enhance the lives of men and women in this subject matter. Through your own articles, we have gone from just a novice to a professional in the area. It’s truly a honor to your work. Thanks seo backlinks

    ReplyDelete
  76. It’s difficult to find knowledgeable people within this topic, but you sound like there’s more you’re speaking about! Thanks Seattle Software Developers

    ReplyDelete
  77. there is no day in the month that i do not want to visit your blog. Eames lounge chair

    ReplyDelete
  78. I wanted to make a remark to say thanks to you for these awesome ways you are giving out on this site. My incredibly long internet search has now been paid with professional knowledge to talk about with my contacts. I ‘d state that that most of us visitors actually are rather blessed to be in a fabulous network with so many wonderful professionals with insightful advice. I feel very much lucky to have come across the webpage and look forward to many more awesome times reading here. Thanks a lot again for a lot of things. ufabet เข้าสู่ระบบ

    ReplyDelete
  79. This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it, VISTO DE ENTRADA NO CANADÁ

    ReplyDelete
  80. Cpr KIts… very great read you know alot about this subject i see!… Buy Autodesk AutoCAD Electrical 2022 for sale

    ReplyDelete
  81. poetry has the power to affect our emotions by using words alone, i really love poetry* Layanan backlink kasino

    ReplyDelete
  82. I am frequently to blogging and i truly appreciate your articles. The content has really peaks my interest. I am about to bookmark your site and keep checking achievable details. lol skins cheape

    ReplyDelete
  83. very nice post, i definitely really like this site, persist with it 롤강의

    ReplyDelete
  84. There are very a great deal of details prefer that to take into consideration. That’s a great indicate bring up. I provde the thoughts above as general inspiration but clearly you can find questions just like the one you retrieve the spot that the most significant factor will likely be working in honest excellent faith. I don?t determine if guidelines have emerged about things like that, but Almost certainly that your chosen job is clearly identified as a good game. Both little ones feel the impact of just a moment’s pleasure, for the rest of their lives. https://onlinegameshere.com/

    ReplyDelete
  85. Its fantastic as your other blog posts : D, thanks for posting . 사설토토사이트

    ReplyDelete
  86. I am glad to be one of many visitors on this great site (:, thanks for putting up. 먹튀검증커뮤니티

    ReplyDelete
  87. i don’t like razors so i always use hair clippers to cut my hair;

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X