How To Create a RAM DISK in Windows Server

I love RAM DISK and have been using it for quite some time on my Windows 10. But I didn’t know that I can set it up as well on Windows Server, thanks to Mounia Rachidi for sharing. Would definitely try some day.

RAM Splash

Here is a step-by-step Walkthrough:

  1. Add iSCSI Target Server role on Windows Server.
  2. Adjust the firewall rules to allow iSCSI service to go through.
  3. Add a registry value AllowLoopBack = 1 to HKLM\Software\Microsoft\iSCSI Target to make sure the iSCSI Target allows the LoopBack mode
  4. Create a virtual disk as a RAMDisk
    1. New-IscsiVirtualDisk -Path "ramdisk:testRAM.vhdx" -Size 1GB
  5. Create a target iSCSI
    1. New-IscsiServerTarget -TargetName targetRAM -InitiatorIds @("IPAddress:X.X.X.")
  6. Launch the iSCSI Initiator for the Server Manager console.
  7. Connect to the iSCSI target created in Step 5.

Sounds like a very interesting idea to set up a RAMDisk through iSCSI target.

Leave a Reply

Your email address will not be published. Required fields are marked *