ORACLE EXADATA升級—從11.2.3.1.0到11.2.3.3.0–(5)釋放Solaris空間

shsnchyw發表於2015-01-12

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.

 

(本文轉自“新炬網路”官網技術分享欄目)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29960155/viewspace-1398624/,如需轉載,請註明出處,否則將追究法律責任。

相關文章