VMware Cloud Community
vishaln
Enthusiast
Enthusiast

error disk fail to open

Hi team,

Need your help on below error.

Error Stack:

An error occurred while reverting to a snapshot: The capacity of the parent virtual disk and the capacity of the child disk are different.

Cannot open the disk '/vmfs/volumes/xxxx/VM_1-000010.vmdk' or one of the snapshot disks it depends on.

8 Replies
a_p_
Leadership
Leadership

An error occurred while reverting to a snapshot: The capacity of the parent virtual disk and the capacity of the child disk are different.

Did you resize the base virtual disk from e.g. the command line?

Please explain - as detailed as possible - what happened.

André

0 Kudos
vishaln
Enthusiast
Enthusiast

Yes, tried to resize the vHDD, know it showing 0 MB size. disk is missing. How to resolve the issue.

0 Kudos
a_p_
Leadership
Leadership

To find out what can be done, it is important to understand what has been done.

Please explain how you tried to resize the virtual disk.

In addition to this run ls -lisa > filelist.txt from the command line to list the files in the VM's folder. Then download filelist.txt from the datastore, and attach the file to your next reply.


André

0 Kudos
vishaln
Enthusiast
Enthusiast

total 869262272

1010830916    128 drwxr-xr-x    1 root     root         98304 Jan 20 06:36 .

      4   1024 drwxr-xr-t    1 root     root        237568 Jan 20 11:39 ..

532680324 1991680 -rw-------    1 root     root     2436702208 Aug 14 10:29 Pusntza011_IPOCC_Sandbox_Harish-000001-sesparse.vmdk

536874628      0 -rw-------    1 root     root           404 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish-000001.vmdk

574623364 1090560 -rw-------    1 root     root     1522847744 Aug 14 12:41 Pusntza011_IPOCC_Sandbox_Harish-000002-sesparse.vmdk

578817668      0 -rw-------    1 root     root           411 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish-000002.vmdk

595594884 9164800 -rw-------    1 root     root     9743601664 Aug 21 04:55 Pusntza011_IPOCC_Sandbox_Harish-000003-sesparse.vmdk

599789188      0 -rw-------    1 root     root           411 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish-000003.vmdk

645926532 151552 -rw-------    1 root     root     562221056 Aug 21 09:14 Pusntza011_IPOCC_Sandbox_Harish-000004-sesparse.vmdk

650120836      0 -rw-------    1 root     root           411 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish-000004.vmdk

666898052 287744 -rw-------    1 root     root     698982400 Aug 21 13:09 Pusntza011_IPOCC_Sandbox_Harish-000005-sesparse.vmdk

671092356      0 -rw-------    1 root     root           411 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish-000005.vmdk

687869572 15179776 -rw-------    1 root     root     15876341760 Sep 17 06:03 Pusntza011_IPOCC_Sandbox_Harish-000006-sesparse.vmdk

692063876      0 -rw-------    1 root     root           411 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish-000006.vmdk

360713860 4928512 -rw-------    1 root     root     5417345024 Sep 25 12:10 Pusntza011_IPOCC_Sandbox_Harish-000007-sesparse.vmdk

432017028      0 -rw-------    1 root     root           411 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish-000007.vmdk

301993604 16498688 -rw-------    1 root     root     17211392000 Dec  9 10:53 Pusntza011_IPOCC_Sandbox_Harish-000008-sesparse.vmdk

306187908      0 -rw-------    1 root     root           411 Dec  9 10:53 Pusntza011_IPOCC_Sandbox_Harish-000008.vmdk

507514500 2250752 -rw-------    1 root     root     2564816896 Jan 20 06:36 Pusntza011_IPOCC_Sandbox_Harish-000009-sesparse.vmdk

511708804      0 -rw-------    1 root     root           442 Jan 20 04:21 Pusntza011_IPOCC_Sandbox_Harish-000009.vmdk

402656900 13450240 -rw-------    1 root     root     14100320256 Jan 16 09:40 Pusntza011_IPOCC_Sandbox_Harish-000010-sesparse.vmdk

478154372      0 -rw-------    1 root     root           388 Dec  9 10:53 Pusntza011_IPOCC_Sandbox_Harish-000010.vmdk

411045508     64 -rw-r--r--    1 root     root          5689 Jan 17 07:31 Pusntza011_IPOCC_Sandbox_Harish-2283ebe9.hlog

528486020 8402944 -rw-------    1 root     root     8604585922 Aug 14 05:49 Pusntza011_IPOCC_Sandbox_Harish-Snapshot1.vmsn

394268292     64 -rw-------    1 root     root         32884 Nov 25 09:29 Pusntza011_IPOCC_Sandbox_Harish-Snapshot12.vmsn

503320196     64 -rw-------    1 root     root         32884 Jan 16 09:40 Pusntza011_IPOCC_Sandbox_Harish-Snapshot13.vmsn

570429060     64 -rw-------    1 root     root         19852 Aug 14 10:29 Pusntza011_IPOCC_Sandbox_Harish-Snapshot2.vmsn

591400580 8402944 -rw-------    1 root     root     8604587955 Aug 14 12:44 Pusntza011_IPOCC_Sandbox_Harish-Snapshot3.vmsn

641732228     64 -rw-------    1 root     root         19852 Aug 21 04:55 Pusntza011_IPOCC_Sandbox_Harish-Snapshot4.vmsn

662703748     64 -rw-------    1 root     root         19852 Aug 21 09:14 Pusntza011_IPOCC_Sandbox_Harish-Snapshot5.vmsn

683675268     64 -rw-------    1 root     root         19852 Aug 21 13:09 Pusntza011_IPOCC_Sandbox_Harish-Snapshot6.vmsn

352325252     64 -rw-------    1 root     root         20138 Sep 17 06:03 Pusntza011_IPOCC_Sandbox_Harish-Snapshot7.vmsn

297799300     64 -rw-------    1 root     root         20138 Sep 25 12:11 Pusntza011_IPOCC_Sandbox_Harish-Snapshot8.vmsn

222301828      0 -rw-r--r--    1 root     root            13 Oct 18 10:37 Pusntza011_IPOCC_Sandbox_Harish-aux.xml

419434116 23741440 -rw-------    1 root     root     107374182400 Aug 14 05:46 Pusntza011_IPOCC_Sandbox_Harish-flat.vmdk

452988548     64 -rw-------    1 root     root          8684 Jan 20 06:36 Pusntza011_IPOCC_Sandbox_Harish.nvram

423628420      0 -rw-------    1 root     root           572 Jan 17 09:00 Pusntza011_IPOCC_Sandbox_Harish.vmdk

427822724     64 -rw-r--r--    1 root     root          5277 Jan 16 11:45 Pusntza011_IPOCC_Sandbox_Harish.vmsd

415239812     64 -rwxr-xr-x    1 root     root          3635 Jan 20 06:36 Pusntza011_IPOCC_Sandbox_Harish.vmx

322965124     64 -rw-------    1 root     root          3177 Jan 16 10:41 Pusntza011_IPOCC_Sandbox_Harish.vmxf

541068932  23552 -rw-------    1 root     root     866131968 Aug 14 10:29 Pusntza011_IPOCC_Sandbox_Harish_1-000001-sesparse.vmdk

545263236      0 -rw-------    1 root     root           408 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish_1-000001.vmdk

583011972 8037376 -rw-------    1 root     root     9041166336 Aug 14 12:41 Pusntza011_IPOCC_Sandbox_Harish_1-000002-sesparse.vmdk

587206276      0 -rw-------    1 root     root           415 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish_1-000002.vmdk

603983492 30950400 -rw-------    1 root     root     32404144128 Aug 21 04:55 Pusntza011_IPOCC_Sandbox_Harish_1-000003-sesparse.vmdk

608177796      0 -rw-------    1 root     root           415 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish_1-000003.vmdk

654315140 333824 -rw-------    1 root     root     1177079808 Aug 21 09:14 Pusntza011_IPOCC_Sandbox_Harish_1-000004-sesparse.vmdk

658509444      0 -rw-------    1 root     root           415 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish_1-000004.vmdk

675286660 629760 -rw-------    1 root     root     1485832192 Aug 21 13:09 Pusntza011_IPOCC_Sandbox_Harish_1-000005-sesparse.vmdk

679480964      0 -rw-------    1 root     root           415 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish_1-000005.vmdk

696258180 80070656 -rw-------    1 root     root     82501795840 Sep 17 06:03 Pusntza011_IPOCC_Sandbox_Harish_1-000006-sesparse.vmdk

700452484      0 -rw-------    1 root     root           415 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish_1-000006.vmdk

436211332 1124352 -rw-------    1 root     root     1962938368 Sep 25 12:10 Pusntza011_IPOCC_Sandbox_Harish_1-000007-sesparse.vmdk

440405636      0 -rw-------    1 root     root           415 Oct  3 13:13 Pusntza011_IPOCC_Sandbox_Harish_1-000007.vmdk

310382212 58711040 -rw-------    1 root     root     60680896512 Nov 25 09:28 Pusntza011_IPOCC_Sandbox_Harish_1-000008-sesparse.vmdk

314576516      0 -rw-------    1 root     root           415 Nov 11 05:38 Pusntza011_IPOCC_Sandbox_Harish_1-000008.vmdk

482348676 59406336 -rw-------    1 root     root     61377347584 Jan 16 09:40 Pusntza011_IPOCC_Sandbox_Harish_1-000009-sesparse.vmdk

486542980      0 -rw-------    1 root     root           392 Nov 25 09:34 Pusntza011_IPOCC_Sandbox_Harish_1-000009.vmdk

515903108  23552 -rw-------    1 root     root     866127872 Jan 20 04:12 Pusntza011_IPOCC_Sandbox_Harish_1-000010-sesparse.vmdk

520097412      0 -rw-------    1 root     root           446 Jan 16 10:40 Pusntza011_IPOCC_Sandbox_Harish_1-000010.vmdk

457182852 524288000 -rw-------    1 root     root     536870912000 Jan 20 04:38 Pusntza011_IPOCC_Sandbox_Harish_1-flat.vmdk

461377156      0 -rw-------    1 root     root           521 Jan 20 04:21 Pusntza011_IPOCC_Sandbox_Harish_1.vmdk

192941700      0 -rw-------    1 root     root           498 Jan 17 08:52 Pusntza011_IPOCC_Sandbox_Harish_1_test.vmdk

264244868   1024 -rw-r--r--    1 root     root        259552 Jan 17 07:07 vmware-24.log

281022084   1024 -rw-r--r--    1 root     root        259234 Jan 17 07:07 vmware-25.log

276827780   1024 -rw-r--r--    1 root     root        259324 Jan 17 09:04 vmware-26.log

285216388   1024 -rw-r--r--    1 root     root        259547 Jan 17 09:18 vmware-27.log

226496132   1024 -rw-r--r--    1 root     root        256689 Jan 18 06:44 vmware-28.log

209718916   1024 -rw-r--r--    1 root     root        256553 Jan 20 04:12 vmware-29.log

218107524   1024 -rw-r--r--    1 root     root        362025 Jan 20 10:24 vmware.log

704646788 112640 -rw-------    1 root     root     115343360 Aug 21 17:37 vmx-Pusntza011_IPOCC_Sandbox_Harish-3606803705-2.vswp

0 Kudos
a_p_
Leadership
Leadership

You didn't explain how you've resized the virtual disk yet. However, I assume that you did this using vmkfstools from the command line. I further assume that you didn't yet change anything from within the guest OS, e.g. partition sizes.

Please use e.g. WinSCP, download all of the VM's descriptor .vmdk files (the small ones without flat, or sesparse in their names), compress/zip these files, and attach the .zip archive to your next reply.

What I need to know too, is whether you do have sufficient free disk space on one of your datastores to clone the 500GB virtual disk (i.e. its previous/original size).

André

0 Kudos
continuum
Immortal
Immortal

Hi Andre

what do you think about cutting the expanded flat back to the size it used to be before the vmkfstools-abuse ?

Looks like no changes were to the vmx-file or the rest of the chain.

If Vishain confirms that a simple cut is both safe and by far the fastest option.

Cutting

Pusntza011_IPOCC_Sandbox_Harish_1-flat.vmdk 

should do it unless we are missing the most important parts of the story.

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
a_p_
Leadership
Leadership

I'm indeed thinking of something similar like cutting the file back to it's original size, or to simply "fake" the old size by modifying the descriptor file,

Faking the size through modifying the descriptor will allow for two options (unless I'm missing something):

  • create a clone including all snapshots (save approach, but will require additional disk space)
  • delete all snapshots, and then change the descriptor file's settings back to the new/expanded size

Your option to simply cut the flat file using e.g. dd will work too, but since there's a requirement to increase the virtual disk's size, the second option that I mentioned should do the trick in a very similar way.

André

0 Kudos