LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 01-28-2013, 08:57 AM   #1
rfinley
LQ Newbie
 
Registered: Jul 2010
Location: Knoxville, TN
Distribution: Various
Posts: 5

Rep: Reputation: Disabled
Partitioning a VM host


I am setting up a v-lab on a DL360 G5. I would appreciate some input as to the correct way to partition the drives. I will be installing CentOS 6 w/KVM. I plan to run the machine "headless" and I am trying to keep the resource overhead as low as possible.

I have already made it all work with a 250MB /boot partition and the rest of my space in one massive /root partition. I am looking for the "correct" way and why. I usually follow the setup suggested in Redhat's documentation. It only calls for a 4-5GB /var partition though and apparently that is where the VMs go. So, do I just make a huge /var partition? What size do you guys recommend for the others, considering that I want the native OS's footprint to be as small as possible?

I have 3 drives available, a 36GB and two 146GB ones.

I someday hope to be a system administrator and I am trying to learn good practices. I could just put it all in /root, but I would like to know how a large company would set it up.
 
Old 01-28-2013, 09:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well a system administrator won't get that far if they don't know the difference between / and /root. ;-) /root is only for the root users files, you would never dedicated any significant space to this.

I wouldn't just increase /var as /var does all sorts of different things, instead I'd think about dedicate and LVM volume to /var/lib/libvirt for the virtual machine details. if you're only using the base os as a host, you'll not need any space, so IF you aren't building in resilience, i'd put the OS on the 36gb drive, and the rest as /var/lib/libvirt

But how a large company would set it up? Depends on the company. Many would be forced to use a single layout that works really badly but are unable to deviate from it for a thousand different reasons. Other large companies will have sysadmins who don't care and just accept all the defaults.
 
Old 01-29-2013, 08:47 AM   #3
rfinley
LQ Newbie
 
Registered: Jul 2010
Location: Knoxville, TN
Distribution: Various
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
i'd put the OS on the 36gb drive, and the rest as /var/lib/libvirt
Ok, so what about LVMs? Do I make a /boot partition on the 36GB drive and then put the rest of the space on that drive as well as the other two drives into a physical volumes?

Should I put /var/lib/libvirt in a separate Volume Group?
 
Old 01-29-2013, 08:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I've favored putting OS in one VG and application in another for clarity personally, so as you seem to have plenty of space, yes, I'd have an LVCentOS and an LVvirtual or something, keeping all CentOS stuff (in /home) on the smaller disk.
 
Old 01-29-2013, 09:08 AM   #5
rfinley
LQ Newbie
 
Registered: Jul 2010
Location: Knoxville, TN
Distribution: Various
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for your insight. I'm giving it a try right now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
host: dst_lib_init: openssl failure in chroot jail when executing host binary golden_boy615 Linux - General 0 09-10-2012 07:16 AM
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 01:51 PM
Partitioning host for LFS winblowzxp Linux From Scratch 1 06-12-2010 07:47 PM
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 12:45 AM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration