Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up shared storage in vmware

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

How to set up shared storage in vmware, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

Vmware Settings shared Storage (RAC)

Previously, I have been using Oracle VM VirtualBox virtual machine to install RAC for testing, shared storage is very easy to configure, and the graphical interface can be completed.

Recently, RAC was installed using a VMware Workstation Pro virtual machine. There is no graphical interface for configuring shared storage, but it can be done with the vmware-vdiskmanager.exe command.

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

Modify vmx configuration file to add new disk information

The operation method of vmx configuration file location is as follows:

Set-options-General-working directory

D:\ Documents\ Virtual Machines\ Red Hat Enterprise Linux 6 64 bit\ Red Hat Enterprise Linux 6 64 bit. 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

Modify vmx configuration file to add new disk information

The operation method of vmx configuration file location is as follows:

Set-options-General-working directory

F:\ vmware\ 001\ Red Hat Enterprise Linux 6 64-bit clone .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 hosts add disks manually. The order in which disks are added had better be the same, otherwise the disk letter name will be different.

Virtual machine-Settings-add-hard disk-next step-- SCSI--- uses an existing virtual disk-Select a file name (independent permanent)

The rules file is configured as follows:

-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

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report