Jump to content
Welcome to our new Citrix community!
  • 0

tapdisk experienced an error | VHD scan error


Elias M

Question

Esteemed,
I need your help to recover a vm. I did a base-copy exclusion of old snapshots. and it hit that zebra.
When I try to start it comes from this:

Apr 24 17:20:11 srv-xeneld SM: [4869] ***** VHD scan error: vhd=VHD-5df4a27b-6758-4265-ab9c-89daf12ab566 scan-error=-2 error-message='failure scanning target'
Apr 24 17:20:11 srv-xeneld SM: [4866]   pread SUCCESS
Apr 24 17:20:11 srv-xeneld SM: [4866] ***** VHD scan error: vhd=VHD-d5040f36-6f06-490c-9312-92dae169acca scan-error=-2 error-message='failure scanning target'
Apr 24 17:20:12 srv-xeneld SM: [4869] ['/usr/bin/vhd-util', 'scan', '-f', '-c', '-m', 'VHD-535c7c2f-334a-4b4e-923e-63eae43728e8', '-l', 'VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d', '-a']
Apr 24 17:20:12 srv-xeneld SM: [4866] ['/usr/bin/vhd-util', 'scan', '-f', '-c', '-m', 'VHD-1bc29925-04f2-4f50-aec2-d5e949a9797c', '-l', 'VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d', '-a']
Apr 24 17:20:12 srv-xeneld SM: [4866]   pread SUCCESS
Apr 24 17:20:12 srv-xeneld SM: [4869]   pread SUCCESS

Then I tried this:

xe vdi-list sr-uuid=a846af9d-8a2d-3741-9716-c828c007198d params=uuid
uuid ( RO)    : 535c7c2f-334a-4b4e-923e-63eae43728e8
uuid ( RO)    : 1bc29925-04f2-4f50-aec2-d5e949a9797c
##########################################################################################
xe vdi-param-list uuid=1bc29925-04f2-4f50-aec2-d5e949a9797c
uuid ( RO)                    : 1bc29925-04f2-4f50-aec2-d5e949a9797c
              name-label ( RW): srv-ergapp30_disk00
        name-description ( RW): operation system area
           is-a-snapshot ( RO): false
             snapshot-of ( RO): <not in database>
               snapshots ( RO):
           snapshot-time ( RO): 19700101T00:00:00Z
      allowed-operations (SRO): forget; update; resize; destroy; clone; copy; snapshot
      current-operations (SRO):
                 sr-uuid ( RO): a846af9d-8a2d-3741-9716-c828c007198d
           sr-name-label ( RO): SR Local
               vbd-uuids (SRO): 1fec2bfe-e0ef-1200-dc4f-98809b0ed7a8
         crashdump-uuids (SRO):
            virtual-size ( RO): 128849018880
    physical-utilisation ( RO): 129109065728
                location ( RO): 1bc29925-04f2-4f50-aec2-d5e949a9797c
                    type ( RO): System
                sharable ( RO): false
               read-only ( RO): false
            storage-lock ( RO): false
                 managed ( RO): true
     parent ( RO) [DEPRECATED]: <not in database>
                 missing ( RO): false
            is-tools-iso ( RO): false
            other-config (MRW): leaf-coalesce: offline
           xenstore-data (MRO):
               sm-config (MRO): vhd-blocks: eJztlr9v00AUx9/ZIbnSSLbK0oE2roTESDbGRGIgE39DChITQyUGttgRkdqNfwAp7R/A31AzkSGFP6GWikS3WnTAgeDj7nyX2o1PwUgIEO8z3A/f3Xvfe+/ukoOdEADu3X8LeQiUUJ/IypJlkLUtuEOiEGwPmkMXvLJlVXjGTR6JBnVOH9XW49cjblJZpdqpxgXwGWMfm7w+fRGwr8ED3mWpwXZfWJCEqrZhzaWtEyZ2S2hTmrcybzXlUWH1bgbc3aarRhSEtpvWtKiqIrVeQ7kQO9pY2KqVTebuizG2gzqPfGGOSh05FGVXFI0x+79JZHxJGyye5OiG+3jnYDvazJ9yV5Ytxp6ImIUAI/Dc9ZfxdJCN1I/ipDeRB2KwuzU8E6srkVBK28/B8w77JOqLLw6bXF7KbDpsyGKRTCW2IetIrrvqm/i8nYI951OfxtCYJWvi22wPYOvNuTDg/9bI/v18WD1FRLo8xoujsdLGhW7MrwV9vi/KULuIFnlW75Rn747u5gyFhWPT4fl3uM3b3b32FPI6U6Gsk1s4NigLWybNWkgJnwzfY1uJJGKjjlRrtpIRdIxDc+qvWLwKdW0NZMH0v2VXvctVXyMJ+I+KWZ+Rd6I4ZiINLug0JFnObgWtQN5qTQoDlctlxtV9/2l+JV7yfSs/Kcflc0vTGhaugMLPtWdGAeNC7ypBCby3lM3znzjMJUSdXOeLlrn0oFxov0sj+ybLpn8y5OErs5pqT/73CnMRBEEQBEEQBEEQBEEQBPm3SH8AiWu5KQ==; vhd-parent: d5040f36-6f06-490c-9312-92dae169acca; vmhint: OpaqueRef:bfb724a8-8348-7119-4c9a-412311b7e7be; vdi_type: vhd
                 on-boot ( RW): persist
           allow-caching ( RW): false
         metadata-latest ( RO): false
        metadata-of-pool ( RO): <not in database>
                    tags (SRW):
#> lvs
  LV                                       VG                                                 Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  ISO                                      VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d -wi-ao----  15.00g
  MGT                                      VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d -wi-a-----   4.00m
  VHD-1bc29925-04f2-4f50-aec2-d5e949a9797c VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d -wi------- 120.24g
  VHD-535c7c2f-334a-4b4e-923e-63eae43728e8 VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d -wi------- 300.59g
  VHD-b341d6e7-133b-4020-a345-0f1bb21c0aa2 VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d -wi-ao----  10.03g

 #> lvscan
  ACTIVE            '/dev/VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d/MGT' [4.00 MiB] inherit
  ACTIVE            '/dev/VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d/ISO' [15.00 GiB] inherit
  inactive          '/dev/VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d/VHD-1bc29925-04f2-4f50-aec2-d5e949a9797c' [120.24 GiB] inherit
  inactive          '/dev/VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d/VHD-535c7c2f-334a-4b4e-923e-63eae43728e8' [300.59 GiB] inherit
  ACTIVE            '/dev/VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d/VHD-b341d6e7-133b-4020-a345-0f1bb21c0aa2' [10.03 GiB] inherit

 

As far as I could understand, the system is not found its father (VDI "d5040f36-6f06-490c-9312-92dae169acca"). Just what I ended up excluding.
Is it possible to raise the VM without the father? Raising a fake parent or something?

 

I used the tip of these topics, but without success:

https://discussions.citrix.com/topic/397783-so-many-vhd-scan-error-scan-error-2-error-messagefailure-scanning-target/
https://discussions.citrix.com/topic/347790-parent-vdi-deleted-accidentally/
https://discussions.citrix.com/topic/236371-show-wich-vhd-files-are-linked-together/

 

Any help is very welcome! And sorry for the English. Thanks.

Link to comment

9 answers to this question

Recommended Posts

  • 0

When running vhd-ultil, it seems that we can see that trying to read the VDIs that no longer exist.

[root@srv-xeneld ~]# vhd-util scan -m "VHD*" -f -c -l VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d -p -v -a -c
vhd=VHD-d5040f36-6f06-490c-9312-92dae169acca scan-error=-2 error-message='failure scanning target'
vhd=VHD-5df4a27b-6758-4265-ab9c-89daf12ab566 scan-error=-2 error-message='failure scanning target'
vhd=VHD-1bc29925-04f2-4f50-aec2-d5e949a9797c capacity=128849018880 size=129109065728 hidden=0 parent=VHD-d5040f36-6f06-490c-9312-92dae169acca (not found in scan)
vhd=VHD-535c7c2f-334a-4b4e-923e-63eae43728e8 capacity=322122547200 size=322760081408 hidden=0 parent=VHD-5df4a27b-6758-4265-ab9c-89daf12ab566 (not found in scan)
vhd=VHD-b341d6e7-133b-4020-a345-0f1bb21c0aa2 capacity=10737418240 size=10766778368 hidden=0 parent=none

I tried to run the vhd-ultil modify command, to try to remove these VDIs from the base. But without success.

[root@srv-xeneld ~]# vhd-util modify -n "/dev/mapper/VG_XenStorage--a846af9d--8a2d--3741--9716--c828c007198d-VHD--1bc29925--04f2--4f50--aec2--d5e949a9797c" -p none
Segmentation fault (core dumped)

Any tips?

Link to comment
  • 0

Hi Tobias!
Thank you for pointing the way.
Following your tip, would it be more convenient to create another VBD and associate it?
Example:

xe vbd-unplug uuid=1fec2bfe-e0ef-1200-dc4f-98809b0ed7a8
xe vbd-create vdi-uuid=1bc29925-04f2-4f50-aec2-d5e949a9797c bootable=true vm-uuid=6294b89a-e87f-baab-5663-81a984eda5c7

In your opinion, is it possible to rewire this vm?

I am deeply sorry that I did not create a backup.

Link to comment
  • 0

Now the VBDs are detached, running this command does not bring any more results.

xe vbd-list vdi-uuid=1bc29925-04f2-4f50-aec2-d5e949a9797c
no results
xe vbd-list vdi-uuid=535c7c2f-334a-4b4e-923e-63eae43728e8
no results

I don't know how to proceed anymore :38_worried:

Link to comment
  • 0

Hi Tobias.
They are:

vhd-util scan -m "VHD*" -f -c -l VG_XenStorage-a846af9d-8a2d-3741-9716-c828c007198d -p -v -a -c
vhd=VHD-d5040f36-6f06-490c-9312-92dae169acca scan-error=-2 error-message='failure scanning target'
vhd=VHD-5df4a27b-6758-4265-ab9c-89daf12ab566 scan-error=-2 error-message='failure scanning target'
vhd=VHD-1bc29925-04f2-4f50-aec2-d5e949a9797c capacity=128849018880 size=129109065728 hidden=0 parent=VHD-d5040f36-6f06-490c-9312-92dae169acca (not found in scan)
vhd=VHD-535c7c2f-334a-4b4e-923e-63eae43728e8 capacity=322122547200 size=322760081408 hidden=0 parent=VHD-5df4a27b-6758-4265-ab9c-89daf12ab566 (not found in scan)

 

Parent VDIs that no longer exist:

vhd=VHD-d5040f36-6f06-490c-9312-92dae169acca
vhd=VHD-5df4a27b-6758-4265-ab9c-89daf12ab566

 

Orphans who stayed. (I have only orphans):

vhd=VHD-1bc29925-04f2-4f50-aec2-d5e949a9797c
vhd=VHD-535c7c2f-334a-4b4e-923e-63eae43728e8

 

Here they are, already detached from the VBDs:

xe vdi-list name-label=srv-ergapp30_old_disk00 params=all
                    uuid ( RO): 1bc29925-04f2-4f50-aec2-d5e949a9797c
              name-label ( RW): srv-ergapp30_old_disk00
        name-description ( RW): operation system area
           is-a-snapshot ( RO): false
             snapshot-of ( RO): <not in database>
               snapshots ( RO):
           snapshot-time ( RO): 19700101T00:00:00Z
      allowed-operations (SRO): forget; update; resize; destroy; clone; copy; snapshot
      current-operations (SRO):
                 sr-uuid ( RO): a846af9d-8a2d-3741-9716-c828c007198d
           sr-name-label ( RO): SR Local
               vbd-uuids (SRO):
         crashdump-uuids (SRO):
            virtual-size ( RO): 128849018880
    physical-utilisation ( RO): 129109065728
                location ( RO): 1bc29925-04f2-4f50-aec2-d5e949a9797c
                    type ( RO): System
                sharable ( RO): false
               read-only ( RO): false
            storage-lock ( RO): false
                 managed ( RO): true
     parent ( RO) [DEPRECATED]: <not in database>
                 missing ( RO): false
            is-tools-iso ( RO): false
            other-config (MRW): leaf-coalesce: offline
           xenstore-data (MRO):
               sm-config (MRO): read-caching-reason-6bf73817-17c1-495e-bbb0-22510758008b: LICENSE_RESTRICTION; read-caching-enabled-on-6bf73817-17c1-495e-bbb0-22510758008b: false; vhd-blocks: eJztlr9v00AUx9/ZIbnSSLbK0oE2roTESDbGRGIgE39DChITQyUGttgRkdqNfwAp7R/A31AzkSGFP6GWikS3WnTAgeDj7nyX2o1PwUgIEO8z3A/f3Xvfe+/ukoOdEADu3X8LeQiUUJ/IypJlkLUtuEOiEGwPmkMXvLJlVXjGTR6JBnVOH9XW49cjblJZpdqpxgXwGWMfm7w+fRGwr8ED3mWpwXZfWJCEqrZhzaWtEyZ2S2hTmrcybzXlUWH1bgbc3aarRhSEtpvWtKiqIrVeQ7kQO9pY2KqVTebuizG2gzqPfGGOSh05FGVXFI0x+79JZHxJGyye5OiG+3jnYDvazJ9yV5Ytxp6ImIUAI/Dc9ZfxdJCN1I/ipDeRB2KwuzU8E6srkVBK28/B8w77JOqLLw6bXF7KbDpsyGKRTCW2IetIrrvqm/i8nYI951OfxtCYJWvi22wPYOvNuTDg/9bI/v18WD1FRLo8xoujsdLGhW7MrwV9vi/KULuIFnlW75Rn747u5gyFhWPT4fl3uM3b3b32FPI6U6Gsk1s4NigLWybNWkgJnwzfY1uJJGKjjlRrtpIRdIxDc+qvWLwKdW0NZMH0v2VXvctVXyMJ+I+KWZ+Rd6I4ZiINLug0JFnObgWtQN5qTQoDlctlxtV9/2l+JV7yfSs/Kcflc0vTGhaugMLPtWdGAeNC7ypBCby3lM3znzjMJUSdXOeLlrn0oFxov0sj+ybLpn8y5OErs5pqT/73CnMRBEEQBEEQBEEQBEEQBPm3SH8AiWu5KQ==; vhd-parent: d5040f36-6f06-490c-9312-92dae169acca; vmhint: OpaqueRef:bfb724a8-8348-7119-4c9a-412311b7e7be; vdi_type: vhd
                 on-boot ( RW): persist
           allow-caching ( RW): false
         metadata-latest ( RO): false
        metadata-of-pool ( RO): <not in database>
                    tags (SRW):
                    
                    
xe vdi-list name-label=srv-ergapp30_old_disk01 params=all
                    uuid ( RO): 535c7c2f-334a-4b4e-923e-63eae43728e8
              name-label ( RW): srv-ergapp30_old_disk01
        name-description ( RW): buszoom file exchange disk area
           is-a-snapshot ( RO): false
             snapshot-of ( RO): <not in database>
               snapshots ( RO):
           snapshot-time ( RO): 19700101T00:00:00Z
      allowed-operations (SRO): forget; update; resize; destroy; clone; copy; snapshot
      current-operations (SRO):
                 sr-uuid ( RO): a846af9d-8a2d-3741-9716-c828c007198d
           sr-name-label ( RO): SR Local
               vbd-uuids (SRO):
         crashdump-uuids (SRO):
            virtual-size ( RO): 322122547200
    physical-utilisation ( RO): 322760081408
                location ( RO): 535c7c2f-334a-4b4e-923e-63eae43728e8
                    type ( RO): User
                sharable ( RO): false
               read-only ( RO): false
            storage-lock ( RO): false
                 managed ( RO): true
     parent ( RO) [DEPRECATED]: <not in database>
                 missing ( RO): false
            is-tools-iso ( RO): false
            other-config (MRW): leaf-coalesce: offline
           xenstore-data (MRO):
               sm-config (MRO): read-caching-reason-6bf73817-17c1-495e-bbb0-22510758008b: LICENSE_RESTRICTION; read-caching-enabled-on-6bf73817-17c1-495e-bbb0-22510758008b: false; vhd-blocks: eJztzrEJACAMAMFAiuy/rVUibmAnwl3x9c98a+VJ1OsPAAAAAAAAAAAAAAAAAAAAAAAA7vUGP422VQ==; vhd-parent: 5df4a27b-6758-4265-ab9c-89daf12ab566; vmhint: OpaqueRef:bfb724a8-8348-7119-4c9a-412311b7e7be; vdi_type: vhd
                 on-boot ( RW): persist
           allow-caching ( RW): false
         metadata-latest ( RO): false
        metadata-of-pool ( RO): <not in database>
                    tags (SRW):

Certainly, the system is trying to read these parent VDIs, but it can no longer find them.

Thank you for helping :91_thumbsup:

 

Link to comment
  • 0

Tobias,
This procedure could not be performed.
In the beginning, I should have waited for VDI's coalition system. I imagine that this process should unify IDV parents and children.
I could have insisted a little more, but it was not possible.
I appreciate the tips. And the learning that remains is always to have a precautionary backup.

Thank you!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...