Vmware官方关于群集中共享磁盘的设置方法及说明
2006-09-22 15:32
501 查看
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
.sharedBus = "virtual" anywhere in the file, where
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
.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.
.sharedBus = "virtual" anywhere in the file, where
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
.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.
相关文章推荐
- 关于VMware用NAT与主机共享上网的一般设置(windows)
- vmware中macosx的共享目录设置方法
- 服务器文件共享权限设置方法说明
- 虚拟机共享磁盘的设置方法
- 关于VMware用NAT与主机共享上网的一般设置(windows)
- Vmware10 Centos7 共享文件夹设置方法
- vmware安装方法及共享文件夹设置方法
- 关于虚拟机下的ubuntu访问windows xp共享文件,设置密码访问的方法
- VMWARE里磁盘设置说明
- 虚拟机vmware与本地磁盘共享方法
- VMware中CentOS 7设置文件夹共享的方法
- 关于TP5视图分离到根目录的解决方法 原有: 为了方便前端开发,我想把视图(view)部分分离出来专门给前端进行修改 过程:在进行视图设置分离的过程遇到了问题 参考了官方文档http://www
- vmware中设置共享磁盘需要满足两个条件
- VMware12 虚拟机共享文件夹磁盘映射设置方法
- Ubuntu 16.04安装/更新VMware tools&设置共享文件夹方法
- vmware中设置共享磁盘需要满足两个条件
- 虚拟机共享磁盘的设置方法
- 关于vmware虚拟主机使用host-only连接并共享主机上网的一些设置
- 服务器文件共享权限设置方法说明 (转)
- 设置局域网中电脑磁盘共享