Before you add a physical disk to VMware ESXi, decide who needs access to it and whether it contains data. Follow the VMFS or local RDM steps, then verify that the disk appears where you expect.
Adding a physical disk to VMware ESXi? Before you plug it in, the most important question is: who gets to use it?
⚠️ Warning: If the physical drive already contains files you care about, stop. Don't create a datastore, and don't accept any initialization prompts inside the VM. These actions will mess with the existing partitions and can destroy your data.
In the ESXi Host Client, go to Storage > Devices. Find the disk (or the logical volume created by your RAID controller) that you want to use. Check its capacity, device ID, and if available, its model or serial number. Since two different disks can have the exact same capacity, look at more than one detail so you don't pick the wrong one.
If the drive doesn't show up in the list, check if your storage controller even detects it, and then rescan the storage. On servers with hardware RAID, ESXi won't see the raw physical disks. It only sees the logical volume the controller hands over. If that's your case, double-check the volume against your controller's settings before you do anything.
If this disk already has files you need to keep, make a separate copy of them and open a few to make sure they work. And if you're making changes to an existing VM, check if you have a backup for that VM and incoming disk., especially if they hold completely different things.
Need a place to store VMDKs and other VM files? Turn an empty or repurposed disk into a local VMFS datastore. Keep in mind that a local datastore belongs only to the host that owns the disk. In a multi-host setup, confirm which hosts need access before deploying VMs there.
Step 1. In the ESXi Host Client, open Storage and select Datastores > New datastore > Create a new datastore.
Step 2. Select Create new VMFS datastore, then click Next.
Step 3. On the Select device page, enter a datastore name and select the target disk. Verify its device identifier and capacity before continue.
Step 3. On the Select partitioning options page, select Use Full Disk to use the available space on the dedicated disk. To allocate a smaller portion, select Custom, click the Free space bar, and adjust the slider.
Step 4. Review the datastore settings and click Finish. Only proceed if you're sure the selected disk can be completely erased.
Wait for the process to complete, then check the capacity and available space of the new datastore under Storage to confirm it was created successfully.
Need to add this new storage to a VM? Here’s how:
Does a VM need direct access to the entire physical disk? If so, local RDM (Raw Device Mapping) is the way to go. With RDM, the data stays on the physical disk, but the host uses a small pointer file stored on a regular VMFS datastore to access it.
Before you set this up, make sure your hardware supports SCSI Inquiry VPD page 0x83 and presents a globally unique serial number. If you're not sure, check with your hardware vendor. Also, keep in mind that if a VM has an RDM disk attached, you can't use vMotion.
Step 1. Shut down the target VM. In the ESXi Host Client, open Host > Manage > Services, select TSM-SSH, and click Start.
Step 2. Open an SSH client on your computer and connect to the ESXi host. Enter the following command in a terminal.
ssh root@192.168.1.100
Step 3. After signing in to the ESXi host, run the following command and press Enter to list its disk-device entries:
ls -l /vmfs/devices/disks
Step 4. Open Storage > Devices in the Host Client and match the disk identifier showing in command. Then, copy the whole-device identifier, begin with t10. or naa, an entry without a partition suffix such as :1. Check that ESXi or another VM is not using the disk.
Step 5. Create a physical-mode RDM pointer with vmkfstools -z. Replace the identifier and destination with the actual device and an existing directory on your VMFS datastore:
vmkfstools -z "/vmfs/devices/disks/t10.YOUR_DISK_ID" "/vmfs/volumes/YourDatastore/YourVM/local-rdm.vmdk"
Step 6. Open Virtual Machines, right-click the powered-off VM, and select Edit settings.
Step 7. Under Virtual Hardware, select Add hard disk > Existing hard disk. Browse to the destination directory from Step 5 and select local-rdm.vmdk.
Step 7. Expand the added disk’s settings. Under Virtual Device Node, select an unused SCSI address on the controller you want to use, such as SCSI (0:1) on the first controller or SCSI (1:0) on the second. Then, click Save and open the VM’s settings to confirm. Disable SSH afterward if you enabled it for this task.
Step 8. Power on the VM and check the disk in the guest. For an empty disk, initialize it and create a new simple volume. For a disk with existing data, cancel the initialize or format prompt.
If you’re about to add a physical disk to VMware ESXi and change the hardware of a business VM, back up the VM so you have a recovery point if it fails to boot afterward.
AOMEI Cyber Backup lets you automatically create an ESXi VMware backup, with up to 3 standard VMs, plus unlimited free ESXi VMs.
Step 1. Open AOMEI Cyber Backup and log in to your account. Then, go to Source Device > VMware ESXi > Add VMware ESXI.
Step 2. To add vCenter or Standalone ESXi, enter the corresponding IP address, username, password and click Confirm to continue.
Step 3. Under the Task tab, select Backup > Create New Task.
Step 4. In the wizard, choose VMware ESXi Backup, and enter a Task Name so you can easily tell it apart from other tasks.
Step 5. Click Select + next to Device Name and Target corresponding. You can then choose the virtual machine you want to backup and a local or network destination where you want to save your backup.
Step 6. Optionally, click the existing Schedule settings and change backup method - full, incremental, or differential backup, along with backup frequency. Once confirm, click Start Backup.
After the change, check the outcome where the storage will be used. For VMFS, confirm the datastore is mounted and that any new VMDK is on it. For RDM, confirm the guest sees the expected device and can read any existing data. If you changed a business VM, verify that its application still starts and can access the storage it needs.