VMware ESX下共享磁盘的建立



今天在VMware ESX下安装Oracle 10g RAC时发现,建立虚拟共享磁盘的格式必须要为thick,否则在虚拟节点系统里挂接磁盘后操作系统无法启动,出现如下错误提示:

      VMware ESX Server cannot open the virtual disk, “……..vmdk”
      for clustering. Please verify that the virtual disk was created
      using the ‘thick’ option.
      ……
      Reason: thin/TBZ disks cannot be opened in multiwriter mode..

提示共享磁盘要以thick选项创建,原因为thin/TBZ格式的虚拟磁盘不能在多重写模式下打开。

修改创建磁盘命令如下:
     vmkfstools -c 10240m -a lsilogic -d thick sharedisk.vmdk

在虚拟节点上挂接上面创建的磁盘,并修改各虚拟机的配置文件:
     disk.locking = “FALSE”
     diskLib.dataCacheMaxSize = “0″
     scsi1.sharedBus = “virtual”
     ……
     scsi1:0.deviceType = “disk”

启动虚拟节点系统,正常使用共享磁盘。



发表评论