Broke my VM

Joined
Apr 28, 2006
Messages
632
I'm running ESX 4.1. I have a 2003 Server VM that I wanted to combine the two hard drive partition on the system drive. So what I did was power down teh VM. remove the virtual drive from it, then added the drive to another 2003 server VM. I combined the partitions in that machine, then removed the virtual drive from it then added it back to its original machine. After trying to boot that VM i get this error :

Reason: Failed to lock the file.
Cannot open the disk '/vmfs/volumes/4e991a48-ff05a6e6-4f5c-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX.vmdk' or one of the snapshot disks it depends on.

Did I do something wrong?
 
Does that file exist? Look in the VMDK file and see if it's pointing to another file you don't have or renamed.
 
look at the vmx file too - did you have snapshots on that disk?

check the one you added it to second - did you leave ito n there by accident?
 
Sorry in advance since my post will not help your current situation. I have two questions.

1) Why did you partition a virtual hard drive?
2) Would you have been able to achieve your goal easier by instead booting the VM into a Ubuntu live CD and running gparted?
 
Sorry I'm quite new to ESX. I don't have any snapshots i dont think. I don't even know what a snapshot is.
Yes I removed the drive from the VM that I did the partiton merge and put it back in on its rightful VM.

Ok I looked at the files, i kinda barely understand what I'm looking at. This is the file from the VM that I had moved the drive to, then moved back away from. This computer is - FANG-SECURITY
#!/usr/bin/vmware
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "7"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
nvram = "FANG-SECURITY.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "hard"
powerType.suspend = "hard"
powerType.reset = "soft"
displayName = "FANG-SECURITY"
extendedConfigFile = "FANG-SECURITY.vmxf"
floppy0.present = "TRUE"
scsi0.present = "TRUE"
scsi0.sharedBus = "none"
scsi0.virtualDev = "lsilogic"
memsize = "1024"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "FANG-SECURITY.vmdk"
scsi0:0.deviceType = "scsi-hardDisk"
ide1:0.present = "TRUE"
ide1:0.clientDevice = "FALSE"
ide1:0.deviceType = "cdrom-image"
ide1:0.startConnected = "FALSE"
floppy0.startConnected = "FALSE"
floppy0.fileName = ""
floppy0.clientDevice = "TRUE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.networkName = "VM Network"
ethernet0.addressType = "generated"
guestOS = "winnetstandard"
uuid.location = "56 4d 0c 3e 81 aa 23 2d-97 a7 c0 a3 2f 7c 7c 38"
uuid.bios = "56 4d 0c 3e 81 aa 23 2d-97 a7 c0 a3 2f 7c 7c 38"
vc.uuid = "52 48 c3 4b 55 b4 93 68-72 df 35 b7 51 d0 db fb"
ethernet0.generatedAddress = "00:0c:29:7c:7c:38"
vmci0.id = "796687416"
cleanShutdown = "FALSE"
replay.supported = "FALSE"
sched.swap.derivedName = "/vmfs/volumes/4e9919c0-5b38ebd9-54fe-001b21c3fcae/FANG-SECURITY/FANG-SECURITY-6abfe96d.vswp"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
ethernet0.pciSlotNumber = "32"
vmci0.pciSlotNumber = "33"
vmotion.checkpointFBSize = "4194304"
ethernet0.generatedAddressOffset = "0"
hostCPUID.0 = "0000000568747541444d416369746e65"
hostCPUID.1 = "00100f420004080000802009178bfbff"
hostCPUID.80000001 = "00100f42100020a6000037ffefd3fbff"
guestCPUID.0 = "0000000568747541444d416369746e65"
guestCPUID.1 = "00100f420000080080802001078bbbff"
guestCPUID.80000001 = "00100f42100020a6000001e9ebd3bbff"
userCPUID.0 = "0000000568747541444d416369746e65"
userCPUID.1 = "00100f420004080080802001078bbbff"
userCPUID.80000001 = "00100f42100020a6000001e9ebd3bbff"
evcCompatibilityMode = "FALSE"
usb.present = "TRUE"
ehci.present = "TRUE"
usb.pciSlotNumber = "34"
ehci.pciSlotNumber = "35"
usb:0.present = "TRUE"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:0.deviceType = "mouse"
ide1:0.fileName = "/vmfs/volumes/4e990966-07029e71-e962-001b21c3fcae/iso/all_windows_dvd_1.iso"
tools.syncTime = "FALSE"
unity.wasCapable = "TRUE"
scsi0:1.fileName = "/vmfs/volumes/4e9d2382-dc579871-c0bf-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_10.vmdk"
scsi0:1.mode = "persistent"
scsi0:1.ctkEnabled = "FALSE"
scsi0:1.deviceType = "scsi-hardDisk"
scsi0:1.present = "TRUE"
scsi0:1.redo = ""
scsi0:2.fileName = "/vmfs/volumes/4e991a48-ff05a6e6-4f5c-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX.vmdk"
scsi0:2.mode = "persistent"
scsi0:2.ctkEnabled = "FALSE"
scsi0:2.deviceType = "scsi-hardDisk"
scsi0:2.present = "FALSE"
scsi0:2.redo = ""

The part that stands out to me is this bottom section
scsi0:2.fileName = "/vmfs/volumes/4e991a48-ff05a6e6-4f5c-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX.vmdk"
scsi0:2.mode = "persistent"
scsi0:2.ctkEnabled = "FALSE"
scsi0:2.deviceType = "scsi-hardDisk"
scsi0:2.present = "FALSE"
scsi0:2.redo = ""

I'm pretty darn sure the FANG-LITTERBOX/FANG-LITTERBOX.vmdk is the drive that I had temporarily moved to this VM to do the merge.
 
This is the file from FANG-LITTERBOX the VM the drive originally was
#!/usr/bin/vmware
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "7"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
nvram = "FANG-LITTERBOX.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "hard"
powerType.suspend = "hard"
powerType.reset = "soft"
displayName = "FANG-LITTERBOX"
extendedConfigFile = "FANG-LITTERBOX.vmxf"
floppy0.present = "TRUE"
numvcpus = "4"
scsi0.present = "TRUE"
scsi0.sharedBus = "none"
scsi0.virtualDev = "lsilogic"
memsize = "2000"
floppy0.startConnected = "FALSE"
floppy0.fileName = ""
floppy0.clientDevice = "TRUE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.networkName = "VM Network"
ethernet0.addressType = "generated"
chipset.onlineStandby = "FALSE"
guestOS = "winnetstandard"
uuid.location = "56 4d 99 f4 4b 62 d5 e9-4c 60 97 de 7a e7 45 a6"
uuid.bios = "56 4d 99 f4 4b 62 d5 e9-4c 60 97 de 7a e7 45 a6"
vc.uuid = "52 2d e7 af 28 70 e8 3d-f8 b9 c8 c9 8e 46 e5 6b"
snapshot.action = "keep"
sched.cpu.min = "0"
sched.cpu.units = "mhz"
sched.cpu.shares = "normal"
sched.mem.minsize = "0"
sched.mem.shares = "normal"
ethernet0.generatedAddress = "00:0c:29:e7:45:a6"
vmci0.id = "2061976998"
cleanShutdown = "TRUE"
replay.supported = "FALSE"
sched.swap.derivedName = "/vmfs/volumes/4e991a48-ff05a6e6-4f5c-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX-afbf412e.vswp"
replay.filename = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
ethernet0.pciSlotNumber = "32"
vmci0.pciSlotNumber = "33"
vmotion.checkpointFBSize = "4194304"
ethernet0.generatedAddressOffset = "0"
hostCPUID.0 = "0000000568747541444d416369746e65"
hostCPUID.1 = "00100f420004080000802009178bfbff"
hostCPUID.80000001 = "00100f42100020a6000037ffefd3fbff"
guestCPUID.0 = "0000000568747541444d416369746e65"
guestCPUID.1 = "00100f420000080080802001078bbbff"
guestCPUID.80000001 = "00100f42100020a6000001e9ebd3bbff"
userCPUID.0 = "0000000568747541444d416369746e65"
userCPUID.1 = "00100f420004080080802001078bbbff"
userCPUID.80000001 = "00100f42100020a6000001e9ebd3bbff"
evcCompatibilityMode = "FALSE"
tools.remindInstall = "FALSE"
tools.syncTime = "FALSE"
scsi0:1.fileName = "/vmfs/volumes/4e925540-c736d7a1-91e5-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_1.vmdk"
scsi0:1.mode = "persistent"
scsi0:1.ctkEnabled = "FALSE"
scsi0:1.deviceType = "scsi-hardDisk"
scsi0:1.present = "TRUE"
scsi0:1.redo = ""
scsi0:2.fileName = "/vmfs/volumes/4e94d2f0-34bf1210-cb32-000129d4c678/FANG-LITTERBOX/FANG-LITTERBOX_3.vmdk"
scsi0:2.mode = "persistent"
scsi0:2.ctkEnabled = "FALSE"
scsi0:2.deviceType = "scsi-hardDisk"
scsi0:2.present = "TRUE"
scsi0:2.redo = ""
scsi0:3.fileName = "/vmfs/volumes/4e948eaf-8fd3b5b7-b5ff-000129d4c678/FANG-LITTERBOX/FANG-LITTERBOX_2.vmdk"
scsi0:3.mode = "persistent"
scsi0:3.ctkEnabled = "FALSE"
scsi0:3.deviceType = "scsi-hardDisk"
scsi0:3.present = "TRUE"
scsi0:3.redo = ""
scsi0:4.fileName = "/vmfs/volumes/4e96f3b8-87eb61a7-449a-000129d4c678/FANG-LITTERBOX/FANG-LITTERBOX_4.vmdk"
scsi0:4.mode = "persistent"
scsi0:4.ctkEnabled = "false"
scsi0:4.deviceType = "scsi-hardDisk"
scsi0:4.present = "true"
scsi0:4.redo = ""
scsi0:5.fileName = "/vmfs/volumes/4e9a0ce0-a560d452-53d6-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_5.vmdk"
scsi0:5.mode = "persistent"
scsi0:5.ctkEnabled = "false"
scsi0:5.deviceType = "scsi-hardDisk"
scsi0:5.present = "true"
scsi0:5.redo = ""
checkpoint.vmState = ""
scsi0:6.fileName = "/vmfs/volumes/4e9ab057-bc1d91ce-0c63-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_6.vmdk"
scsi0:6.mode = "persistent"
scsi0:6.ctkEnabled = "FALSE"
scsi0:6.deviceType = "scsi-hardDisk"
scsi0:6.present = "TRUE"
scsi0:6.redo = ""
scsi0:8.fileName = "/vmfs/volumes/4e9b2e38-86239b7e-8e3b-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_7.vmdk"
scsi0:8.mode = "persistent"
scsi0:8.ctkEnabled = "FALSE"
scsi0:8.deviceType = "scsi-hardDisk"
scsi0:8.present = "TRUE"
scsi0:8.redo = ""
scsi0:9.fileName = "/vmfs/volumes/4e9b9aa0-af2aad1c-8c68-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_8.vmdk"
scsi0:9.mode = "persistent"
scsi0:9.ctkEnabled = "FALSE"
scsi0:9.deviceType = "scsi-hardDisk"
scsi0:9.present = "TRUE"
scsi0:9.redo = ""
scsi0:10.fileName = "/vmfs/volumes/4e9c2194-0e99433a-d6b7-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_9.vmdk"
scsi0:10.mode = "persistent"
scsi0:10.ctkEnabled = "FALSE"
scsi0:10.deviceType = "scsi-hardDisk"
scsi0:10.present = "TRUE"
scsi0:10.redo = ""
migrate.hostlog = "./FANG-LITTERBOX-afbf412e.hlog"
ehci.present = "TRUE"
ehci.pciSlotNumber = "35"
usb:0.present = "TRUE"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:0.deviceType = "mouse"
usb.present = "TRUE"
usb.pciSlotNumber = "34"
unity.wasCapable = "FALSE"
scsi0:14.present = "TRUE"
scsi0:14.fileName = "/vmfs/volumes/4ee85d47-3460dfec-50fe-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_13.vmdk"
scsi0:14.mode = "persistent"
scsi0:14.ctkEnabled = "FALSE"
scsi0:14.deviceType = "scsi-hardDisk"
scsi0:14.redo = ""
scsi0:12.present = "TRUE"
scsi0:12.fileName = "/vmfs/volumes/4ee99a50-95fb6922-9ddd-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX_12.vmdk"
scsi0:12.mode = "persistent"
scsi0:12.ctkEnabled = "FALSE"
scsi0:12.deviceType = "scsi-hardDisk"
scsi0:12.redo = ""
sched.scsi0:0.shares = "normal"
sched.scsi0:0.throughputCap = "none"
scsi0:11.present = "TRUE"
scsi0:11.fileName = "FANG-LITTERBOX.vmdk"
scsi0:11.deviceType = "scsi-hardDisk"
scsi0:11.redo = ""
scsi0:0.present = "TRUE"
scsi0:0.fileName = "FANG-LITTERBOX.vmdk"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:13.present = "FALSE"
ide1:0.present = "FALSE"
scsi1.present = "FALSE"
scsi1:0.present = "FALSE"
scsi0:0.redo = ""
 
Sorry in advance since my post will not help your current situation. I have two questions.

1) Why did you partition a virtual hard drive?
2) Would you have been able to achieve your goal easier by instead booting the VM into a Ubuntu live CD and running gparted?

1. The Drive needed more space than I had previously thought it was never going to need.
2. now that you mention it that probably would of been a little easier. Never thought of that.
 
SOLVED!
Well I edited the file on FANG-SECURITY and removed the section
scsi0:2.fileName = "/vmfs/volumes/4e991a48-ff05a6e6-4f5c-001b21c3fcae/FANG-LITTERBOX/FANG-LITTERBOX.vmdk"
scsi0:2.mode = "persistent"
scsi0:2.ctkEnabled = "FALSE"
scsi0:2.deviceType = "scsi-hardDisk"
scsi0:2.present = "FALSE"
scsi0:2.redo = ""

I then powered it down and back up again. Then I went to FANG-LITTERBOX removed the drive and re-added it. Both are humming along fine. Thankyou everyone I learned a few things from this and your input.
 
Back
Top