Disk Is Error Free Vmkfstools
Contents |
NSXVirtual SAN vCenterFusionWorkstationvExpertVMware {code} CloudCredSubmit a Link Home > VMTN > VMware vSphere™ > VMware ESXi 5 > Discussions Please enter a title. You can not post a blank message. Please type your message and try again.
Vmkfstools Clone Disk
13 Replies Latest reply: Mar 14, 2015 7:14 PM by vmkfstools shrink disk pbraren ESXi 5.5 issue with powering on a VM: "An error was received from the
Vmkfstools Expand Disk
ESX host while powering on VM" "22 (Invalid argument)" "Module DiskEarly power on failed." pbraren Jun 4, 2014 5:06 AM Here's what happens when trying to an error was received from the esx host while powering on vm cannot open the disk power up one of my VMs (see also attachments):Error stack:An error was received from the ESX host while powering on VM vzilla-ws2012r2e.Failed to start the virtual machine.Cannot open the disk '/vmfs/volumes/51286ca4-ef967828-664d-001b2129ad71/vzilla-ws2012r2e/vzilla-ws2012r2e_3.vmdk' or one of the snapshot disks it depends on. 22 (Invalid argument)Module DiskEarly power on failed. Cannot open the disk failed to start the virtual machine (error -18). '/vmfs/volumes/51286ca4-ef967828-664d-001b2129ad71/vzilla-ws2012r2e/vzilla-ws2012r2e_4.vmdk' or one of the snapshot disks it depends on. 22 (Invalid argument)This circumstance may be related to a sata cabling issue, with possible momentary loss of connectivity, which could result in data loss/corruption, I realize. This is a lab box. Especially telling that the 2 VMDKs that it's complaining about (when trying to power on) are both on one physical drive enclosure. Data read and written to the enclosure since the problem arose is fine (indicating the cabling problem has been resolved, and that the VMFS5 filesystem seems to be healthy).No snapshots. No linked clones. Just a Windows 2012 Server based VM, with several drive letters within, with those underlying VMDK files residing on different VMFS5 datastores. Thin provisioned (those drives aren't actually that huge), but nowhere near running out of physical space for the data either. It's all been working great for months, until today, when trying to
on 07/23/2010 by William Lam While doing some testing on ghettoVCB earlier this week, I noticed a new command line argument to vmkfstools utility
Module Diskearly Power On Failed Esx
called "--fix" in vSphere 4.1. From the man pages for vmkfstool, it cannot open the disk vmfs volumes vmdk or one of the snapshot disks it depends on states the following: -x, --fix -[check|repair]This option will check and/or repair the virtual disk in case of an
Vmkfstools Check Vmdk
unclean shutdown.Here is an example of running the command against a VM's VMDK:[root@esx4-1 ~]# vmkfstools --fix check /vmfs/volumes/esx4-1-local-storage-1/dummy/dummy.vmdkDisk is error freeWhat surprised me next while looking up this new https://communities.vmware.com/thread/480590?start=0&tstart=0 parameter in the man pages, I discovered another new argument called "--miscop": -J, --miscop [setuuid | getuuid]´setuuid´ option creates a unique identifier (UUID) for thevirtual disk and stores the UUID in the descriptor file of thevirtual disk. If the descriptor file already contains a UUID,it will be overwritten with a new one. Please make sure that thevirtual disk does not http://www.virtuallyghetto.com/2010/07/vsphere-41-is-gift-that-keeps-on-giving.html have a UUID before using this option.´getuuid´ option displays the UUID of the virtual disk.The "--miscop" command is listed in the man pages but is not displayed when running "vmkfstools --help". At this point, I thought there might be more hidden commands that VMware is holding out on us. I decided to use a well known UNIX/Linux utility called "strings" which looks for printable string in files and apply that to the vmkfstools binary. After sifting through the massive output, I found the following additional command line parameters that are not documented: dumpfs numfiles force recursivelock recover vmfsscan physicalmapping logicalmapping allocateblock clearlazyzero parseimage createarro createmirrordisks createmultiextent trackvdisk activehosts Here are some of the command syntax which I have been able to verify: dumpfs can be used by specifying either "-D | --dumpfs" and specifying a VMFS volume, file or folder. [root@esx4-1 ~]# vmkfstools -D /vmfs/volumes/esx4-1-local-storage-1/ Lock [type 10c00001 offset 4292608 v 33, hb offset 3440640gen 11, mode 0, owner 00000000-00000000-0000-000000000000 mtime 2509]Addr <4, 0, 0>, gen 1, links 4, type dir, flags 0, uid 0, gid
fail to resolve problem. No guarantees. Worked for me... Make full backup of your virtual machine Logon to ESXi console Go to folder where your broken VM http://blog.asiantuntijakaveri.fi/2012/01/fixing-broken-vmware-vsphere-5-vmdk.html is located Check what vmkfstools thinks about image vmkfstools --fix check disk-s001.vmdk If your image requires repairing vmkfstools --fix repair disk-s001.vmdk Create new disk image from old one vmkfstools -i disk-s001.vmdk http://www.vladan.fr/recreate-a-missing-vmdk-header-file/ disk-new.vmdk Add disk-new.vmdk to virtual machine and hope it works now at Tuesday, January 10, 2012 No comments: New comments are not allowed. Newer Post Older Post Home Subscribe to: Post cannot open Comments (Atom) Archive ► 2016 (6) ► October (1) ► September (1) ► August (3) ► February (1) ► 2015 (15) ► December (2) ► November (1) ► July (9) ► June (1) ► February (2) ► 2014 (53) ► December (14) ► November (5) ► October (2) ► September (2) ► August (15) ► July (10) ► May (1) ► March (2) cannot open the ► January (2) ► 2013 (38) ► December (2) ► November (3) ► October (1) ► September (10) ► August (2) ► July (1) ► June (2) ► April (4) ► March (3) ► February (6) ► January (4) ▼ 2012 (42) ► December (10) ► August (3) ► July (10) ► June (4) ► May (1) ► February (1) ▼ January (13) Riki Sorsan veli SMTP NAT with Sendmail Simple fetchmail config Reliable IP over multiple unrealiable IP links wit... Linux multipoint GRE tunneling Layer 2 over Layer 3 using Linux built-in features... Fixing broken VMware vSphere 5 VMDK disk image Planet WNAP-7300 (Zcomax ZCN-1523H-5) with OpenWrt... Using dy.fi dynamic DNS with OpenWrt Running Mac OSX Lion 10.7.2 with VMware Workstatio... Strongswan 4.6.2dr3 on Ubuntu 12.04 alpha 1 Bridging networks with OpenWrt (r29611) using L2TP... Unpacking Planet Tech. Corp. WNAP-7200 and WNAP-73... ► 2011 (4) ► December (4) Categories @450 /31 #hashtagsarestupid 0.8.8.c 1-wire 12.04 14.04 lts 255.255.255.254 3.13 3.13 S0a 3.13.1 S1 3.15.8 3.16 312U 319U 32-bit to 64-bit 3888 3G 3ware 450 450LTE 6rd 7-Zip 8708ELP 881 910 ssd A2DP ACPI a
2013VMworld 2012VMworld 2011 Close CloseMicrosoftWindows Server 2012Windows Server 2016 CloseCategoriesServer Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter VirtualizationBackup and DR – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorialsHow To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.Free Stuff – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.Home LabReviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review. ClosePartners3CXRavelloStarwindVeeamVembuTurbonomic CloseThis WebNewsESXi LabAboutAdvertiseArchivesDisclaimerIT Books CloseFree ToolsE-BooksRecreate a missing VMDK header fileBy Vladan SEGET | Last Updated: November 1, 2014Shares If your VMDK file is lost. How do I found out? It's simple, if you don't see your usual vmdk file through the VI browser, and you see some kind of file with yourfile-flat.vmdk, then you lost your descriptor file.Then it happens that your VM does not want to start. Sure, you can restore from your yesterday's backup. But, if, for X reasons your last backup is like a week old or so and you do not want to loose the delta of your work, than the next several lines could be crucial for you…In this example 2003srvis the name of the virtual machine, 2003srv.vmdk was the name of the descriptive file, and 2003srv-flat.vmdk as the content, or -flat file. Now you can actually see the 2003srv-flat.vmdk file throught your VI client's browser datastore. Your file you need to recreate is 2003srv.vmdkTo create a descriptive file (I suppose that the disk was thin provisioned) :1. Login to console with putty. You have to enable SSH first (if not the case already). 2. Run this command: # cd /vmfs/volumes/myvmfsvolume/mydir3. Run this command to identify and record the exact size of the flat file:# ls -l vm-vCenter-flat.vmdk4. run the vmkfstools and create new virtual disk# vmkfstools -c 85921274880 -d thin -a lsilogic temp2.vmdk5. Like this there are 2 new files created: temp2.vmdk and temp2-flat.vmdk a