1 2 Previous Next 15 Replies Latest reply on Jun 23, 2020 11:40 PM by scott28tt

    Problem setting up shared disk

    Oratorio Novice

      I'm having problems setting up shared disk for clustering

       

      My configuration is:

      Host OS: CentOS 2.6.18-53.1.14.el5

      vmware server 1.0.4 build-56528

       

      When I add scsi1.sharedBus = "virtual" , the virtual machine won't start.

       

      When scsi1.sharedBus = "virtual" is removed, only one VM starts. The second VM hangs after a little while and the whole system becomes very very slow and i have to power off and reboot.

       

      Replacing scsi1.sharedBus = "virtual" with, for each disk, scsi1:0.shared = "true" has the same effect.

       

      What am I missing?

       

      Here is vmx config file for both VM

       

      disk.locking = "FALSE"

      diskLib.dataCacheMaxSize = "0"

      diskLib.dataCacheMaxReadAheadSize = "0"

      diskLib.dataCacheMinReadAheadSize = "0"

      diskLib.dataCachePageSize = "4096"

      diskLib.maxUnsyncedWrites = "0"

       

      scsi1.present = "TRUE"

      scsi1.virtualDev = "lsilogic"

       

            • not working **********

      scsi1.sharedbus = "virtual"

      ***************************

       

      scsi1:1.present = "TRUE"

      scsi1:1.fileName = "/u01/VM/shared/ocr.vmdk"

      scsi1:1.mode = "independent-persistent"

      scsi1:1.deviceType = "disk"

      scsi1:1.redo = ""

      scsi1:1.writeThrough = "TRUE"

       

      ...

      scsi1:2 ...

        • 1. Re: Problem setting up shared disk
          Peter_vm Guru

          With this line present in ".vmx":

          scsi1.sharedBus = "virtual"

          please post/attach "vmware.log" from guest directory on host.

          • 2. Re: Problem setting up shared disk
            Oratorio Novice

            please find attached vmware.log

             

            it seems a problem with creating lock file (RESLCK)

            • 3. Re: Problem setting up shared disk
              Peter_vm Guru

              Based on:

              Mar 08 16:38:00: vmx

              FILEIO: Found a previous instance of lock file '/u01/VM/shared/ocr.vmdk.RESLCK.WRITELOCK'. It will be removed automatically.

              Mar 08 16:38:00: vmx

              Caught signal 11 -- tid 3981

              remove those lock files manually and try to restart VM(s).

              • 4. Re: Problem setting up shared disk
                Oratorio Novice

                I tried it. lock file is created just before  this log message.

                 

                I found this here:

                 

                http://pubs.vmware.com/server1/admin/wwhelp/wwhimpl/common/html/wwhelp.htm?context=admin&file=ha_configs_scsi-res_enable_gsx.html

                 

                "Note:

                      

                VMware Server supports SCSI reservation when used with preallocated virtual disks. Support for SCSI reservation with growable virtual disks and physical disks is considered experimental. For high-availability configurations, use SCSI reservation with preallocated virtual disks."

                 

                I have preallocated virtual disks but it didn't help

                • 5. Re: Problem setting up shared disk
                  Peter_vm Guru

                  I would stick to VMware recommendations and use only their published options.

                  Also, I would recreate virtual disks as monolithic-preallocated.

                   

                  So drop for now those options (in italic):

                   

                  disk.locking = "FALSE"

                  diskLib.dataCacheMaxSize = "0"

                  diskLib.dataCacheMaxReadAheadSize = "0"

                  diskLib.dataCacheMinReadAheadSize = "0"

                  diskLib.dataCachePageSize = "4096"

                  diskLib.maxUnsyncedWrites = "0"

                  scsi1.present = "TRUE"

                  scsi1.virtualDev = "lsilogic"

                  scsi1.sharedbus = "virtual"

                  scsi1:0.present = "TRUE"

                  scsi1:0.fileName = "/u01/VM/shared/ocr.vmdk"

                  scsi1:0.redo = ""

                  • 6. Re: Problem setting up shared disk
                    Oratorio Novice

                    it doesn't help  there's still problem with this line

                     

                    scsi1.sharedbus = "virtual"

                    • 7. Re: Problem setting up shared disk
                      Peter_vm Guru

                      I don't know then. All clustering that I have tried was with VMware Server running on Windows host OS, not Linux.

                      • 8. Re: Problem setting up shared disk
                        jnawk Hot Shot

                         

                        I was utterly unsuccessful in getting VMWare server 1.0.4 to do the whole shared SCSI thing and gave up and set up an iSCSI target.    However, I also have a 1.0.3 VMWare server, and the configuration works just fine for it.

                         

                         

                         

                         

                         

                        • 9. Re: Problem setting up shared disk
                          Oratorio Novice

                          it seems there's a problem with setting shared SCSI disks with vmware server 1.0.4 on linux

                           

                          I set it up with XP as host .. it works !

                          • 10. Re: Problem setting up shared disk
                            Oratorio Novice

                             

                            no more luck with XP as host

                             

                            During Oracle RAC installation, i get:

                             

                            "Error while accessing the physical storage Operating System error http://The device is not ready."

                             

                            the dos command dir on raw device gives "The device is not ready" error

                             

                            SCSI raw devices are simply unusable with vmserver 1.0.4 on linux and windows

                             

                             

                             

                             

                            • 11. Re: Problem setting up shared disk
                              Oratorio Novice

                              The problem is with vmware server 1.0.4  which is (removed by moderator)

                               

                              I went back to 1.0.3 .. it works

                              • 12. Re: Problem setting up shared disk
                                rajesh singarapu Novice

                                 

                                hi,

                                 

                                 

                                I am trying to create a vcs cluster using rhel 4. guest machines (vmware workstation)

                                 

                                 

                                 

                                I added one shaed disk vith disklocking disabled and scsi in shared mode, with pre allocated disk

                                 

                                 

                                but,

                                 

                                 

                                after i created file system on that shared disk,

                                 

                                 

                                if i deport that that disk from one machine and import to other machine the disk is supposed to visible

                                 

                                 

                                but is not,

                                 

                                 

                                and it doest even allow me to import on second machine

                                 

                                 

                                i think the problem might be releasing locks, but i used disk.locking disabled.

                                 

                                 

                                with same configuration i prepared mscs which is now working good

                                 

                                 

                                 

                                 

                                 

                                please help me

                                 

                                 

                                 

                                 

                                 

                                 

                                 

                                 

                                • 13. Re: Problem setting up shared disk
                                  dgimenez Lurker

                                   

                                  Hi folks,

                                   

                                  Does anyone has news on this? I'm facing the exact same problem.

                                   

                                  I built a VM with 2 preallocated virtual disks in a Linux (Fedora 9) host:

                                  - The first disk is "local", for operating system and some other stuff

                                  - The second disk is "shared", and will contain an Oracle RAC database in it.

                                   

                                  The VM can't boot, generating a core dump file. As soon as I remove the line scsi1.sharedBus = "VIRTUAL" from the VMX file, or change this parameter to scsi1.sharedBus = "none", the Virtual Machine boots without any errors.

                                   

                                   

                                  I copyied all the VM files into an external USB disk, and from there into a Windows 2000 (!!!) host. Believe it or not, the Virtual Machine started without any errors in this Windows host. I mean, it is the same Virtual Machine, all I did was to copy files from the Linux host into a Windows host with the same version of VMware Server.

                                   

                                   

                                  My Linux host configuration is:

                                   

                                  • Fedora 9 kernel 2.6.27.5-41.fc9.x86_64

                                  • VMware Server release 1.0.8 build 126538 (rpm arch i386)

                                   

                                  My Windows 2000 (yes, you're right, this is quite old) host configuration is:

                                   

                                  • Windows 2000 SP 4

                                  • VMware Server release 1.0.8 build 126538 (windows installer)

                                   

                                  My guest configuration is:

                                   

                                  • Oracle Enterprise Linux OEL 4 U7 kernel 2.6.9-78.0.0.0.1.i386

                                  • VMware Tools version 6536 build 126538 (rpm arch i386)

                                   

                                  My VMX configuration contain, among others, the following parameters:

                                   

                                  ###
                                  disk.locking = "FALSE"
                                  ### SCSI 0 is for local disks
                                  scsi0.virtualDev = "lsilogic"
                                  scsi0.sharedBus = "none"
                                  scsi0:1.deviceType = "disk"
                                  scsi0:1.writeThrough = "TRUE"
                                  scsi0:1.mode = "independent-persistent"
                                  ### SCSI 1 is for shared disks
                                  scsi1.virtualDev = "lsilogic"
                                  scsi1.sharedBus = "VIRTUAL"
                                  scsi1:1.deviceType = "disk"
                                  scsi1:1.writeThrough = "TRUE"
                                  scsi1:1.mode = "independent-persistent"

                                   

                                   

                                   

                                   

                                  Thanks in advance,

                                  Danilo

                                   

                                   

                                  • 14. Re: Problem setting up shared disk
                                    ThankYouAnsweringMyQuestions Lurker

                                    Following worked for me.

                                     

                                    scsi0:1.present = "TRUE"

                                    scsi0:1.sharedBus = "virtual"

                                    scsi0:1.mode = "independent-persistent"

                                    disk.locking = "false"

                                    1 2 Previous Next