Difference between revisions of "GSP Virtualisation with Xen"
From PDP/Grid Wiki
Jump to navigationJump to searchLine 346: | Line 346: | ||
See | See | ||
* http://blog.403labs.com/post/1546501840/paravirtulization-with-citrix-xenserver-5-5-and-ubuntu | * http://blog.403labs.com/post/1546501840/paravirtulization-with-citrix-xenserver-5-5-and-ubuntu | ||
+ | |||
+ | == SR corruption == | ||
+ | |||
+ | If you suffer from errors like "<tt>Error: Deleting disk '' from SR 'SRNAME' - Error in Metadata volume operation for SR.</tt>", and in the log on the pool master shows things like | ||
+ | [23889] 2012-07-16 12:06:49.549273 Exception getting metadata length.Error: Failed to read file with params [3, 0, 512, 512]. Error: Input/output error | ||
+ | [23889] 2012-07-16 12:06:49.549392 Exception getting metadata with params{'vdi_uuid': '81fac4d4-d273-4b3e-81b9-7960f615b20e'}. Error: Failed to read file with params [3, 0, 512, 512]. Error: Input/output error | ||
+ | [23889] 2012-07-16 12:06:49.549517 Error deleting vdi 81fac4d4-d273-4b3e-81b9-7960f615b20e from the metadata. Error: VDI delete operation failed for parameters: /dev/VG_XenStorage-790dc413-883f-f49e-a0e8-8410778145aa/MGT, 81fac4d4-d273-4b3e-81b9-7960f615b20e. Error: Failed to read file with params [3, 0, 512, 512]. Error: Input/output error | ||
+ | [23889] 2012-07-16 12:06:49.587649 Raising exception [181, Error in Metadata volume operation for SR. [opterr=VDI delete operation failed for parameters: /dev/VG_XenStorage-790dc413-883f-f49e-a0e8-8410778145aa/MGT, 81fac4d4-d273-4b3e-81b9-7960f615b20e. Error: Failed to read file with params [3, 0, 512, 512]. Error: Input/output error]] | ||
+ | |||
+ | the MGT management volume on the SR may have become sorruption. Why this would happen is unclear, but once it happens this error will prevent you from removing nameless and label-less volumes, and appear to eat disk space form the repo (they don't, but the management volume says so). | ||
+ | |||
+ | What worked is the following: | ||
+ | * try removign the offending volume. The log on the pool master will show the abse name of the offending VG after the lvchange -ay command line log. Use the basename only, like "/dev/VG_XenStorage-790dc413-883f-f49e-a0e8-8410778145aa/" | ||
+ | * with ls, look if the MGT volume is available (it should be): | ||
+ | ls -l /dev/VG_XenStorage-790dc413-883f-f49e-a0e8-8410778145aa/MGT | ||
+ | * rescan the SR first (triggerign the error) | ||
+ | xe sr-scan uuid=790dc413-883f-f49e-a0e8-8410778145aa | ||
+ | * move the MGT volume out of the way ('forgetting' the content for a while). This ''can'' be done with the VDI's on it being attached to running VMs | ||
+ | * re-scan the SR, e.g. using the GUI | ||
+ | * rescan it again, for as long as the used space is not equal to the sum of the VDIs on it | ||
+ | * remove stale VDIs by uuid (if they are still there) | ||
+ | |||
+ | |||
+ | See also: | ||
+ | * http://forums.citrix.com/thread.jspa?threadID=295713&start=15&tstart=0 | ||
+ | * http://forums.citrix.com/thread.jspa?threadID=306400 | ||
+ | * http://support.citrix.com/article/CTX131660 | ||
== Multipathing not complete == | == Multipathing not complete == |