Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-15-2009, 01:29 PM
|
#1
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Rep:
|
Opinions on choosing the right network storage
I'm looking to run a couple of VMware servers and store their data on network storage of some sort instead of on the servers themselves. (This makes it easier to take snapshots of both machines at once, plus it has a much higher capacity.)
What I'm thinking at the moment is creating an LVM volume on the file server out of raided drives and exporting it. I've used both NFS and Samba (CIFS?) before on little home projects, but this is eventually going to become a production setup and I'd like to get it right the first time.
NFS from what I've seen is pretty terrible and insecure, plus it can lock up the machine that it's exporting to, so I'm leaning towards CIFS right now. But isn't CIFS more for Windows networking?
I guess what I'm looking for is general opinions on this subject that I have virtually no experience in. 
|
|
|
02-15-2009, 01:51 PM
|
#2
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
If your NFS is insecure, you have set something up very wrong. Normally it is far more secure and stable than Samba every thought about. I also find it much faster than Samba.
I would also avoid LVMs unless you absolutely have to. LVMs are fine, until the blow up. When they blow up they are just one more layer of complexity that you have to deal with in order to repair things, they can be a royal PITA. For non raid systems you can accomplish most of the advantages of LVM just by choosing where you mount points are placed(a drive can appear as just another sub directory). The one thing that you cannot do this way is have contiguous space(one single file across multiple drives). On raid arrays (which are generally seen as one big drive already) there really is no advantage to going to LVM.
|
|
|
02-15-2009, 03:05 PM
|
#3
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Original Poster
Rep:
|
Thanks for the reply.
I'm with you on LVM being an extra layer of complexity. The reason I'm considering it is so that I can take filesystem snapshots of the VMs before backing them up with rsync to another server -- basically, I want the data to be consistent. If rsync can handle copying a bunch of live 2GB files (which is what VMware's data is) without any issues, I'll happily ditch LVM.
As for NFS: I'm just going by what I've read.
I've had systems frozen by disconnected NFS shares, though. That much I can say from personal experience, and it's contributing to my bias against using it in a production system.
|
|
|
02-15-2009, 03:19 PM
|
#4
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
How is using a LVM going to effect how you backup your data? You run the same file system (EXT3 or whatever) on top of the LVM as you run on a drive or a raid array. rsync's ability to do what you want should be independent of using LVM. Not sure by any means, but the LIVE part may raise some issues on doing backups of VMs. I suspect that you may have to back them up just like a normal (non VM) system.
Again, freezing on disconnects sounds like a misconfiguration issue.
You can run samba/CIFs on linux. But remember you will lose all your permissions on those files(they will become just like windows files).
As a side note you can also use NFS on windows, you just have to get M$'s unix toolkit(I think that is the name). Oddly enough they do not charge extra for the toolkit.
|
|
|
02-15-2009, 03:29 PM
|
#5
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Original Poster
Rep:
|
Quote:
Originally Posted by lazlow
How is using a LVM going to effect how you backup your data?
|
Because LVM has a snapshot feature -- I'd take a snapshot of the volume where the VMs are running and copy that, instead of the live volume. That's just my current thinking, it's not written in stone or anything.
Quote:
Again, freezing on disconnects sounds like a misconfiguration issue.
|
Maybe. Its been a few years since I tried it last (2006 I think), it's entirely possible that it was either me doing something wrong, or a bug in something I was using at the time. I'll definitely try to reproduce the freezing thing in a modern system.
|
|
|
02-17-2009, 09:09 PM
|
#6
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Original Poster
Rep:
|
For the sake of thoroughness I tried to reproduce the NFS freezing that I was talking about. As expected, when the NFS server stops responding for any reason -- interface goes down, it gets shutdown/suspended -- anything on the client trying to use the mountpoint will hang indefinitely. Even tab completing the mountpoint will cause a hang.
I'm not expecting it to work if the server gets shutdown, but it'd be nice if the client handled it more gracefully than just freezing. On the plus side, everything seems to fix itself when the server comes back up.
|
|
|
02-17-2009, 10:15 PM
|
#7
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
How are you mounting it becuase it should not freeze like that, mine do not.
|
|
|
02-17-2009, 10:18 PM
|
#8
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Original Poster
Rep:
|
mount 192.168.1.207:/export /mnt/nfs
Slackware 12.2 server, Ubuntu 8.10 client
/etc/export on the server:
/export 192.168.1.0/255.255.255.0(rw)
Last edited by crontab; 02-17-2009 at 10:19 PM.
|
|
|
02-17-2009, 10:56 PM
|
#9
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
Ok you are missing part of your mount. Maybe something more like this:
Quote:
mount 192.168.1.207:/export /mnt/nfs nfs users,noauto 0 0
|
Obviously changing the parameters to what your needs require, but telling it that it is nfs is important. You might also want to look at "man nfs" especially the retry=n section (if the above does not cure the issue).
|
|
|
All times are GMT -5. The time now is 05:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|