【RAC】因虛擬機器配置檔案調整不完整導致RAC無法使用

secooler發表於2010-11-30
今天有朋友反映,在虛擬機器下反覆切換使用多套RAC環境的時導致RAC環境無法使用。
經查,由於虛擬機器的配置檔案(***.vmx)未做修改,多套虛擬機器環境引用的共享儲存為同一套,最終導致RAC節點與儲存關係脫節。

這是一個細節上的問題,在環境調整時一定要確保所有的配置檔案都調整到位,防止出現不必要的遺漏。

該問題直接導致的結果是其中的一套實驗環境蕩然無存。

1.虛擬機器配置檔案
其中RAC第一節點的配置檔案內容如下
config.version = "8"
virtualHW.version = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "512"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "RAC1.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "E:\software\Linux\Linux_RHEL5.1\linux5_32bits.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.present = "FALSE"
Ethernet0.present = "TRUE"
displayName = "RAC1"
guestOS = "redhat"
priority.grabbed = "normal"
priority.ungrabbed = "normal"

scsi1.present = "TRUE"
scsi1:1.present = "TRUE"
scsi1:1.fileName = "E:\VMRAC\raw_disk\ocr.vmdk"
scsi1:1.mode = "independent-persistent"
scsi1:2.present = "TRUE"
scsi1:2.fileName = "E:\VMRAC\raw_disk\vote.vmdk"
scsi1:2.mode = "independent-persistent"
scsi1:3.present = "TRUE"
scsi1:3.fileName = "E:\VMRAC\raw_disk\asm1.vmdk"
scsi1:3.mode = "independent-persistent"
scsi1:4.present = "TRUE"
scsi1:4.fileName = "E:\VMRAC\raw_disk\asm2.vmdk"
scsi1:4.mode = "independent-persistent"
scsi1.virtualDev = "lsilogic"
Ethernet1.present = "TRUE"
Ethernet1.connectionType = "hostonly"
Ethernet2.present = "TRUE"

scsi0:0.redo = ""
scsi1:1.redo = ""
scsi1:2.redo = ""
scsi1:3.redo = ""
scsi1:4.redo = ""
ethernet0.addressType = "generated"
ethernet1.addressType = "generated"
ethernet2.addressType = "generated"
uuid.location = "56 4d 8b 0a 11 fa 08 48-43 0d 53 be 05 b9 49 03"
uuid.bios = "56 4d 5e 08 8c bd 90 4f-c0 ac 11 8b a0 2c 74 42"
ethernet0.generatedAddress = "00:0c:29:2c:74:42"
ethernet0.generatedAddressOffset = "0"
ethernet1.generatedAddress = "00:0c:29:2c:74:4c"
ethernet1.generatedAddressOffset = "10"
ethernet2.generatedAddress = "00:0c:29:2c:74:56"
ethernet2.generatedAddressOffset = "20"


disk.locking = "false"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
scsi1:1.deviceType = "disk"
scsi1:2.deviceType = "disk"
scsi1:3.deviceType = "disk"
scsi1:4.deviceType = "disk"

ethernet0.connectionType = "nat"
ethernet0.vnet = "VMnet1"
ethernet2.connectionType = "nat"

ide1:0.startConnected = "TRUE"
tools.syncTime = "FALSE"

numvcpus = "2"
workingDir = "."

2.有關裸裝置的位置配置資訊
scsi1.present = "TRUE"
scsi1:1.present = "TRUE"
scsi1:1.fileName = "E:\VMRAC\raw_disk\ocr.vmdk"
scsi1:1.mode = "independent-persistent"
scsi1:2.present = "TRUE"
scsi1:2.fileName = "E:\VMRAC\raw_disk\vote.vmdk"
scsi1:2.mode = "independent-persistent"
scsi1:3.present = "TRUE"
scsi1:3.fileName = "E:\VMRAC\raw_disk\asm1.vmdk"
scsi1:3.mode = "independent-persistent"
scsi1:4.present = "TRUE"
scsi1:4.fileName = "E:\VMRAC\raw_disk\asm2.vmdk"
scsi1:4.mode = "independent-persistent"
scsi1.virtualDev = "lsilogic"

在多套備份環境並存的情況下很有可能由於未對上述內容調整導致RAC環境不可用的問題。

以上僅僅是RAC環境中第一節點的配置檔案,其他節點的配置檔案需要同時進行調整。

3.小結
在使用VMWARE準備虛擬RAC環境過程中,每完成一個重大調整步驟後進行備份的做法是值得提倡的,但是在備份的過程中需要注意配置檔案的調整。文中提到的是一種故障案例。

Good luck.

secooler
10.11.30

-- The End --

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

相關文章