LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-08-2011, 03:47 AM   #1
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 93

Rep: Reputation: 3
VMware RedHat guest - swap on LVM or disk partition


Hi.

We are building RedHat Linux 5.4 64-bit VMs on VMware, and it has been suggested that the primary swap should be on a disk partition (sda2), rather than on LVM.

It would be great to get comments & thoughts on this.

FYI, the role of the machines is app/web servers, and they may have 2 or 4 virtual CPUs and 4, 8, or 12 GB memory. The other filesystems are /boot (sda1), / (LVM on sda), /app (LVM on sdb), and the machines have VMware Tools installed.

Thanks very much!
 
Old 02-08-2011, 04:06 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
LVM would add a small overhead as it maps virtual blocks to the real blocks on the drive. Aside from that, and the overhead is marginal I can't see why you would go out of your way to put swap on a real partition. By default the Redhat installer will create a real partition for /boot and LVM volumes for swap and root.
 
Old 02-08-2011, 04:14 AM   #3
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Is the machine is a Server hardware or Hypervisor?
 
Old 02-08-2011, 04:52 AM   #4
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 93

Original Poster
Rep: Reputation: 3
phil.d.g:
Yes, you have summarised my thoughts on the matter.

prodev05:
Our environment is ESX, and the server that the VM is currently resident on is a Proliant BL685c G1 blade with 4x dual-core 2.8 GHz CPUs and 64 GB memory, running vSphere 4 Enterprise. Our environment consists of something like 18 blades running a selection of Linux and Windows VMs. The storage is implemented on SAN-attached EVA disk arrays.
 
Old 02-08-2011, 07:08 AM   #5
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Then what phil.d.g mentioned is correct. I too suggest the same. But don't go for auto layout on file system, pl do manual layout.
 
Old 02-08-2011, 08:38 AM   #6
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 93

Original Poster
Rep: Reputation: 3
Thanks for the comments.

We are using a very simple filesystem layout:
sda: /boot = 100 MB, swap = 6 GB, / = 20 GB.
sdb: /app = 15 GB (or more depending upon use).

The underlying SAN storage is already RAID.
 
Old 02-11-2011, 06:18 AM   #7
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 93

Original Poster
Rep: Reputation: 3
FYI, we decided to have it on LVM, so our basic build is:

sda1: /boot
sda2: LVM = /, swap
sdb1: LVM = /app
 
  


Reply



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
[SOLVED] migrating from vmware to kvm, lvm partitioned guest failed to boot chakoshi Linux - Virtualization and Cloud 3 03-20-2011 04:34 PM
vmware slackware13 guest with lvm root -> no boot :-( cosmonate Slackware 2 11-17-2009 06:04 AM
VMware disk errors on guest machine crazyivan Linux - Server 3 09-18-2008 05:16 AM
how to convert vmware guest os to native partition ? pleasehelpme Linux - General 1 06-29-2005 09:36 AM
vmware in xp with redhat 8.0 guest dmarkow Linux - Software 2 04-05-2003 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration