Fedora Linux Support Community & Resources Center
  #1  
Old 27th May 2012, 11:15 PM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,299
linuxfirefox
Kicking NFS to the curb

I have three (sometimes 4) regularly used Systems at home - all Linux. Then there are a handful of other devices running Linux - from NAS, Chumby, Zipit, Routers ....

So I use a 24x7 server to provide common file access (beyond the NAS), and other services. I've been using NFS then NFSv4 for this SOHO file service for some time. However NFS is a heavy sluggish protocol with poor performance tho' a level of available security I don't need behind the firewall. Actually Samba has a little better performance - but still not great. I've played with alternative networked file systems for some time, and Ceph and Gluster sorted themselves to the top of the heap. GFS2 has great performance, but is a monster to configure and maintain.

Recently I've been toying with gluster again. The config tool on F14 was very primitive, but has improved greatly at the 3.2 revision. It seems that RHEL is moving toward gluster for enterprise and may eventually dump GFS2. So after RH bought up the gluster project the rate of development has been impressive. More important I tested gluster back ~F13 and the performance was mediocre, better than NFS but not great. Yesterday Iupdated (reinstalled) the server to F17 and configures gluster in place of my normal NFS share. On some PRELIMINARY tests gluster performance is stunning !


So I have the newly updated F17 server and an F16 client workstation on a GigE LAN. nuttcp measures tcp traffic between the two at 940Mbit/sec, near wire rate. So I performed some crude fs speed tests on the shared directory - and from the native system, I was accessing the local file system native (ext4) at just under 95MB/s. That in itself is a stunning testament to the goodness of ext4. The disk involved, a WD black 1TB, measures
Quote:
# hdparm -tT /dev/sda5

/dev/sda5:
Timing cached reads: 9474 MB in 2.00 seconds = 4739.09 MB/sec
Timing buffered disk reads: 368 MB in 3.00 seconds = 122.49 MB/sec
95MB/sec of any sort of fs throughput on a drive that does large contiguous reads at 122.5MB/s says the filesystem works really well.

So when I did the same test on the client across the GigE I expected a great performance drop b/c the protocol overhead eats up so much. Instead I got a 86.4MB/sec or only 10% slower than the local file system. That's terrific.

So be fair this test is mostly reads and a mix of filesize dominated in size by larger >3MB) files. I need to run bonnie++, but unless Gluster fails totally at small files - it's a huge win.

===

Gluster is intended as a clusted filesystem, with multiple servers, and potentially replication and striping. Since I have a single server I've only created the trivial "one peer" configuration.


I'll add some notes later - but so far this looks like a NFS killer for my needs.

---------- Post added at 06:15 PM ---------- Previous post was at 05:59 PM ----------

Gluster server seems to need rpc service, tho' isuspect it's b/c there is some NFS support conftionality that might be configured out.

On the server ...
Quote:
yum -y install glusterfs glusterfs-server

systemctl enable glusterd.service
systemctl start glusterd.service
systemctl enable glusterfsd.service
systemctl start glusterfsd.service

gluster volume create sohocommon transport tcp hypoxylon:/home/common
gluster volume start sohocommon
'sohocommon' is just a name for the 'brick' of shared storage.

The server needs to punch firewall holes fr port 111/tcp (rpcbind) and 24007-24011/tcp (gluster).

On the client it's just
Quote:
yum -y install glusterfs glusterfs-fuse
mkdir /home/common
echo "hypoxylon:sohocommon /home/common glusterfs _netdev,rw,noatime 0 0" >> /etc/fstab
mount -a
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 7th October 2012 at 12:16 PM. Reason: client needs glusterfs-fuse
Reply With Quote
  #2  
Old 28th May 2012, 04:27 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: Kicking NFS to the curb

That is very interesting, steve.

I haven't really given Gluster much more than a glance in the past, but maybe it is time for me to look at it closer.

I am getting ready to completely reconfigure my home network before too long anyway, so now is the time for me to be looking at a nfs replacement. I really haven't been too happy with nfs4 anyway.
Reply With Quote
  #3  
Old 28th May 2012, 07:06 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,299
linuxfirefox
Re: Kicking NFS to the curb

Back just a ~year ago there was no 'gluster' command line to create a config for you automagically and it was a PITA. Also apparently the performance was sluggish. No longer the case.

I just figured out you don't need the other glusterfsd daemon unless you want to export as nfs too.
'glusterd.service' is sufficient.

The ability to NFS mount increases portability to other clients.
gluster is built on fuse - and despite that the performance seems good.
There is a little chatter on porting the client to Windows - not yet.

----

I guess the other issue - qemu/kvm has features to use Ceph (another distributed file system) to share VM images and allow 'dynamic' migration of VMs from host to host. I tried Ceph some time ago - and it was very functional, can take advantage of btrfs features, but at the time very slow. I should give Ceph another spin, but I'm happy at the moment that glusterfs is fast and mindlessly simple to configure.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
Reply

Tags
curb, kicking, nfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dan ... dragged, kicking and screaming ... Dan Wibble 46 20th January 2011 07:09 PM
kicking out KDE 3006828 Using Fedora 3 18th May 2006 12:10 PM


Current GMT-time: 16:02 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat