Unfortunately, the partition/disk seems to be set to read-only, and I cannot delete the partition. I went out a purchased a second SSD so I could create a new ESXi installation and ensure that the partition on the large local persistent disk (seen above) would be able to be removed. but it doesn't want to play ball.
Here is what I have tried:
ls -ltrh /vmfs/devices/disks/
total 5757200368
lrwxrwxrwx 1 root root 38 Jan 3 20:11 vml.02000000006f4ee0802f1512002b459235011d6ded504552432048:8 -> naa.6f4ee0802f1512002b459235011d6ded:8
lrwxrwxrwx 1 root root 38 Jan 3 20:11 vml.02000000006f4ee0802f1512002b459235011d6ded504552432048:7 -> naa.6f4ee0802f1512002b459235011d6ded:7
lrwxrwxrwx 1 root root 38 Jan 3 20:11 vml.02000000006f4ee0802f1512002b459235011d6ded504552432048:6 -> naa.6f4ee0802f1512002b459235011d6ded:6
lrwxrwxrwx 1 root root 38 Jan 3 20:11 vml.02000000006f4ee0802f1512002b459235011d6ded504552432048:5 -> naa.6f4ee0802f1512002b459235011d6ded:5
lrwxrwxrwx 1 root root 38 Jan 3 20:11 vml.02000000006f4ee0802f1512002b459235011d6ded504552432048:1 -> naa.6f4ee0802f1512002b459235011d6ded:1
lrwxrwxrwx 1 root root 36 Jan 3 20:11 vml.02000000006f4ee0802f1512002b459235011d6ded504552432048 -> naa.6f4ee0802f1512002b459235011d6ded
lrwxrwxrwx 1 root root 38 Jan 3 20:11 vml.020000000061866da0ac21fa002ad086944b997d38504552432048:7 -> naa.61866da0ac21fa002ad086944b997d38:7
lrwxrwxrwx 1 root root 36 Jan 3 20:11 vml.020000000061866da0ac21fa002ad086944b997d38504552432048 -> naa.61866da0ac21fa002ad086944b997d38
-rw------- 1 root root 765.7G Jan 3 20:11 naa.6f4ee0802f1512002b459235011d6ded:8
-rw------- 1 root root 119.9G Jan 3 20:11 naa.6f4ee0802f1512002b459235011d6ded:7
-rw------- 1 root root 4.0G Jan 3 20:11 naa.6f4ee0802f1512002b459235011d6ded:6
-rw------- 1 root root 4.0G Jan 3 20:11 naa.6f4ee0802f1512002b459235011d6ded:5
-rw------- 1 root root 100.0M Jan 3 20:11 naa.6f4ee0802f1512002b459235011d6ded:1
-rw------- 1 root root 893.8G Jan 3 20:11 naa.6f4ee0802f1512002b459235011d6ded
-rw------- 1 root root 128.0G Jan 3 20:11 naa.61866da0ac21fa002ad086944b997d38:7
-rw------- 1 root root 3.5T Jan 3 20:11 naa.61866da0ac21fa002ad086944b997d38
The disk in question is `naa.61866da0ac21fa002ad086944b997d38`, and the partition I want to remove is `naa.61866da0ac21fa002ad086944b997d38:7`.
partedUtil partinfo "/vmfs/devices/disks/naa.61866da0ac21fa002ad086944b997d38" 7
Partition Number: 7
Start sector: 2048
End sector: 268435455
Partition Type GUID: 4EB2EA3978554790A79EFAE495E21F8D
Partition Unique GUID: 2C3FB6286A2545B5AB41D6981A0C4EA7
Partition Filesystem Type: vmfsl
Partition attributes: 0
However, trying to do this using `partedUtil` results in:
partedUtil delete "/vmfs/devices/disks/naa.61866da0ac21fa002ad086944b997d38" 7
Error: Read-only file system during write on /dev/disks/naa.61866da0ac21fa002ad086944b997d38
Unable to delete partition 7 from device /vmfs/devices/disks/naa.61866da0ac21fa002ad086944b997d38
Checking out some previous posts, I also tried the following:
Setting the `PreventVMFSOverwrite` to `0`.
esxcfg-advcfg --get /Disk/PreventVMFSOverwrite
Value of PreventVMFSOverwrite is 1
esxcfg-advcfg --set 0 /Disk/PreventVMFSOverwrite
Value of PreventVMFSOverwrite is 0
Then, attempting to use `dd` to re-write the beginning of the partition table:
dd if=/dev/zero of="/vmfs/devices/disks/naa.61866da0ac21fa002ad086944b997d38" bs=512 count=34 conv=notrunc
dd: /vmfs/devices/disks/naa.61866da0ac21fa002ad086944b997d38: Read-only file system
I looked to see if there was a core dump partition assigned to the disk, but as this is effectively a new ESXi instalation, there isn't:
esxcli system coredump partition get
Active:
Configured:
So ultimately, I'm stumped.
It seems I might need a third party until to complete this