当前位置: 首页 > 技术与资源 > 技术分享 > 正文

ORACLE EXADATA升级—从11.2.3.1.0到11.2.3.3.0–(5)释放Solaris空间

2015-01-04 11:50:00

Exadata在出厂的时候,默认安装了两个OS系统,一个是Linux,一个是Solaris X86,然后互相做RAID 1,我们在升级计算节点的时候,如果不释放掉Solaris就会报下列错误:

ERROR: Solaris disks are not reclaimed. This needs to be done before the upgrade. See the Exadata Database Machine documentation to claim the Solaris disks

我们可以使用出厂自带的脚本来查看计算节点本地盘的一个情况,这里可以看到,总共物理盘有4块,RDID的级别是1,拥有dual boot。

[root@gxx2db01 oracle.SupportTools]# ./reclaimdisks.sh -check
[INFO] This is SUN FIRE X4170 M2 SERVER machine
[INFO] Number of LSI controllers: 1
[INFO] Physical disks found: 4 (252:0 252:1 252:2 252:3)
[INFO] Logical drives found: 3
[INFO] Dual boot installation: yes
[WARNING] Some lvm logical volume(s) resizes on other than /dev/sda device
[INFO] Linux logical drive: 0
[INFO] RAID Level for the Linux logical drive: 1
[INFO] Physical disks in the Linux logical drive: 2 (252:0 252:1)
[INFO] Dedicated Hot Spares for the Linux logical drive: 0
[INFO] Global Hot Spares: 0
[INFO] Valid dual boot configuration found for Linux: RAID1 from 2 disks

释放solaris操作系统很简单,运行reclaimdisks.sh脚本释放即可,当然在运行的时候我遇到了一个小问题,这个脚本只认系统默认的盘和卷组,而南宁电网自己配置了一个新的VG(就是用作备份的那个datavg),因为我们在前面做了备份的操作,我把这个VG删除,重新运行脚本执行成功,当然你也可以改脚本运行,不过我们做了尝试,还是会把你新建的VG配置信息给清理掉。所以这个动作还是很危险的,我们在做这个之前,一定要做好备份。在运行的过程中,我们可以去监控日志/var/log/cellos/reclaimdisks.bg.log,看它具体都做了些什么操作。

[root@gxx2db02 oracle.SupportTools]# ./reclaimdisks.sh -free -reclaim

Started from ./reclaimdisks.sh
[INFO] Free mode is set
[INFO] Reclaim mode is set
[INFO] This is SUN FIRE X4170 M2 SERVER machine
[INFO] Number of LSI controllers: 1
[INFO] Physical disks found: 4 (252:0 252:1 252:2 252:3)
[INFO] Logical drives found: 3
[INFO] Dual boot installation: yes
[INFO] Linux logical drive: 0
[INFO] RAID Level for the Linux logical drive: 1
[INFO] Physical disks in the Linux logical drive: 2 (252:0 252:1)
[INFO] Dedicated Hot Spares for the Linux logical drive: 0
[INFO] Global Hot Spares: 0
[INFO] Non-linux physical disks that will be reclaimed: 2 (252:2 252:3)
[INFO] Non-linux logical drives that will be reclaimed: 2 (1 2)
Remove logical drive 1

Adapter 0: Deleted Virtual Drive-1(target id-1)
Exit Code: 0x00
Remove logical drive 2

Adapter 0: Deleted Virtual Drive-2(target id-2)

Exit Code: 0x00
[INFO] Remove Solaris entries from /boot/grub/grub.conf
[INFO] Disk reclaiming started in the background with parent process id 17405.
[INFO] Check the log file /var/log/cellos/reclaimdisks.bg.log.
[INFO] This process may take about two hours.
[INFO] DO NOT REBOOT THE NODE.
[INFO] The node will be rebooted automatically upon completion.

上一篇:ORACLE EXADATA升级—从11.2.3.1.0到11.2.3.3.0–(4)升级存储节点
下一篇:ORACLE EXADATA升级—从11.2.3.1.0到11.2.3.3.0–(6)升级计算节点