Importing existing VMFS datastores

So, one of my VMware homelab servers has decided that its built in storage ports are the work of the devil and it will no longer behave with the disks attached to them.

Handly enough I had a spare IBM M1015 HBA lying around and was able to stuff that in it and reconnect the storage to that.

So how to add the datastores back into VMware?

Thankfully that’s nice and easy.

ssh onto the VMware server, and get it to list mountable volumes that are not mounted with: –

>esxcfg-volume -l

Scanning for VMFS-3/VMFS-5 host activity (512 bytes/HB, 2048 HBs).
VMFS UUID/label: 555ccf8d-1e83b310-841f-d050996fdfcc/MainStore
Can mount: Yes
Can resignature: Yes
Extent name: naa.50014ee2af9fd52b:1 range: 0 – 610303 (MB)

Scanning for VMFS-6 host activity (4096 bytes/HB, 1024 HBs).
VMFS UUID/label: 58fa7c2e-4e0fb8d8-ceaf-d050996fdfcc/Datastore1
Can mount: Yes
Can resignature: Yes
Extent name: naa.5000cca249d38d3d:1 range: 0 – 3815423 (MB)

So, we can see the two lab datastores on the two disks.
Lets get those mounted and then we can get this host back into action.

> esxcfg-volume -M 555ccf8d-1e83b310-841f-d050996fdfcc
Mounting volume 555ccf8d-1e83b310-841f-d050996fdfcc
> esxcfg-volume -M 58fa7c2e-4e0fb8d8-ceaf-d050996fdfcc
Mounting volume 58fa7c2e-4e0fb8d8-ceaf-d050996fdfcc

That should be them back into action. Lets check.

>esxcli storage filesystem list
Mount Point Volume Name UUID Mounted Type Size Free
————————————————- ———– ———————————– ——- —— ————– ————-
/vmfs/volumes/f16a5c2f-024e8e4b NFS f16a5c2f-024e8e4b true NFS 15857184727040 6747773542400
/vmfs/volumes/555ccf8d-1e83b310-841f-d050996fdfcc MainStore 555ccf8d-1e83b310-841f-d050996fdfcc true VMFS-5 639950127104 423815544832
/vmfs/volumes/58fa7c2e-4e0fb8d8-ceaf-d050996fdfcc Datastore1 58fa7c2e-4e0fb8d8-ceaf-d050996fdfcc true VMFS-6 4000762036224 3874391851008
/vmfs/volumes/9d5d25e5-72a247b9-fc58-db0a033ab4bf 9d5d25e5-72a247b9-fc58-db0a033ab4bf true vfat 261853184 107995136
/vmfs/volumes/4ea4f4e0-ce3c1495-0118-faa5b7f0c306 4ea4f4e0-ce3c1495-0118-faa5b7f0c306 true vfat 261853184 110907392
/vmfs/volumes/555b82b5-b0de9b80-885e-f46d043c4066 555b82b5-b0de9b80-885e-f46d043c4066 true vfat 299712512 83746816

As we can see above, the datastores MainStore and Datastore1 are back in action and we should be able to use the vm’s on it.

Mine (vm’s) were in perfect condition and I was able to get my homelab Cloudera Hadoop cluster backup and running and upgrade it to CDH 5.12.0 to play with.

Leave a comment