Skip to contentSkip to conversation

partitioning enterprise Linux 4 one or more partitions?

linux-lvm Aubin, Jean-Francois 2 participants 2 messages Aug 22, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I have two server with 2 xeon cpu dual core, 8gb of memmory, 2 x 73gb in raid hardware for mirror OS and a FC card Qlogic 4GB for connect many Lun with a EMC san. It's for install Oracle Rac and redhat enterprise Linux 4. My question is about partitioning Linux rhel4 os with a lvm partition. Which is the best partitioning for my configuration? I have 3 choice:
1-
RHEL 4 with ACL SELinux activated for more secure server, monitoring and backuping this server.
Swap partition with ext3
/boot with ext3 partition
/ Root in a LVM partition for the rest of system files

2-
RHEL 4 with no SELinux.
/boot with ext3 partition
/ Root with ext3 partition
Swap partition in a LVM partition
/tmp in a LVM partition
/var in a LVM partition
/usr in a LVM partition
/home in a LVM partition
/opt in a LVM partition

3-
RHEL 4 with no SELinux.
Swap partition with ext3 partition
/boot with ext3 partition
/ Root in a LVM partition
/home in a LVM partition

Thanks a lot in advance.

#1 lore raw
Quoted 5 lines · Jean-Francois

RHEL 4 with ACL SELinux activated for more secure server, monitoring and backuping this server.
Swap partition with ext3
/boot with ext3 partition
/ Root in a LVM partition for the rest of system files

I've done 6 or so el4 (actually centos) systems, and evolved to this, except swap goes on LVM also. You have only 2 old fashioned partitions: /boot and LVM PV. The only reason /boot is not in LVM is to play nice with rhel versions of grub.

For the last 3 I've added a new wrinkle which has greatly helped, although it is not obvious why at first. Install and boot el5, and run el4 in a xen VM (with only 1 LV for system with boot and root). This lets you do all kinds of things to the VM without being physically present. You can do fun things like take a rw snapshot of the application VM, create a new VM, and apply an upgrade to see if you like the result, all without disturbing the live application system. You can migrate the application VM to different hardware with no fuss - apparently you can migrate it live while running, but I haven't tried this yet. The only glitch I've run into is that when you map a LV to a xenblk (which is otherwise most convenient), you can't resize the LV for the VM without rebooting the VM (which at least doesn't require rebooting the physical machine).

If you can't afford both el4 and el5 license, maybe you could use CentOS for one (not sure how RH would feel about that). They should offer a discount for that kind of setup, since it makes support easier rather than harder. Caveat: I haven't tried running Oracle with multi-gigs of RAM in a VM. My VMs are all 256-512M range.

Signature · 4 lines
	      Stuart D. Gathman <[email protected]>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.