Skip to main content

How to Share Disk between multiple VMware Virtual machines

Problem : How to Share Disk between multiple VMware Virtual machines

Scenario : 

This solution will give user flexibility to share the Disks between multiple VMware virtual machines.
This will be helpful if you are going to create Windows level Cluster which requires Shared Disks.

Solution : 

Note : Don't deviate from the RED marked steps ;)

Enabling Virtual Disk Sharing

To configure a shared virtual disk by setting the multi-writer flag:
  1. Create a virtual disk to be shared using any acceptable approach. For example, through the vSphere Client:
    1. Create a new disk for a virtual machine on a VMFS data store:



    2. In the Create a Disk window, for ESX/ESXi versions earlier than 5.0, click Support clustering features such as Fault Tolerance to create the new virtual disk in the required format, eager zeroed thick.



      In ESXi 5.x versions, the Create a Disk window provides Thick Provision Lazy Zeroed, Thick Provision Eager Zeroed, and Thin Provision options under Disk Provisioning. Be sure to select Thick Provision Eager Zeroed. Also, note that the documentation may refer to this as Flat pre-initialized.


    3. Choose a Virtual Device Node setting, such as SCSI (1:0). Make a note of it, as it is required later.


  2. Add the multi-writer flag to configure sharing.

    Note: Do not change the SCSI Controller's SCSI Bus Sharing options. Keep the default selection, None.

    To enable SCSI bus sharing for a particular disks, apply one of these options:

      1. Power off the virtual machine.
      2. In the . vmx file that defines the virtual machine, add an entry similar to:
        scsiX:Y.sharing = "multi-writer"

        where X is the controller ID and Y is the disk ID on that controller. The setting screen of a virtual machine shows these values.

        Add this setting for each virtual disk that you want to share. For example, to share four disks, the configuration file entries look like this:
        scsi1:0.sharing = "multi-writer"
        scsi1:1.sharing = "multi-writer"

        scsi1:2.sharing = "multi-writer"

        scsi1:3.sharing = "multi-writer"
      3. Save the .vmx file and power on the virtual machine.
    1. In the vSphere Client, power off the virtual machine, navigate to Edit Settings > Options > Advanced > General > Configuration Parameters. Add rows for each of the shared disks and set their values to multi-writer.

  3. Add this disk to another virtual machine:

    1. In the vSphere Client inventory, right-click the virtual machine and click Edit Settings.
    2. Click the Hardware and click Add.
    3. Select Hard Disk and click Next.
    4. Select Use an Existing Virtual Disk.

      Note: You do not need to create a disk because the disk is already created.
  4. Enable sharing on this virtual machine, using one of the approaches listed in step 2.
Happy Clustering!

Comments

Post a Comment

Popular posts from this blog

Solved | SendGrid SSL CERTIFICATE_VERIFY_FAILED certificate verify failed | self signed certificate in certificate chain

Error :   PS C:\Ashish> & "C:/Program Files/Python39/python.exe" c:/Folder/SendEmail.py Traceback (most recent call last):   File "C:\Program Files\Python39\lib\urllib\request.py", line 1346, in do_open     h.request(req.get_method(), req.selector, req.data, headers,   File "C:\Program Files\Python39\lib\http\client.py", line 1279, in request     self._send_request(method, url, body, headers, encode_chunked)   File "C:\Program Files\Python39\lib\http\client.py", line 1325, in _send_request     self.endheaders(body, encode_chunked=encode_chunked)   File "C:\Program Files\Python39\lib\http\client.py", line 1274, in endheaders     self._send_output(message_body, encode_chunked=encode_chunked)   File "C:\Program Files\Python39\lib\http\client.py", line 1034, in _send_output     self.send(msg)   File "C:\Program Files\Python39\lib\http\client.py", line 974, in send     self.connect()   File "C:\Program Files\P

Change EMC Storage Management IP Address without Storage Reboot

Issue :  - How to Change EMC Storage Management IP Address without Reboot - Customer needs to change the IP address, subnet mask , default gateway of a CLARiiON or VNX for Block storage processor (SP)without rebooting the Storage Processors (SP) Scenario : EMC CLARiiON or VNX BLOCK Storage System Solution : 1) Download and Install Naviseccli utility  2)Run following command Add Security Parameters For SPA naviseccli -User admin -Password password -Address 172.XX.XX.XX -Scope 0 -AddUserSecurity For SPB naviseccli -User admin -Password password -Address 172.XX.XX.XX -Scope 0 -AddUserSecurity Get the info about existing SPs For SPA naviseccli -h 172.XX.XX.XX networkadmin -get For SPB naviseccli -h 172.XX.XX.XX networkadmin -get Change the IP Address For SPA naviseccli -h 172.XX.XX.XX networkadmin -set -address 172.XX.XX.XX -subnetmask 255.255.255.0 -gateway 172.XX.XX.XX naviseccli -h 172.XX.XX.XX networkadmin -set -address 172.XX.XX.XX -subnetmask 255.255.255

Fixed | WSUS 2016 | Error Code 0x8024401c | Windows 10 | Windows Server 2016

Scenario : Server : Windows WSUS Server 2016 Client : Windows 10, Windows Server 2016 Error Code :  0x8024401c on Windows 10 or Windows Server 2016 Solution : 1) Go to IIS Manager on WSUS Server 2) Goto Advance Settings of  WsusPool. 3) Make sure following settings are present/configured on the Pool, if not change it to below: Queue Length: 25000 Limit Interval (minutes): 15 "Service Unavailable" Response: TcpLevel Private Memory Limit (KB): 0 4) Make sure, the WSUS Entry in the Registry is having fully qualified domain name of WSUS Server. 5) Stop the IIS 6) Edit the web.config located at following location on WSUS Server : C:\Program Files\Update Services\WebServices\ClientWebService\web.config Replace <httpRuntime maxRequestLength="4096" /> with <httpRuntime maxRequestLength="204800" executionTimeout="7200"/> 7) Start the IIS 8) Retry updating clients. Done! Let me know if it has helped to y