To test HA, build two servers in VMWare server. It needs a share disk for these two servers. in other word, we must create a disk which can be mounted in two servers.
1. create a disk file
# vmware-vdiskmanager -c -s 2Gb -a lsilogic -t 2 "/opt/share/dfsshare.vmdk"
2. add the following setting in the config file of two guest servers(ex. redhat.vmx)
(note: must stop the guest server)
scsi1.present = "TRUE"
scsi1:0.present = "TRUE"
scsi1:0.fileName = "/opt/share/dfsshare.vmdk"
scsi1.virtualDev = "lsilogic"
scsi1.sharedBus = "virutal"
disk.locking = "false"
scsi1:0.reslckname = "/tmp/sharedisk.reslock"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
refer to:
阅读(1154) | 评论(0) | 转发(0) |