



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
VMware中创建共享磁盘阵列的方法VMware中创建共享磁盘阵列的方法 2007-11-07 08:29:59| 分类: CLUSTER | 标签: |字号大中小 订阅 1. 创建共享磁盘柜在虚拟机软件的安装目录下,有个vmware-vdiskmanager.exe文件(老版本用plainmaker.exe),把它复制到共享磁盘柜目录下,创建共享磁盘(老版本共享磁盘文件的扩展名为.pln)F:虚拟机共享磁盘柜vmware-vdiskmanager.exe -c -s 200Mb -a lsilogic -t 2 quorum.vmdkF:虚拟机共享磁盘柜vmware-vdiskmanager.exe -c -s 4Gb -a lsilogic -t 2 sharedisk.vmdk创建完毕后,目录下有四个新文件quorum-flat.vmdkquorum.vmdksharedisk-flat.vmdksharedisk.vmdk2. 配置虚拟机在虚拟机器界面选择“Edit virtual machine settings”添加硬盘,选“Use a existing virtual disk”,分别添加quorum.vmdk、sharedisk.vmdk双击新加的磁盘,在弹出的磁盘属性窗选“advance”,为新加的硬盘选择虚拟设备节点:quorum.vmdk选订“SCSI 0:1”, sharedisk.vmdk选定“SCSI 1:1”。分别打开两台虚拟机目录中的vmx文件,在最后一行添加: disk.locking=FALSE scsi0:1.SharedBus=Virtual scsi1:1.SharedBus=Virtual vmware中设置共享磁盘,需要满足两个条件:1、硬盘的高级属性中必须设置成1:0,如果增加第二块共享硬盘,也设成1:0,系统就会报错,所以设置成1:1(这种方式本人还没试过,不过在oracle双机的文章中看到过这样的设置方法)2、需要在vmware的配置属性文件(如rhel3.vmx)中加入两条属性scsin.sharedBus = virtual disk.locking = false 系统启动的时候会锁定磁盘,所以当启动linux1后共享磁盘被锁定了,linux2就起不来了,因此需要加入disk.locking = false 。一般来说,如果是scsi1:0,则n为1,也就是scsi1.sharedBus = virtual ,表示所有的bus都共享,vmare推荐这种做法。如果说是不是所有的bus都共享的话,可以将上述scsi1.sharedBus = virtual改成scsi1:1.shared = true 。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 scsin.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 machines 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 machines 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 scsin.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
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 惠民社区消防知识培训课件
- 情绪理论课件
- 2026届内蒙古包头市高三化学第一学期期末统考试题含解析
- 2026届福建省南平市邵武市四中化学高一上期中监测试题含解析
- 社会女性测试题及答案
- 象棋学徒面试题及答案
- 旭辉集团面试题及答案
- 家电公司审计流程执行制度
- 加班管理面试题及答案
- 财务人员面试题及答案
- 产科危急重症早期识别中国专家共识(2025年版)
- 福建福州工会招聘工会社会工作者笔试真题2024
- 国网35条严重违章图册
- 2025年云南磨憨开发投资集团有限公司招聘考试笔试试题(含答案)
- 2024年安徽省泗县人民医院公开招聘护理工作人员试题带答案详解
- GB/T 24538-2009坠落防护缓冲器
- 过程审核检查表示例(帮助理解VDA6.3条款)
- 船舶信号设备课件
- 兽药GSP档案记录表格
- 高一新生心理讲座PPT
- 中国大米行业蓝皮书
评论
0/150
提交评论