For me the dd says:
vmware # dd conv=noerror if=/vmfs/volumes/datastore2/Data/Data-flat.vmdk of=/vmfs/volumes/datastore4/Data/Data-flat.vmdk
dd: can’t open ‘/vmfs/volumes/datastore2/Data/Data-flat.vmdk’: Invalid argument
I verified that I could make a disk file of the same size as the source disk:
/vmfs/volumes/5b8d8777-8bfbb68c-56a0-a4badbfb2eac/Data_Copy # vmkfstools -c 80530636800 xx.vmdk
Create: 100% done.
/vmfs/volumes/5b8d8777-8bfbb68c-56a0-a4badbfb2eac/Data_Copy # ls -l
-rw——- 1 root root 8684 Sep 4 01:47 Data.nvram
-rw——- 1 root root 0 Sep 4 01:48 Data.vmsd
-rw——- 1 root root 3297 Sep 3 22:46 Data.vmx
-rw——- 1 root root 259 Sep 4 01:48 Data.vmxf
-rw——- 1 root root 80530636800 Sep 4 02:03 xx-flat.vmdk
-rw——- 1 root root 464 Sep 4 02:03 xx.vmdk
Source:
Here is the source. Note the error about the missing Data.vmdk. Perhaps that is my problem somehow?
/vmfs/volumes/52d85079-cc5e83dc-5f66-a4badbfb2eac/Data # ls -l
ls: ./Data.vmdk: No such file or directory
-rw-r—r— 1 root root 27 Feb 12 2014 Data-9c51ad3b.hlog
-rw——- 1 root root 805306368000 Sep 3 00:07 Data-flat.vmdk
-rw——- 1 root root 8684 Sep 3 05:53 Data.nvram
-rw——- 1 root root 0 Jan 17 2014 Data.vmsd
-rwx—x— 1 root root 3297 Sep 4 01:39 Data.vmx
-rw——- 1 root root 259 Sep 3 05:51 Data.vmxf
-rw-r—r— 1 root root 162382 Sep 12 2017 vmware-12.log
-rw-r—r— 1 root root 475869 Oct 3 2017 vmware-13.log
-rw-r—r— 1 root root 8011602 Aug 31 10:10 vmware-14.log
-rw-r—r— 1 root root 166094 Sep 3 05:53 vmware-15.log
-rw-r—r— 1 root root 38959 Sep 3 05:53 vmware-16.log
-rw-r—r— 1 root root 38909 Sep 3 22:39 vmware-17.log
-rw-r—r— 1 root root 38911 Sep 4 01:40 vmware.log
Dest:
/vmfs/volumes/5b8d8777-8bfbb68c-56a0-a4badbfb2eac/Data # ls
Data.vmsd Data.vmx Data.vmxf
/vmfs/volumes/5b8d8777-8bfbb68c-56a0-a4badbfb2eac/Data # ls -l
-rw——- 1 root root 0 Sep 4 01:46 Data.vmsd
-rw——- 1 root root 3297 Sep 4 01:46 Data.vmx
-rw——- 1 root root 259 Sep 4 01:46 Data.vmxf
Вебинары VMC о виртуализации:
Постер VMware vSphere PowerCLI 6.3:
Постер VMware ESXi 5.1:
Постер VMware Hands-on Labs 2015:
Постер VMware Platform Services Controller 6.0:
Постер VMware vCloud Networking:
Постер VMware NSX (референсный):
Постер VMware vCloud SDK:
Постер VMware vCloud Suite:
Постер VMware vCenter Server Appliance:
Порты и соединения VMware vSphere 6:
Порты и соединения VMware Horizon 7:
Порты и соединения VMware NSX:
Управление памятью в VMware vSphere 5:
Как работает кластер VMware High Availability:
Постер VMware vSphere 5.5 ESXTOP (обзорный):
Постер Veeam Backup & Replication v8 for VMware:
Постер Microsoft Windows Server 2012 Hyper-V R2:
Источник
Error caused by file esxi
I’m having an issue when copying a vmdk to another or same data store (NFS) . this can be from our nfs snapshot folder or even from one folder to another that makes no difference. all other files copy fine.
Is it not vmdk that is the issue but the size of files i don’t know.
We are using ESXi 5
Anyone an idea? we cannot restore any backups out of NFS snapshots due tot this issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> I’m having an issue
can you be more specific ? — I hope you do not try to use cp against vmdks ?
________________________________________________
Do you need support with a VMFS recovery problem ? — send a message via skype «sanbarrow»
I do not support Workstation 16 at this time .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i wrote the problem in the title
error caused by file [path to vmdl] during copy of a vm from snapshot on NFS data Store
we try to copy a vmdk out of a nfs snapshot (flat files) to the same or another data store and this copy fails with error error caused by file [path to vmdk]
Copy is done in datastore browser. small files seem to work. even vmdks from 8gb copy fine. when copying 30gb the error occurs. And the errur occurs instantly so not after copying half the file.
Источник
Cannot Clone or backup a VM
We are having an issue regarding a certain VM. we can’t seem to back it up using veeam or clone it via vcenter.
error on vcenter: using ESXi 6.5
«Error caused by file /vmfs/volumes/(datastore name)/(vmdk file)»
though however, we can freely migrate it through our 3 host but we can’t clone it. hope someone can help me on this please.
Popular Topics in VMware
11 Replies
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Hi Pete, Thank you on this. will surely try this after my server backup on the guest VM is done. so to prevent future issues, we relied first on a windows server backup utility just to be sure. then after we will try your suggestion. thank you in advance.
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Hi Pete, Thank you on this. will surely try this after my server backup on the guest VM is done. so to prevent future issues, we relied first on a windows server backup utility just to be sure. then after we will try your suggestion. thank you in advance.
Please refrain from using Windows backup to backup a VM. its the wrong tool for the job. use Veeam B&R for VMware (Not Veeam Agent for Windows also).
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Hi Pete, Thank you on this. will surely try this after my server backup on the guest VM is done. so to prevent future issues, we relied first on a windows server backup utility just to be sure. then after we will try your suggestion. thank you in advance.
Please refrain from using Windows backup to backup a VM. its the wrong tool for the job. use Veeam B&R for VMware (Not Veeam Agent for Windows also).
I agree it’s the wrong tool, but in the case when Veeam isn’t working due to a problem with a VHD not backing up or cloning using the correct tools, I’d use the native Windows backup rather than nothing
Источник
Adblock
detector
Create an account to follow your favorite communities and start taking part in conversations.
r/vmware
Posted byu/[deleted]4 years ago
has anyone come across this issue when trying to clone or migrate?
level 1
Is it powered on? You can use VMware Converter to do a V2V clone.
level 2
Awesome! I’m going to try that first thing in the morning.
level 2
error caused by (filename).vmdk
level 1
I had this error and it was due to a licensing issue on the Hitachi HNAS array. ESXi was trying to use VAAI fast clone and it was failing without an applicable license
level 1
Very likely a bad disk block is causing this. I see this all the time on very old ssd backed datastores. The only way I could get out of such an incident so far was to do an in-guest disk clone.
About Community
This community caters to VMware professionals using VMware products in enterprise computing environments. Posts regarding hobbyist and personal use are welcome, but are held to a high standard of quality. Always read the rules before posting. PLEASE state the product name and version when posting! VMware is a company, not a product!
Posted by Allia 2018-12-20T02:14:21Z
Hi Gents,
We are having an issue regarding a certain VM. we can’t seem to back it up using veeam or clone it via vcenter.
error on vcenter: using ESXi 6.5
«Error caused by file /vmfs/volumes/(datastore name)/(vmdk file)»
though however, we can freely migrate it through our 3 host but we can’t clone it. hope someone can help me on this please.
11 Replies
-
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Was this post helpful?
thumb_up
thumb_down
-
petegaughenbaugh wrote:
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Hi Pete, Thank you on this. will surely try this after my server backup on the guest VM is done. so to prevent future issues, we relied first on a windows server backup utility just to be sure. then after we will try your suggestion. thank you in advance.
Was this post helpful?
thumb_up
thumb_down
-
Allia wrote:
petegaughenbaugh wrote:
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Hi Pete, Thank you on this. will surely try this after my server backup on the guest VM is done. so to prevent future issues, we relied first on a windows server backup utility just to be sure. then after we will try your suggestion. thank you in advance.
Please refrain from using Windows backup to backup a VM….its the wrong tool for the job……..use Veeam B&R for VMware (Not Veeam Agent for Windows also).
Was this post helpful?
thumb_up
thumb_down
-
adrian_ych wrote:
Allia wrote:
petegaughenbaugh wrote:
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Hi Pete, Thank you on this. will surely try this after my server backup on the guest VM is done. so to prevent future issues, we relied first on a windows server backup utility just to be sure. then after we will try your suggestion. thank you in advance.
Please refrain from using Windows backup to backup a VM….its the wrong tool for the job……..use Veeam B&R for VMware (Not Veeam Agent for Windows also).
I agree it’s the wrong tool, but in the case when Veeam isn’t working due to a problem with a VHD not backing up or cloning using the correct tools, I’d use the native Windows backup rather than nothing
Was this post helpful?
thumb_up
thumb_down
-
Hi Pete, there is no CTKdisallow=true on the VM. how ever there is «ctkEnabled=TRUE» on it? is it the same? do i need to change the value of it to FALSE or do i need to create a new parameter and add CTKdisallow?
and yup. we are using veeam but right now, it’s also not working so we opted to windows server backup. though still. the windows server backup failed.
Was this post helpful?
thumb_up
thumb_down
-
petegaughenbaugh wrote:
I’ve seen something like this. The problem (I saw before) was an issue with changed block tracking backups corrupting the .vmdk file. Virtually identical description; can move between hosts, VM runs fine, can’t back up or clone. First, try turning off the CBT in your .vmx config file. Shut down the VM. Right click the VM, Edit Settings>Options>General>Config. Parameters. Set CTK to False. Alternately, you can open the .vmx file in a text editor and look for «CTKdisallow=true» and make sure it’s in there. If it says false, change it.
Somehow CBT gets wonky and creates a virtual hdd error. This was an issue several years ago and I haven’t see it since and never gave it another thought.
If for some reason this doesn’t fix your issue it’s super easy to revert.
Pete, that’s a blast from the past . I have not seen this issue for a few years and your solution works.
1 found this helpful
thumb_up
thumb_down
-
Do i need to create a new parameter with «CTKdisallow=TRUE»?
Was this post helpful?
thumb_up
thumb_down
-
Allia Have you done the obvious thing and check for snapshots associated to that VM? I know when Veeam often fails if you have some corrupted snapshots associated with a VM.
Was this post helpful?
thumb_up
thumb_down
-
scottbrindley wrote:
Allia Have you done the obvious thing and check for snapshots associated to that VM? I know when Veeam often fails if you have some corrupted snapshots associated with a VM.
Hi scott, yup. No any snapshot was associated on the VM.
Was this post helpful?
thumb_up
thumb_down
-
The error is really generic, more details would be in the vmkernel log on the ESXi and on the vmware log in the VM directory. Are there any more details in the GUI error message?
— Can you manually perform a snapshot on the VM (uncheck quiesce and memory — we are only trying to test here if everything is in order with vmdk descriptors and vmdks)? If yes, dont forget to delete the snapshot right afterwards. If no, what is the error?
— Is the issue reproducible on all ESXi hosts (you mentioned that migration works fine. Does that include storage vMotion as well?)
— Per suggested previous post, there could be issue with CTK files. It is safe to move the CTK files from VM directory (create a sub directory in VM directory and move the .ctk files there, try to take a backup/snapshot), however, next backup will be a new full backup of the VM, as CTK files are used for change block tracking, which allows the creation of incremental backups. Not high hopes on this, would be one of the later steps in TS-ing.
— Is the VM sitting on VMFS datastore?
Hard to suggest further steps without looking at the logs or webex to check.
Was this post helpful?
thumb_up
thumb_down
-
Cool…..thanks for checking , sometimes the little things get over looked
Was this post helpful?
thumb_up
thumb_down
Read these next…
Green Brand Rep Wrap-Up: January 2023
Spiceworks Originals
Hi, y’all — Chad here. A while back, we used to feature the top posts from our brand reps (aka “Green Gals/Guys/et. al.) in a weekly or monthly wrap-up post. I can’t specifically recall which, as that was approximately eleven timelines ago. Luckily, our t…
Help with domain controller setup
Windows
I just got a new job as the only IT person for a business with around 270 employees (I would say probably less than half use computers) They don’t have any policies or procedures when it comes to IT, as they have never had an IT person. My background cons…
Malicious URLs
Security
We have firewall, we have endpoint protection, we have Safe links and Attachments for Office 365 (Microsoft Defense for Office 365 Plan 1), and still receiving links that lead to malicious web sites.It seems like security companies still didn’t develop a …
Snap! — Old Batteries, Lovable Bots, Quantum Breakthrough, Should We Trust AI?
Spiceworks Originals
Your daily dose of tech news, in brief.
Welcome to the Snap!
Flashback: February 8, 1996: The massive Internet collaboration “24 Hours in Cyberspace” takes place (Read more HERE.)
Bonus Flashback: February 8, 1974: Americans end outer spa…
Large collection of Mac Minis
Best Practices & General IT
We are getting rid of a lot of older equipment that doesn’t have a purpose anymore on our campus. Most of it is 2010 and 2014 Mac Minis. When they were purchased, they were the absolute base model, so nothing special about them. I’ve reached out to multip…
If you have ever tried to Copy, Clone or Migrate a VM or VDMK and run into an issue where it fails with an error similar to:
Error caused by file /vmfs/volumes/some-path/*.vmdk
*Note this is just for VMFS not NFS storage
This could be caused by a few different reasons. One of the more well documented reasons is found in a VMware KB. The issue is related to the block size of the destination datastore. The KB notes a simple fix which would be:
ensure that the destination datastore is formatted with a block size that is large enough to support the VMDK file of the source machine
You can read more about block size limitations for different VMFS version here
A cause/solution I’ve read about is deleting or repairing snapshots attached to the VM you are trying to copy/clone/migrate. This article on Ather Beg’s blog details how to repair snapshots or corrupted disks by SSH’ing into the ESXi host and running some vmkfstools commands to hopefully fix the disks.
Another creative solution is where an “export” or convert using Converter can be done . This blog has an excellent breakdown of the installation and step-by-step use! Basically a “convert” of the VM from the source vCenter to the destination using the tool. I’ve read a few posts that this has worked around the same error this blog post is about.
Using internal storage that might not be an option so be creative using vmkfstools commands to manually create new partitions. Be careful that if you do partition an existing datastore or create a new one, you may wipe out existing data.
As noted in this VMware communities thread the only way to increase the blocksize is to recreate the datastore. By doing so you could choose the block size to match the source thus letting the copy/clone/migration complete without issue.
Thanks @dougm for the response.
I tried the above steps and it worked fine for me as well.
But in my case, the vmdk file which I am trying to move is streamOptimized which is not in expanded form.
For example when we convert any qcow2 file to vmdk file with following options:
qemu-img convert -f qcow2 -O vmdk -o subformat=streamOptimized CentOS-7-x86_64-GenericCloud-1503.qcow2 CentOS-7-x86_64-GenericCloud-1503.vmdk
The resulting vmdk file is the one that I have uploaded to datastore and then trying to move it to different location in the same datastore.
On VMWare ESXi host:
$ pwd
/vmfs/volumes/datastore1
$ ls -ltr TEST/sample.vmdk
-rw-r—r— 1 root root 1976543232 Dec 28 06:04 TEST/sample.vmdk
As you can see, there is no ‘-flat.vmdk’ disk file and .vmdk file is the stream optimized vmdk file of size 1.9GB.
Attached the debug output from this failed command:
$ govc datastore.mv -debug=true TEST/sample.vmdk TEST1/sample_test.vmdk
[30-12-20 01:06:33] Moving [datastore1] TEST/sample.vmdk to [datastore1] TEST1/sample_test.vmdk…Error: Error caused by file /vmfs/volumes/5bd0b7d5-02d4a3bb-154a-ac162d77f63c/TEST1/sample_test.vmdk
govc: Error caused by file /vmfs/volumes/5bd0b7d5-02d4a3bb-154a-ac162d77f63c/TEST1/sample_test.vmdk
debug.tar.gz
I’ve been puzzled over this issue for quite a long time.
Customer has some cloud solution on top of vSphere 5.5 u2 and deploying/cloning multiple VMs from template/VM fails with an error:
«Error caused by file /vmfs/volumes/datastore_id/path_to/source.vmdk».
This errors shown in vSphere client during «Apply Storage DRS recommendation».
I was able to replicate this behaviour with simple PowerCli script:
$vmquantity = 5
$template = Get-vm -Name "template_vm"
$dsclu = Get-DatastoreCluster -Name DS_clu1_foo
$clu = Get-Cluster -Name Clu1_foo
$vmlocation = Get-Folder -Name Folder_foo
1..$vmquantity |ForEach-Object {
$vmname = "testVM$_"
New-VM -ResourcePool $clu -Name $vmname -Datastore $dsclu -Location $vmlocation -VM $template -RunAsync
}
Key here is «RunAsync» parameter, only then problem occur.
I did a lot of unnecessary steps, like disabling VAAI, changing datastore and storage controller queues, without success.
Simple solution resolved this issue: deleting ctk.vmdk file of source VM/template fixed the problem. Also, make sure that .vmx or .vmtx files doesn’t have any reference to deleted files.
There is some VMware KB with this solution but it is not related to the error I was getting.VMware should update their KB’s because solution was hard to find.
Update:
I noticed that backups also are affected by this (at least TSM backup can be), that is snapshots are not created and as a result backup fails. Deleting ctk file can help here also.
Error caused by file vmfs volumes vmdk
We have a number of rogue VMDK files that dont appear to be connected to anything, we can move, rename these files but cannot delete them, they all appear to be -flat files e.g «SRV-FS_1-flat.vmdk»
I have tried the following —
reboot of the vcentre
reboot of the backup server
reboot of the named VM
tried removing from vcentre and the host management pages
the error I get is —
Delete Datastore File
Description Delete the source file or folder from the datastore
State Failed — Error caused by file /vmfs/volumes/59c386ab-acc6bf16-6452-b499bab20938/trashfolder/SRV-VEEAMMGR-flat.vmdk
Can anyone advise how to remove these files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>> . that dont appear to be connected to anything
Please don’t mind me asking, but how did you determine this?
.vmdk file are virtual disk files, which contain the user data, and it’s fairly uncommon that they become orphaned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks for your response. I have checked each of the hosted servers and none have links to these files. these files are showing date stamps from last year.
I would have thought if the file was renamed the server(s) that had any locks on the files would have gone offline / shown some errors please correct me if I am wrong on this point.
I am looking again at this today, concentrating on the srv-adsync machine.
The one thing that might be of useful info is that we have had a rebuild of the VCENTRE server, which was a windows based to the appliance based, my thoughts are did this faulty vcentre have something still open with these servers when it failed?
the disk store these files are on is our replica store so live machines wouldn’t have been hosted on it
Источник
Error caused by file vmfs volumes vmdk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot delete a vmdk file from my datastore. The file in question (S9_1-flat.vmdk) cannot be deleted using the vSphere Client or using CLI. I’ve attached the output from my SSH session:
/vmfs/volumes/50bb5d47-5677d7b4-cb59-90b11c1479d7/S9 # ls -al
drwxr-xr-x 1 root root 3640 Aug 17 15:45 .
drwxr-xr-t 1 root root 1540 Aug 17 14:59 ..
-rw-r—r— 1 root root 27 Jul 10 09:15 S9-365b1e05.hlog
-rw——- 1 root root 17179869184 Aug 17 15:45 S9-365b1e05.vswp
-rw——- 1 root root 107374182400 Aug 18 11:56 S9-flat.vmdk
-rw——- 1 root root 8684 Aug 17 15:46 S9.nvram
-rw——- 1 root root 491 Aug 17 15:45 S9.vmdk
-rw-r—r— 1 root root 0 Mar 21 2014 S9.vmsd
-rw——- 1 root root 4172 Aug 17 15:45 S9.vmx
-rw——- 1 root root 0 Aug 17 15:45 S9.vmx.lck
-rw-r—r— 1 root root 3033 Aug 17 15:39 S9.vmxf
-rw——- 1 root root 4068 Aug 17 15:45 S9.vmx
-rwxrwxrwx 1 root root 1099511627776 Jun 29 10:07 S9_1-flat.vmdk
-rw——- 1 root root 586263035904 Aug 18 11:01 S9_2-flat.vmdk
-rw——- 1 root root 520 Aug 17 15:45 S9_2.vmdk
-rw——- 1 root root 8561355 Aug 15 19:44 vmmcores-1.gz
-rw——- 1 root root 3581220 Aug 16 07:52 vmmcores-2.gz
-rw——- 1 root root 2968111 Aug 16 07:53 vmmcores-3.gz
-rw-r—r— 1 root root 227605 Aug 17 14:54 vmware-79.log
-rw-r—r— 1 root root 227281 Aug 17 15:02 vmware-80.log
-rw-r—r— 1 root root 232708 Aug 17 15:16 vmware-81.log
-rw-r—r— 1 root root 226958 Aug 17 15:28 vmware-82.log
-rw-r—r— 1 root root 235389 Aug 17 15:35 vmware-83.log
-rw-r—r— 1 root root 230933 Aug 17 15:38 vmware-84.log
-rw-r—r— 1 root root 236001 Aug 18 09:18 vmware.log
-rw——- 1 root root 97517568 Aug 17 15:45 vmx-S9-911941125-1.vswp
/vmfs/volumes/50bb5d47-5677d7b4-cb59-90b11c1479d7/S9 # rm -f S9_1-flat.vmdk
rm: can’t remove ‘S9_1-flat.vmdk’: Invalid argument
(Note that the permissions on the file are currently set as 777 as I initially thought that this could be a permissions issue).
Источник
Виртуализация vSphere, Hyper-V, Xen и Red Hat
Более 5820 заметок о виртуализации, виртуальных машинах VMware, Microsoft и Xen, а также Kubernetes
VM Guru / News / Залоченные файлы виртуальной машины в VMware vSphere — Could not power on VM: Lock was not free.
|
Подписаться по e-mail:
Вебинары VMC о виртуализации: Постер VMware vSphere PowerCLI 6.3: Постер VMware ESXi 5.1: Постер VMware Hands-on Labs 2015: Постер VMware Platform Services Controller 6.0: Постер VMware vCloud Networking: Постер VMware NSX (референсный): Постер VMware vCloud SDK: Постер VMware vCloud Suite: Постер VMware vCenter Server Appliance: Порты и соединения VMware vSphere 6: Порты и соединения VMware Horizon 7: Порты и соединения VMware NSX: Управление памятью в VMware vSphere 5: Как работает кластер VMware High Availability: Постер VMware vSphere 5.5 ESXTOP (обзорный): Постер Veeam Backup & Replication v8 for VMware: Постер Microsoft Windows Server 2012 Hyper-V R2: Источник Error caused by file vmfs volumes vmdkI have tried to query the changed disk area(QueryChangedDiskAreas) of a VM through Managed Object Browser(mob) [ reference : How to find or validate Change Block Tracking results returned by VMware API | My Space] But for a Vm it returns FileFault error. I have already tried the steps mentioned in the following Vmware KB article [VMware KB: QueryChangedDiskAreas API call returns a FileFault error ]. But still the issue is persist. Why it is happening and how to solve this issue? Any help on this is very much appreciated.
Does the FileFault error only occur via the MOB or also when calling QueryChangedDiskAreas through your code?
First i have tried through my code.,It is throwing the following error «Error caused by file /vmfs/volumes/e24134fd-e433sdw2/samplevm/samplevm.vmdk» That’s why i have tried through MOB Note: The datastore which is having the problematic VM is a NFS datastore.
Outch, that seems to be it. KB Article Changed Block Tracking (CBT) on virtual machines states: For CBT to identify altered disk sectors since the last change ID , the following items are required:
Note that they require a change ID for this to work. Further down it reads: For CBT to identify disk sectors in use with the special «*» change ID , the following items are required:
My interpretation of this is the «*» is not supported on NFS volumes. So if the disk is located on a NFS volume you will have to backup the entire disk. To check whether you problem is really related to the «*» on NFS volumes you could try to invoke QueryChangedDiskAreas via the MOB but specify a concrete changeId. If it works with the concrete Id the «*» on NFS volumes restriction is suggested to be your issue. To check whether the disk in question is located on a NFS volume I propose using property chain VirtualDisk.backing(VirtualDeviceFileBackingInfo).datastore.summary.type = vmfs | nfs | cifs | vfat Please let me know whether things are working out. Источник Adblock |