I tried hundreds of forums and posts, but nothing seem to help!
I have vSphere ESXi 5.5. and when starting ESXi the first time it created and formatted a storage automatically.
For some reason I removed it and now I cannot get my disks/storage back! No problem if I need to reformat but even that is impossible !
I tried to reuse it, to format it, whatever possible, but nothing is working:
The only message I get is : Error: Read-only file system during write on /dev/disks/naa.(...) !
For example :
# partedUtil mklabel /dev/disks/naa.600605b009a647b01c5ed73926b7ede1 msdos
Error: Read-only file system during write on /dev/disks/naa.600605b009a647b01c5ed73926b7ede1
WriteNewPtable: Unable to commit to device /dev/disks/naa.600605b009a647b01c5ed73926b7ede1
partedUtil delete partition gives the same message.
partedUtil setptbl gives the same message.
fdisk (delete, new partitions, write) is of no use.
# partedUtil getptbl /dev/disks/naa.600605b009a647b01c5ed73926b7ede1
gpt
1215155 255 63 19521474560
1 63 8386622 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
2 8386623 13629502 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0
Really, after trying more than 30 hours, I don't know anymore what to do ?
Any help would be very much appreciated...
Denis
P. S. ESXi 5.5.0 P. P. S. The message in the GUI is Appel "HostDatastoreSystem.CreateVmfsDatastore" pour l'objet "ha-datastoresystem" sur ESXi "172.16.1.244" a échoué
Finally I found a solution, thank to communities.vmware.com.
Maybe this solved only 50% of the cause of the problem, but at least access to the disk can be regained.
We see that this coredump partition is using our disk. This is what I did :
It's now a lot better :
But it's not 100% solved :
But then, by unactivating that partition, I was able to recreate a coredump partition on the disk from the GUI and then recreate a storage.
Now, this is not clean as initially (some small holes and strangely coredump at the end) but I would say the problem is solved:
Thanks, this worked but I also had to relocate the syslog file on the host from
/scratch/log
to/tmp
before I could delete the partition. Once the partition was deleted and the datastore created I relocated the syslog file to the original location,/scratch/log
. This was on a ESXI 6.5 host.