VMware Cloud Community
peplasto
Contributor
Contributor
Jump to solution

Cannot add datastore to host

I have an issue where I initially created a new datastore, consisting of a MD storage array, as a VMFS Raid 50 and added that to the host via vcenter.

After doing some benchmarks we decided we would like to go with RAID 10. We then clear the configuration on the controller via the idrac bios and recreated the virtual disk using RAID 10.

After doing so the old datastore was no longer visible in vcenter and we tried adding the new datastore (RAID 10) but are getting the following error message: " Either the selected disk already has a VMFS datastore or the host cannot perform a partition table conversion. Select another disk."

We already tried deleting the virtual disk a couple more times and recreating everything from scratch but am still getting the error every time I try to add the datastore.

partedUtil getptbl /vmfs/devices/disks/naa.62cea7f044cecf0027101ef1633d47ca

Error: Input/output error during read on /dev/disks/naa.62cea7f044cecf0027101ef1633d47ca

Error: The primary GPT table states that the backup GPT is located beyond the end of disk. This may happen if the disk has shrunk or partition table is corrupted. Fix, by writing backup table at the end? This will also fix the last usable sector appropriately as per the new reduced size. diskPath (/dev/disks/naa.62cea7f044cecf0027101ef1633d47ca) diskSize (22491955200) AlternateLBA (41235251199) LastUsableLBA (41235251166)

Warning: The available space to /dev/disks/naa.62cea7f044cecf0027101ef1633d47ca appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (18743296000 blocks). You can fix the GPT to correct the available space or continue with the current settings ? This will also move the backup table at the end if it is not at the end already. diskSize (22491955200) AlternateLBA (41235251199) LastUsableLBA (41235251166) NewLastUsableLBA (22491955166)

Error: Can't have a partition outside the disk!

Unable to read partition table for device /vmfs/devices/disks/naa.62cea7f044cecf0027101ef1633d47ca

0 Kudos
1 Solution
1 Reply