VMware上的共享磁碟設定
需要使用VMware的Server版,Workstation版本是不行的。
-- 摘自VMware網站
[@more@]SCSI reservation must be enabled in a virtual machine before you can share its disks. To enable it, make sure the virtual machine is powered off. Open the configuration file (.vmx file on Windows hosts, .cfg file on Linux hosts) in a text editor and add the line scsi[n].sharedBus = "virtual" anywhere in the file, where [n] is the SCSI bus being shared.VMware recommends you set up the shared disks on their own SCSI bus, which is a different bus than the one the guest operating system uses. For example, if your guest operating system is on scsi0:0, you should set up disks to share on scsi1 bus.
For example, to enable SCSI reservation for devices on the scsi1 bus, add the following line to the virtual machine's configuration file:
scsi1.sharedBus = "virtual"
This gives the whole bus the ability to be shared. However, if you would rather not share the whole bus, you can selectively enable SCSI reservation for a specific SCSI disk on the shared bus. This prevents the locking of this specific disk. Add the following line to the configuration file:
scsi1:1.shared = "true"
If SCSI reservation is enabled (that is, scsi1.sharedBus is set to "virtual"), then this setting is ignored.
In addition to enabling SCSI reservation on the bus, you need to allow virtual machines to access the shared disk concurrently. Add the following line to the virtual machine's configuration file:
disk.locking = "false"
This setting permits multiple virtual machines to access a disk concurrently. Be careful though; if any virtual machine not configured for SCSI reservation tries to access this disk concurrently, then the shared disk is vulnerable to corruption or data loss.
When SCSI reservation is enabled, a reservation lock file that contains the shared state of the reservation for the given disk is created. The name of this file consists of the filename of the SCSI disk appended with .RESLCK.
For example, if the disk scsi1:0.filename is defined in the configuration file as
scsi1:0.fileName = "//vmSCSI.pln"
then the reservation lock file for this disk is given the default name
"//vmSCSI.pln.RESLCK"
However, you can provide your own lock file name. Add a definition for scsi1:0.reslckname to the configuration file. For example, if
scsi1:0.reslckname = "/tmp/scsi1-0.reslock"
is added to the configuration file, it overrides the default lock file name.
Selecting the Disk
Once SCSI reservation is enabled for a disk — that is, the scsi[n].sharedBus = "virtual" and disk.locking = "false" settings are added to the configuration file for each virtual machine wanting to share this disk, you need to point to this disk for each virtual machine that wants to access it.
Sharing a Disk on the scsi0 Bus
VMware does not recommend sharing a disk on SCSI bus 0
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/136097/viewspace-1008080/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- vmware centos ADSL共享上網設定CentOS
- vmware gsx server正確設定共享磁碟注意事項Server
- vmware設定共享儲存(RAC)
- vmware安裝VMware Tools,並設定共享目錄
- VMware中CentOS 7設定資料夾共享CentOS
- linux vmware上網設定Linux
- Vmware CentOS7 共享資料夾設定方法CentOS
- vmware server 解決rac中共享磁碟問題Server
- 雙網路卡共享上網設定
- RAC-rac+dg step2--設定共享磁碟-udevdev
- Vmware___vmware的設定1(安裝VMware tools)
- VMware Workstation Pro 17 怎麼設定上網?
- win7 磁碟、碟符整個設定為共享的方法整理Win7
- win10系統怎麼設定區域網共享磁碟Win10
- 【RAC】在ESX 上安裝asm 共享磁碟ASM
- Ubuntu 24.04 VMware裡面設定靜態ip上網Ubuntu
- vmware設定共享資料夾,並保持為開機自動掛載
- 如何在蘋果電腦上快速設定預設啟動磁碟?蘋果
- NFS磁碟共享NFS
- 如何設定共享Mac上的視訊、音樂或照片的教程Mac
- VMware workstation 11 "鎖定檔案失敗" "打不開磁碟或快照所依賴的磁碟"
- 如何建立虛擬機器上建立 Cluster 共享磁碟虛擬機
- 2008伺服器管理器共享許可權設定 伺服器上共享怎麼設定伺服器
- 共享磁碟架構架構
- rhel5在vmware上新增磁碟及分割槽操作指南
- 電腦共享檔案怎麼設定,Win10共享設定方法Win10
- AIX下NFS共享設定AINFS
- 如何設定印表機共享
- VMware虛擬機器的網路設定虛擬機
- Linux上網共享的定時開通(轉)Linux
- 共享資料夾的相關設定
- win10如何設定共享資料夾 win10設定共享資料夾的方法Win10
- 虛擬機器下無線上網路卡共享給MAC上網的設定虛擬機Mac
- vmware上配置用於oracle rac共享儲存幾則小記Oracle
- VMware下Linux如何設定ip?Linux
- win10印表機共享設定方法 win10如何設定印表機共享Win10
- 【VMware vSphere】沒有共享儲存的ESXi主機之間如何共享本地儲存上的ISO檔案。
- CentOS7 NFS共享設定CentOSNFS