vmware設定共享儲存(RAC)

chenoracle發表於2018-05-26


vmware設定共享儲存(RAC)


之前一直使用 Oracle VM VirtualBox虛擬機器安裝RAC做測試,共享儲存特別容易配置,圖形介面就可以完成;
最近使用 VMware Workstation Pro虛擬機器安裝RAC,配置共享儲存沒有找到圖形介面的方法,但是可以透過 v mware-vdiskmanager.exe命令完成;

D:\soft\vmware\1
vmware-vdiskmanager.exe -c -s 1000Mb -a lsilogic -t 2 F:\soft\vmware\rac\ocr.vmdk
vmware-vdiskmanager.exe -c -s 1000Mb -a lsilogic -t 2 F:\soft\vmware\rac\ocr2.vmdk
vmware-vdiskmanager.exe -c -s 1000Mb -a lsilogic -t 2 F:\soft\vmware\rac\votingdisk.vmdk
vmware-vdiskmanager.exe -c -s 25000Mb -a lsilogic -t 2 F:\soft\vmware\rac\data.vmdk

---RAC1 
修改vmx配置檔案,加入新建磁碟資訊;
其中:vmx配置檔案位置操作方法如下:
設定---選項---常規---工作目錄
D:\Documents\Virtual Machines\Red Hat Enterprise Linux 6 64 位\Red Hat Enterprise Linux 6 64 位.vmx
scsi1.present = "TRUE"
scsi1.virtualDev = "lsilogic"
scsi1.sharedBus = "virtual"

scsi1:1.present = "TRUE"
scsi1:1.mode = "independent-persistent"
scsi1:1.filename = "F:\soft\vmware\rac\ocr.vmdk"
scsi1:1.deviceType = "plainDisk"

scsi1:2.present = "TRUE"
scsi1:2.mode = "independent-persistent"
scsi1:2.filename = "F:\soft\vmware\rac\ocr2.vmdk"
scsi1:2.deviceType = "plainDisk" 

scsi1:3.present = "TRUE"
scsi1:3.mode = "independent-persistent"
scsi1:3.filename = "F:\soft\vmware\rac\votingdisk.vmdk"
scsi1:3.deviceType = "plainDisk"

scsi1:4.present = "TRUE"
scsi1:4.mode = "independent-persistent"
scsi1:4.filename = "F:\soft\vmware\rac\data.vmdk"
scsi1:4.deviceType = "plainDisk"

disk.locking = "false"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"

---RAC2
修改vmx配置檔案,加入新建磁碟資訊;
其中:vmx配置檔案位置操作方法如下:
設定---選項---常規---工作目錄
F:\vmware\001\Red Hat Enterprise Linux 6 64 位 的克隆.vmx

scsi1.sharedBus = "virtual"
disk.locking = "false"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
gui.lastPoweredViewMode = "fullscreen"
checkpoint.vmState = ""
usb:0.present = "TRUE"
usb:0.deviceType = "hid"
usb:0.port = "0"
usb:0.parent = "-1"

RAC1,RAC2主機手動新增磁碟,新增磁碟的順序最好一致,否則磁碟機代號名稱會有不同;
虛擬機器---設定---新增---硬碟---下一步--SCSI---使用現有虛擬磁碟---選擇檔名(獨立永久)

規則檔案配置如下:
---RAC1 
[root@rac1 rules.d]# pwd
/etc/udev/rules.d
[root@rac1 rules.d]# cat 60-raw.rules
ACTION=="add", KERNEL=="sdb", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdc", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdd", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sde", RUN+="/bin/raw /dev/raw/raw4 %N"

[root@rac1 rules.d]# cat 50-udev.rules
KERNEL=="raw1", NAME="raw/%k" OWNER="grid" GROUP="asmadmin", MODE="0660"
KERNEL=="raw2", NAME="raw/%k" OWNER="grid" GROUP="asmadmin", MODE="0660"
KERNEL=="raw3", NAME="raw/%k" OWNER="grid" GROUP="asmadmin", MODE="0660"
KERNEL=="raw4", NAME="raw/%k" OWNER="grid" GROUP="asmadmin", MODE="0660"

[root@rac1 rules.d]# start_udev

[root@rac1 ~]# ll -rth /dev/raw/
total 0
crw-rw---- 1 root disk     162, 0 May 28 14:06 rawctl
crw-rw---- 1 grid asmadmin 162, 1 May 28 14:31 raw1
crw-rw---- 1 grid asmadmin 162, 2 May 28 14:31 raw2
crw-rw---- 1 grid asmadmin 162, 4 May 28 14:31 raw4
crw-rw---- 1 grid asmadmin 162, 3 May 28 14:31 raw3

---RAC2 
同RAC1

歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!!!

vmware設定共享儲存(RAC)

vmware設定共享儲存(RAC)



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

相關文章