HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Debian server: LVM or not? (http://www.howtoforge.com/forums/showthread.php?t=60838)

technokratos 6th March 2013 19:02

Debian server: LVM or not?
 
Hello, I am trying to setup a small server for my web, mails and RVM with Ruby, gems. I cannot decide if I should use LVM or not as I have one internat 150 GB HDD. Some folks say it's a great thing but only useful if you plan to add new drives (which I don't). Should I use it or not?

If I go with LVM, I plan to create logical volumes for /home, /usr, /var and swap. Could someone please give advice concerning initial size of those volumes?

For reference, I posted this question on serverfault with more details. http://serverfault.com/questions/485...size-under-lvm

Thanks guys for your experience.

falko 8th March 2013 15:39

I'd always use LVM, even if you don't plan to add further drives, because it gives you so much more flexibility. You can even do snapshots - to use this feature you need to leave some free space in your volume group (which is recommended in general because this allows you to create additional volumes if necessary or to resize volumes).

technokratos 8th March 2013 17:02

Thank you, Falko. I'm very glad you gave your professional insight.

Could you please also comment on:
- which LVMs you yourself usually create for server (/home, ...)
- their initial sizes?

I couldn't find any good examples for this.
Thank you very much.

falko 9th March 2013 18:41

Usually an lv for / and one for /var/lib/mysql (so that you can create snapshots) is a good start. 50 - 100 GB for /var/lib/mysql should be more than enough in most cases; for / I'd use a few hundred GB, depending on how many websites and email accounts you plan to host.

technokratos 9th March 2013 22:25

Thank you, Falko. Finally someone with specific advice.
Much appreciated.


All times are GMT +2. The time now is 12:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.