After a power surge my local raid 5 on a ESXi 5.1 host was lost.
I was able to access my raid after recreating the raid on my Intel controller and not initializing it.
Once my raid was on-line the existing datastore2 on it mounted normally.
However, I have lost two VM's of the three on datastore2. The first VM was a Openfiler SAN with 2TB vmdk on the datastore2. Off The remaining two VM's one is unknown state the other is invalid state. Browsing the datastore2 I can see all the files for one VM (linux box) but unable to import into inventory as it says VM already registered. With the second VM (windows7) all files have disappeared in datastore2.
Within the Openfiler SAN i have also lost a 50GB iscsi volume which has changed to size 0MB.
My raid 5 is 2.73TB (4*1 TB) and is reported (datastore2 = 2.73 TB) as such on the vspehere client.
However, when I do a fdisk -l Iget the following;
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/naa.600605b005f1cbe019ab66033cce13c6: 4294967295 sectors, 4095M Logical sector size: 512 Disk identifier (GUID): 92952db8-6b04-4a00-8d26-90e2ef25e531
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5853511646
Number Start (sector) End (sector) Size Code Name
1 2048 5853511646 5582M 0700
I suspect the datastore2 vmfs 5 files system is corrupted and maybe the partition table as well.
Any advice would be appreciated.
I did look at an article to use partedutil but not sure if recreating partition table will help.
The following is the result on my system:
partedUtil getptbl "/dev/disks/naa.600605b005f1cbe019ab66033cce13c6"
gpt
364364 255 63 5853511680
1 2048 5853511646 AA31E02A400F11DB9590000C2911D1B8 vmfs 0
Thanks.