My OEL 5.3 server with Oracle hasn’t been behaving quite right lately, so all in all, the best choice at this time was to reinstall. At the same time, I wanted to redesign the disk / partition layout.
So here’s a quick recap of this installation.
First, the OS.
- Downloaded OEL 5.4 64-bit CD’s 1,2,3,4 and 6 from edelivery.oracle.com
- Booted from first disk, deleted all existing volume groups and selected two (out of six) disks to be available for the OS install.
- Disabled SELinux for the time being.
- Created the oracle OS user during OS installation.
(This server has no DVD player, and previous installations taught me that CD 5 wasn’t necessary for me.)
(Which means Linux will put them together in one Volume Group.)
(To prevent some problems when configuring Oracle later, specifically “cannot restore segment prot after reloc” error.)
That went well enough, so now for some preparations.
- In one session: Transfer Oracle software to the new server:
rsync --progress linux.x64_11gR2_database_?of2.zip oracle@newserver:/src/
- In a parallell session: Set up Oracle public YUM server, courtesy of
- Install required packages:
yum install oracle-validated
- Create OS groups for oracle:
usermod -g oinstall -G dba oracle
- Make sure there is a line in the hosts file for the host itself, so the Oracle installer can map the hostname to an IP.
(Including mkdir /src and making oracle the owner of it.)
Create LVM volumes for the remaining disks; here are the commands used:
pvcreate /dev/sdc1 /dev/sdd1
pvcreate /dev/sde1 /dev/sdf1
vgcreate OracleVol01 /dev/sde1 /dev/sdd1
vgcreate OracleVol02 /dev/sdc1 /dev/sdf1
lvcreate -L 100G -n u01 OracleVol01
lvcreate -L 100G -n u02 OracleVol01
mke2fs -j /dev/OracleVol01/u01
mke2fs -j /dev/OracleVol01/u02
e2label /dev/OracleVol01/u01 u01
e2label /dev/OracleVol01/u02 u02
And then, install Oracle software, which is another story :)