Overview
Setting up the first system ( redfern1 ) to investigate Oracle RAC 12.1 .
References
- Oracle® Linux Administrator's Guide for Release 6
- Michael Kerrisk - man7.org
Procedure
Clone VM Image
I cloned OEL6u3 Base as Redfern1 . This was a full clone.
Modify VM Image
I made the following changes to the Redfern1 VM image:
- Increase RAM to 4GB
- Add a 20GB disk. This will be mounted as /u00
- Add a shared folder pointing to Downloads .
- Change the Promiscuous Mode on Network Adapter 1 to Allow All .
- Added a second NIC to an internal network called "Redfern Interconnect"
- Added a third NIC to the bridged adapter with the Promiscuous Mode set to Allow All .
- Added a fourth NIC to an internal network called "Redfern ASM"
Initial Changes to REDFERN1
Update SUDOERS
The /etc/sudoers was updated using visudo as root to include the following line:
%wheel ALL=(ALL) NOPASSWD: ALL
Update Host Name
The /etc/sysconfig/network was updated to change:
HOSTNAME=randwick.yaocm.id.au
to
HOSTNAME=redfern1.yaocm.id.au
Update ETHERNET Interfaces
The interfaces, eth1, eth2, eth3, and eth4 , are updated to have:
Parameter | ETH1 | ETH2 | ETH3 | ETH4 |
---|---|---|---|---|
Name | Public_Interface | Redfern_Interconnect | Management_Interface | Redfern_ASM |
IPADDR | 192.168.1.140 | 192.168.4.140 | 192.168.2.140 | 192.168.3.140 |
PREFIX | 24 | 24 | 24 | 24 |
GATEWAY | 192.168.1.1 | |||
DNS1 | 192.168.1.252 | |||
DNS2 | 192.168.1.1 | |||
DOMAIN | YAOCM.ID.AU | |||
MTU | 9000 | 9000 | 9000 | 9000 |
Add Additional Storage
Initialize Physical Volume
Following the procedure in 17.3.1 Initializing and Managing Physical Volumes , I initialized the new disk drive as follows:
pvcreate /dev/sdb
The expected response is:
Writing physical volume data to disk "/dev/sdb"
Physical volume "/dev/sdb" successfully created
Extend Volume Group
Used vgdisplay without any parameters to find the name(s) of the current volume groups. There was only one (1): vg_randwick .
Following the procedure in 17.3.2 Creating and Managing Volume Groups , I extended the existing volume group ( vg_randwick ) to include the new physical volume:
vgextend vg_randwick /dev/sdb
The expected response is:
Volume group "vg_randwick" successfully extended
Create Logical Volume
Following the procedure in 17.3.3 Creating and Managing Logical Volumes , I created a new logical volume of size 12GB:
lvcreate -v --size 12g --name lv_u00 vg_randwick
The expected response is:
Setting logging type to disk
Finding volume group "vg_randwick"
Archiving volume group "vg_randwick" metadata (seqno 4).
Creating logical volume lv_u00
Creating volume group backup "/etc/lvm/backup/vg_randwick" (seqno 5).
Found volume group "vg_randwick"
activation/volume_list configuration setting not defined: Checking only host tags for vg_randwick/lv_u00
Creating vg_randwick-lv_u00
Loading vg_randwick-lv_u00 table (252:2)
Resuming vg_randwick-lv_u00 (252:2)
Clearing start of logical volume "lv_u00"
Creating volume group backup "/etc/lvm/backup/vg_randwick" (seqno 5).
Logical volume "lv_u00" created
Create Mount Point for Oracle Products
Create File System
Following the procedure in 18.1 Making File Systems , I formatted the new logical volume lv_u00 as follows:
mkfs -t ext4 -L oracle /dev/mapper/vg_randwick-lv_u00
The expected response is:
mke2fs 1.41.12 (17-May-2010)
Filesystem label=oracle
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
786432 inodes, 3145728 blocks
157286 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3221225472
96 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Mount File System
Following the procedure in 18.2 Mounting File Systems ,
mkdir /u00
mount -t ext4 /dev/mapper/vg_randwick-lv_u00 /u00
Added the following line to /etc/fstab :
/dev/mapper/vg_randwick-lv_u00 /u00 ext4 defaults 1 3