Solved

How can I recover an ESX VMFS partition

Posted on 2010-11-18
7
3,492 Views
Last Modified: 2012-05-10
Seems something BAD happened to my ESXi 4.1 server at home. I tried to reboot the server last night and it wouldn’t boot. Seems like it had a corrupt bootloader. So I put in the ESX DVD and went for the repair option.

It told me the bootloader wasn’t working and that it would repair it and retain any VMFS partitions it found. It also told me that before any destructive action was taken it would warn me. It didn't show any such warning so I assume no destructive action was necessary or carried out.

I completed the process then before it rebooted it told me it was dropping the box into audit mode so that no new VMFS partitions would be created automatically. It also said though something about having to phone VMware support to recover any partitions manually :/ but obviously I don’t have VMware support.

When I boot the box it seems like it is a fresh install, ie, no configuration information retained. I figured that didn’t really matter as I could just set that stuff up again but I can’t see the VMFS partition.

If I go into storage the only option is for me to create a VMFS partition in what it things is over a TB of blank space, but I haven’t done this since I am hoping there may be a way to bring the other partition back somehow.

Any help or advice appreciated.

Below is the output of FDISK -LU


~ # fdisk -lu

Disk /dev/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3: 1500.3 GB, 1500301910016 bytes
64 heads, 32 sectors/track, 1430799 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes

                                                                               Device Boot      Start         End      Blocks  Id System
/dev/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3p1          8192   1843199    917504    5  Extended
/dev/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3p4   *        32      8191      4080    4  FAT16 <32M
/dev/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3p5          8224    520191    255984    6  FAT16
/dev/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3p6        520224   1032191    255984    6  FAT16
/dev/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3p7       1032224   1257471    112624   fc  VMKcore
/dev/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3p8       1257504   1843199    292848    6  FAT16

Partition table entries are not in disk order
~ #

0
Comment
Question by:LLMorrisson
  • 4
  • 2
7 Comments
 
LVL 5

Author Comment

by:LLMorrisson
ID: 34166020
Supplementary information;

/etc # ls -l /vmfs/volumes

drwxr-xr-x    1 root     root                  8 Jan  1  1970 3c3693e8-f77a642a-1910-5c6bdcb26d3a
drwxr-xr-x    1 root     root                  8 Jan  1  1970 5b086a7e-a7e10513-30df-acb37f6eb186
lrwxr-xr-x    1 root     root                 35 Nov 19 10:27 Hypervisor1 -> b3fa2174-479e7b85-95c9-47258ae1fc30
lrwxr-xr-x    1 root     root                 35 Nov 19 10:27 Hypervisor2 -> 5b086a7e-a7e10513-30df-acb37f6eb186
lrwxr-xr-x    1 root     root                 35 Nov 19 10:27 Hypervisor3 -> 3c3693e8-f77a642a-1910-5c6bdcb26d3a
drwxr-xr-x    1 root     root                  8 Jan  1  1970 b3fa2174-479e7b85-95c9-47258ae1fc30


/etc # more fstab

none                    /proc                   procfs    defaults        0 0
none                    /vmfs/volumes           vcfs      defaults        0 0
none                    /tmp                    visorfs   2,192,01777,tmp       0 0
/etc #


/etc # esxcfg-scsidevs -c

Device UID                                                                Device Type      Console Device                                                                                Size      Multipath PluginDisplay Name        
mpx.vmhba32:C0:T0:L0                                                      CD-ROM           /vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0                                                      0MB       NMP     Local ATAPI CD-ROM (mpx.vmhba32:C0:T0:L0)
t10.ATA_____ST31500341AS________________________________________9VS3NSK3  Direct-Access    /vmfs/devices/disks/t10.ATA_____ST31500341AS________________________________________9VS3NSK3  1430799MB NMP     Local ATA Disk (t10.ATA_____ST31500341AS________________________________________9VS3NSK3)

/etc #
0
 
LVL 42

Expert Comment

by:paulsolov
ID: 34170266
Can you go into the subdirectories under the volumes to see if there are virtual machines files there?
0
 
LVL 28

Accepted Solution

by:
bgoering earned 500 total points
ID: 34172557
Take a look at http://www.vm-help.com/esx40i/mount_VMFS_during_an_install.php. Also see th knowledge base article http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002281 for a step by step on how to recover a lost datastore. The steps for 4.x are towards the bottom of the article.

Good Luck
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 5

Author Comment

by:LLMorrisson
ID: 34175042
Hi there,

Thanks, I did already find that article however the partition layout I can see does not match that in the article. I do not have anything listed as vmfs.

In fact, I've compared my current disk layout with another ESXi server and it appears I have two partitions missing. The vmfs one and another one (which should start at block 900).

I think I'll try the article anyway, but not before I've cloned the drive. I'll try this tonight.
0
 
LVL 5

Author Comment

by:LLMorrisson
ID: 34240888
Ok, so I went through the recovery procedue to reestablish the missing partitions. I first set up a brand new ESXi box on an identical machine to check the default partition layout and it was exactly as I expected except for the two that were missing. I recreated them following the instructions and that seemed to go fine, however ESX still cannot see the vmfs partition.

I guess I'll just accept it is lost. Fortunately there is nothing critical on that disk which can't easily be recreated.
0
 
LVL 28

Expert Comment

by:bgoering
ID: 34241929
Sorry to hear that didn't work. Unfortunately I don't have any other pertinent advice for this issue.

Good Luck
0
 
LVL 5

Author Closing Comment

by:LLMorrisson
ID: 34539471
Didn't exactly fix my problem, but some good info there.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

This Tutorial covers a very basic and common question asked on Experts Exchange, "How Do I Clone or Copy a virtual machine in VMware vSphere Hypervisor ESX/ESXi 4.x, ESXi 5.0?" Using the following method, no third party tools are required or need…
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now