# ipmitool chassis bootdev pxe
# reboot
14.
If you are using Oracle VM, run
switch_to_ovm.sh
on each database server. The
database servers will reboot.
For example:
# /opt/oracle.SupportTools/switch_to_ovm.sh
2014-12-07 11:58:36 -0800 [INFO] Switch to DOM0 system partition /dev/VGExaDb/
LVDbSys3 (/dev/mapper/VGExaDb-LVDbSys3)
2014-12-07 11:58:36 -0800 [INFO] Active system device: /dev/mapper/VGExaDb-
LVDbSys1
2014-12-07 11:58:36 -0800 [INFO] Active system device in boot area: /dev/mapper/
VGExaDb-LVDbSys1
2014-12-07 11:58:36 -0800 [INFO] Set active systen device to /dev/VGExaDb/
LVDbSys3 in /boot/I_am_hd_boot
2014-12-07 11:58:36 -0800 [INFO] Reboot has been initiated to switch to the DOM0
system partition
15.
Run
reclaimdisks.sh
on each database server.
The
/opt/oracle.SupportTools/reclaimdisks.sh -free -reclaim
command reclaims disk space reserved for the deployment type not selected. The
command takes less than 5 minutes, approximately. Systems are imaged with
disks configured with RAID5; a RAID rebuild is no longer part of the
reclaimdisks.sh
process.
Do not skip this step. Skipping this step results in unused space that can no longer
be reclaimed by
reclaimdisks.sh
.
For example:
# /opt/oracle.SupportTools/reclaimdisks.sh -free -reclaim
Model is ORACLE SERVER X5-2
Number of LSI controllers: 1
Physical disks found: 4 (252:0 252:1 252:2 252:3)
Logical drives found: 1
Linux logical drive: 0
RAID Level for the Linux logical drive: 5
Physical disks in the Linux logical drive: 4 (252:0 252:1 252:2 252:3)
Dedicated Hot Spares for the Linux logical drive: 0
Global Hot Spares: 0
[INFO ] Check for DOM0 system disk
[INFO ] Check for DOM0 with inactive Linux system disk
[INFO ] Valid DOM0 with inactive Linux system disk is detected
[INFO ] Number of partitions on the system device /dev/sda: 4
[INFO ] Higher partition number on the system device /dev/sda: 4
[INFO ] Last sector on the system device /dev/sda: 3509759999
[INFO ] End sector of the last partition on the system device /dev/sda:
3509759000
[INFO ] Unmount /EXAVMIMAGES from ocfs2 partition on /dev/sda3
[INFO ] Mount ocfs2 partition /dev/sda3 to /EXAVMIMAGES
[INFO ] Remove inactive system logical volume /dev/VGExaDb/LVDbSys1
[INFO ] Remove logical volume /dev/VGExaDbOra/LVDbOra1
[INFO ] Remove volume group VGExaDbOra
[INFO ] Remove physical volume /dev/sda4
[INFO ] Remove partition /dev/sda4
[INFO ] Re-calculate end sector of the last partition after removing of /dev/
sda4 partition
[INFO ] End sector of the last partition on the system device /dev/sda:
3300035608
Chapter 5
Imaging a New System
5-77