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

"Failed","Deleting disk => The attempt to mark the VDI as hidden failed


Robert Madrian

Question

Hello,

 

it seems there are some "orphaned" snapshots on my SR:

 

image.thumb.png.9024ae38fb7203debeba0a5962187aee.png

 

if I want to delete it I get:

 

"Failed","Deleting disk 'DISK_C_System' from SR 'LUN_3PAR_OS_01'
The attempt to mark the VDI as hidden failed

 

How to remove such Disks?

 

if I use  vhd-util scan -f -m "VHD-*" -l VG_XenStorage-fa9ca061-151f-be8f-14cb-fd55288a151c -p

vhd=VHD-909b25c6-016d-499b-9650-b555ae223fa9 scan-error=-22 error-message='reading header'
vhd=VHD-098f67b1-1d08-4f3e-bbea-83cd6e18e2c9 capacity=53687091200 size=14701035520 hidden=1 parent=none
   vhd=VHD-5dc46539-892f-4f67-a380-9b198f8ff8e5 capacity=53687091200 size=53800337408 hidden=0 parent=VHD-098f67b1-1d08-4f3e-bbea-83cd6e18e2c9
   vhd=VHD-9c17ddc0-d2ef-4e41-9214-d6335d76d886 capacity=64424509440 size=55775854592 hidden=1 parent=VHD-098f67b1-1d08-4f3e-bbea-83cd6e18e2c9
vhd=VHD-0bae7191-ba71-4c2c-9c27-4d7722be40f4 capacity=42949672960 size=41460695040 hidden=1 parent=none
vhd=VHD-1ee87dca-ecca-4fac-bb0f-415211f8df86 capacity=37580963840 size=36301701120 hidden=1 parent=none
vhd=VHD-2bcfa498-660b-44c5-b8db-daf9a4db0148 capacity=85899345920 size=53624176640 hidden=1 parent=none
vhd=VHD-3235eccd-2995-411a-a964-9a4b39585ed9 capacity=17179869184 size=15837691904 hidden=1 parent=none
vhd=VHD-46915cdb-82bd-4336-aacf-669f3fac5526 capacity=96636764160 size=84703969280 hidden=1 parent=none
vhd=VHD-7b18ff41-7333-4f19-9aad-a57c1dab74cb capacity=107374182400 size=107588091904 hidden=1 parent=none
   vhd=VHD-337d4e6a-ec96-46d9-9cf4-67facd5a6677 capacity=107374182400 size=9554624512 hidden=1 parent=VHD-7b18ff41-7333-4f19-9aad-a57c1dab74cb
vhd=VHD-a5307523-183b-4f3e-8a55-f4536f729b41 capacity=80530636800 size=80409001984 hidden=1 parent=none
vhd=VHD-cff721d1-e094-4d7d-af8d-5fac8bffaaa4 capacity=64424509440 size=41930457088 hidden=1 parent=none
vhd=VHD-e12e9149-1660-427d-90e9-d01bf9f65ee3 capacity=42949672960 size=27007123456 hidden=1 parent=none
vhd=VHD-ff3523fb-7428-4221-a09d-854a3fb61a2b capacity=37580963840 size=37572575232 hidden=1 parent=none
 

 

robert

Link to comment

10 answers to this question

Recommended Posts

  • 0

There's no size associated with this VDI, so it's in a very odd state.

First, try:

vhd-util repair -n /dev/VG_ ... (fill in full path)

 

to see if that helps.

 

If not, I'd suggest forcing the deletion on the LVM level, which should clean things up:

lvremove /dev/VG_XenStorage-<storage-repository-uuid>/VHD-<uuid>

 

using the full path to the LVM and the VHD UUID for VHD-909b25c6-016d-499b-9650-b555ae223fa9

 

Then rescan it with an SR scan and see if then vhd-util gives it a clean bill of health.

 

-=Tobias

Link to comment
  • 0

Om I have done lvremove - but now xe sr-scan results in an error:

xe sr-scan uuid=fa9ca061-151f-be8f-14cb-fd55288a151c
Error code: SR_BACKEND_FAILURE_40
Error parameters: , The SR scan failed  [opterr=Command ['/sbin/lvchange', '-ay', '/dev/VG_XenStorage-fa9ca061-151f-be8f-14cb-fd55288a151c/VHD-909b25c6-016d-499b-9650-b555ae223fa9'] failed (WARNING: duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy is being used from both devices /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper and /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdb
  Found duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy: using /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper not /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdb
  Using duplicate PV /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper from subsystem DM, ignoring /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdb
  WARNING: duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy is being used from both devices /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper and /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdai
  Found duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy: using /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper not /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdai
  Using duplicate PV /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper from subsystem DM, ignoring /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdai
  WARNING: duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy is being used from both devices /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper and /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdx
  Found duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy: using /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper not /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdx
  Using duplicate PV /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper from subsystem DM, ignoring /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdx
  WARNING: duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy is being used from both devices /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper and /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdm
  Found duplicate PV M2FmqNU4nKcRcyFZqEfWhq2d9heztFmy: using /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper not /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdm
  Using duplicate PV /dev/disk/by-scsid/360002ac0000000000000000300025d7e/mapper from subsystem DM, ignoring /dev/disk/by-scsid/360002ac0000000000000000300025d7e/sdm
  Failed to find logical volume "VG_XenStorage-fa9ca061-151f-be8f-14cb-fd55288a151c/VHD-909b25c6-016d-499b-9650-b555ae223fa9"): Input/output error],

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...