Long story made a little short - I had the ESXi 5 installation on the same LUN with datastore.
It was an ESXi 4 before, upgraded then exchanged the server with a new one (the LUN resides on a storage, connected from a SAS HBA).
The new server doesn´t boot it, perhaps because now it is a dual SAS HBA (multipath), the older was single port... so I made a new instalation on an USB stick and its fine booting with it.
Now I need do resize my datastore beyond 2 TB and I can't - I suspect that the partition table is broken; not exactly a GPT, still some bytes like a MBR ... there is left the partitions from the old instalation.
I tried to rewrite it with partedUtil, but it gave me:
Error: Read-only file system during write on /dev/disks/naa.60080e5000233cdc000005e54e424588
WriteNewPtable: Unable to commit to disk
Why that? It does not have the boot partition... Or the ESX running from USB is using some of the old partitions (blocking then LUN) ?
This is what getptbl shows me:
~ # partedUtil getptbl "/vmfs/devices/disks/naa.60080e5000233cdc000005e54e424588"
msdos
2287247 64 32 4684282600
4 32 8191 4 128
1 8192 1843199 5 0
5 8224 520191 6 0
6 520224 1032191 6 0
7 1032224 1257471 252 0
8 1257504 1843199 6 0
2 1843200 10229759 6 0
3 10229760 4294967295 251 0
Can anyone give me any tips ? I have no way now to extract all the VMs data and reformat the LUN...
I was thinking about to recreate the partition table, perhaps with only two: one to "hide" all the old (and useless) partitions and the second for the current datastore (where I will expand it to the full volume utilization)
Thanks,