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

VG corrupted / vgcfgrestore Couldn't find device with uuid


Robin Peeten

Question

When trying to make a snapshot of a VM It failed and after that the VDI was not available.

I could not start any VM or extract the ones that were shut down. after shutting all the VMs down and rebooting the server the local storage was broken and detached.

vgscan and lvscan both give the same result

  Metadata location on /dev/sda3 at 274944 begins with invalid VG name.
  Failed to read metadata summary from /dev/sda3
  Failed to scan VG from /dev/sda3

I tried to revert to a backup with the file generated from the backup tool in xencenter. I encountered no problem uploading the backup and completing the restore with a usb with the instalation.
But it did not fix the issue.

 

Luckily I also have a backup of the VG but when trying to restore it I get the following.

[root@citrix-s1 /]# vgcfgrestore --test --file  /etc/lvm/backup/VG_XenStorage-5080d657-28dc-262e-e379-b51903e53792 VG_XenStorage-5080d657-28dc-262e-e379-b51903e53792
  TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated.
  Metadata location on /dev/sda3 at 274944 begins with invalid VG name.
  Failed to read metadata summary from /dev/sda3
  Failed to scan VG from /dev/sda3
  Couldn't find device with uuid 5aHd2g-Iqyy-CSSt-96D0-AXts-O5h0-SXYTr0.
  Cannot restore Volume Group VG_XenStorage-5080d657-28dc-262e-e379-b51903e53792 with 1 PVs marked as missing.
  Restore failed.

When using the blkid command I can see sda3 listed with the correct uuid

[root@citrix-s1 /]# sudo blkid
/dev/sda1: LABEL="root-dkziqw" UUID="2068f1cd-7b7b-48ba-b0dd-a5760d5320c8" TYPE="ext3" PARTUUID="aed925cd-0b1e-41fc-91d3-a59d1dbb8a5a"
/dev/sda2: UUID="e3385bf6-bdba-46d0-a47f-f2d04a5d5488" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="aea6d708-a08c-425f-8deb-b3dd24ec4568"
/dev/sda3: UUID="5aHd2g-Iqyy-CSSt-96D0-AXts-O5h0-SXYTr0" TYPE="LVM2_member" PARTUUID="9ca911b3-eb82-470e-b63c-89a5e674407e"
/dev/sda5: LABEL="logs-dkziqw" UUID="6a0cfd07-d941-4dec-8da1-f292d1d465cc" TYPE="ext3" PARTUUID="28e8421f-8344-4243-8654-f36137047136"
/dev/sda6: LABEL="swap-dkziqw" UUID="5b20aa15-3396-4a90-a221-496dc074558a" TYPE="swap" PARTUUID="288b6982-40e8-427f-b111-9e613dd214b8"
/dev/sda4: PARTUUID="bb326445-5ec0-462c-a134-c3dce4bd9e4e"

So I don't know what is going wrong here or how to fix it.

I'm not too experienced with all this so sorry for any ignorance.

Content of VG backup:

# Generated by LVM2 version 2.02.180(2)-RHEL7 (2018-07-20): Fri Sep 18 23:17:34 2020

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing '/sbin/lvcreate -n clone_a478a99e-974a-442e-820b-2ec05b1a56d7_1 -L 4 VG_XenStorage-5080d657-28dc-262e-e379-b51903e53792 --addtag journaler -W n'"

creation_host = "citrix-s1"	# Linux citrix-s1 4.19.0+1 #1 SMP Fri Jun 12 09:44:22 UTC 2020 x86_64
creation_time = 1600463854	# Fri Sep 18 23:17:34 2020

VG_XenStorage-5080d657-28dc-262e-e379-b51903e53792 {
	id = "AROmnl-MkAS-H3UZ-aYJm-0FSK-uIMy-3EpNPR"
	seqno = 55
	format = "lvm2"			# informational
	status = ["RESIZEABLE", "READ", "WRITE"]
	flags = []
	extent_size = 8192		# 4 Megabytes
	max_lv = 0
	max_pv = 0
	metadata_copies = 0

	physical_volumes {

		pv0 {
			id = "5aHd2g-Iqyy-CSSt-96D0-AXts-O5h0-SXYTr0"
			device = "/dev/sda3"	# Hint only

			status = ["ALLOCATABLE"]
			flags = []
			dev_size = 2725877391	# 1.26934 Terabytes
			pe_start = 23320
			pe_count = 332745	# 1.26932 Terabytes
		}
	}

	logical_volumes {

		MGT {
			id = "8gSVBP-e2Xx-56qc-5RjZ-UXUz-rMEG-9ihT6K"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1597059271	# 2020-08-10 13:34:31 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 1	# 4 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 0
				]
			}
		}

		VHD-edc8550b-a73a-4541-915c-38f19b01e2fd {
			id = "h243hq-It5b-hrco-OkSv-bbKr-qCQq-edKCfD"
			status = ["READ", "VISIBLE"]
			flags = []
			creation_time = 1597059975	# 2020-08-10 13:46:15 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2373	# 9.26953 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 1
				]
			}
		}

		VHD-2a374f97-c18b-4302-9b17-2ae8b250af70 {
			id = "qB2CQm-sONY-Rh30-Wjnc-7LpG-6LDx-I2x2nW"
			status = ["READ", "VISIBLE"]
			flags = []
			creation_time = 1597061990	# 2020-08-10 14:19:50 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 1014	# 3.96094 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 12829
				]
			}
		}

		VHD-a68b8853-1706-41f3-a839-a6c4eb7e62e1 {
			id = "84hCFF-4zUz-L5FW-E0s2-lozR-WJ12-kKsftG"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1597061991	# 2020-08-10 14:19:51 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2	# 8 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 2374
				]
			}
		}

		VHD-97480b08-90ba-48f3-849b-d2aa79970650 {
			id = "MKAlrj-22DK-uc05-auNV-PCCz-10Hh-1wR6Jo"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1597063385	# 2020-08-10 14:43:05 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 12827	# 50.1055 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 13843
				]
			}
		}

		VHD-d2e2bb44-7ea2-4af1-b0a9-6f10c7002e59 {
			id = "0LFNED-wYwj-oxdY-l98g-g6eT-pICR-aKhsGj"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1597063385	# 2020-08-10 14:43:05 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2	# 8 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 2377
				]
			}
		}

		VHD-75208b6b-cbaa-4668-8352-7b02dffc182f {
			id = "5waZip-LfwD-W86g-65K3-P5cv-Qayh-pflJV9"
			status = ["READ", "VISIBLE"]
			flags = []
			creation_time = 1597242815	# 2020-08-12 16:33:35 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 790	# 3.08594 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 2379
				]
			}
		}

		VHD-b1830787-7b07-4a13-b740-7cf0f0b44529 {
			id = "zu0F5u-Hf2o-T3z6-k7IY-BbyB-EYYo-PRHT3v"
			status = ["READ", "VISIBLE"]
			flags = []
			creation_time = 1597242971	# 2020-08-12 16:36:11 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2500	# 9.76562 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 26670
				]
			}
		}

		VHD-478029fc-94b5-42ea-b375-6425434050c4 {
			id = "sDthLq-6vh0-AxOe-g8pX-AYvf-58h8-LXEPC5"
			status = ["READ", "VISIBLE"]
			flags = []
			creation_time = 1597442725	# 2020-08-15 00:05:25 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 1341	# 5.23828 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 4946
				]
			}
		}

		VHD-5a285f8f-8b23-4884-8e47-5b0287f50c4d {
			id = "52Sp1G-Cw6T-TVeW-VEIq-7Gdl-SQLx-PMO84b"
			status = ["READ", "VISIBLE"]
			flags = []
			creation_time = 1597486056	# 2020-08-15 12:07:36 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 565	# 2.20703 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 39497
				]
			}
		}

		VHD-65568c9f-bd4f-414e-b0f1-efb007e63403 {
			id = "StrpfV-q1kg-IuSJ-ilt1-mX3Z-x6j1-4dDGBO"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1597670189	# 2020-08-17 15:16:29 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 25652	# 100.203 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 65149
				]
			}
		}

		VHD-a67bc6a9-3583-4749-88fa-59d8f763c345 {
			id = "dfloAz-Nzve-85iO-Y6h2-keld-Kv0d-c3yOVx"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1597695921	# 2020-08-17 22:25:21 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 128252	# 500.984 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 90801
				]
			}
		}

		VHD-a478a99e-974a-442e-820b-2ec05b1a56d7 {
			id = "aitkoS-oiOE-cpEt-8Um6-4rIy-2RUi-Pu35x0"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1599330544	# 2020-09-05 20:29:04 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 5132	# 20.0469 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 7513
				]
			}
		}

		VHD-efa4cc02-7a4b-4147-8910-88184047a8e7 {
			id = "vooynB-QxJU-1yDd-YsPO-19fH-E9F8-2EQ8Yl"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463831	# 2020-09-18 23:17:11 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2567	# 10.0273 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 219053
				]
			}
		}

		VHD-61e11248-f13c-46f4-94f2-f4c858bfb8bc {
			id = "vf3lnW-33hq-EpMe-0YzX-fg4Y-MHfE-8yTqcc"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463831	# 2020-09-18 23:17:11 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2	# 8 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 12645
				]
			}
		}

		VHD-12018f19-f4ac-48b4-a072-1fd3df94df6a {
			id = "oBzBYl-jQA8-1ent-s1st-QzWj-i9Wh-2oWkIY"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463837	# 2020-09-18 23:17:17 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 12827	# 50.1055 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 221620
				]
			}
		}

		VHD-ae32a432-6113-42eb-8f32-0d353bc36f1b {
			id = "4TUe86-PZBj-kos1-t3Jw-QDAd-dfCY-r6DH10"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463837	# 2020-09-18 23:17:17 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2	# 8 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 12647
				]
			}
		}

		VHD-9e2c3141-09f3-407c-bf27-9fe2de8b46ca {
			id = "ARTMLh-sGwx-dxYk-OWI4-ynlg-ADSk-mpX4ef"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463844	# 2020-09-18 23:17:24 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 25652	# 100.203 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 234447
				]
			}
		}

		VHD-bd678935-70a3-448a-a6f7-acb1b441209c {
			id = "Q404XP-XLxX-QAlG-136E-BiZI-PeV4-db4RD2"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463844	# 2020-09-18 23:17:24 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2	# 8 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 12649
				]
			}
		}

		VHD-c2984a19-36d0-42fa-a0d6-5a4681e25a5d {
			id = "q3b6kT-KSWJ-Qk3L-xurQ-1s9L-XMUH-27wEqE"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463850	# 2020-09-18 23:17:30 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2567	# 10.0273 Gigabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 29170
				]
			}
		}

		VHD-0e9935fd-79ee-4b81-93ab-1faacd2e973c {
			id = "Gx8GBV-H0fd-z2Af-HC3K-Ej1t-bM7m-2kddf9"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			creation_time = 1600463850	# 2020-09-18 23:17:30 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 2	# 8 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 12651
				]
			}
		}

		clone_a478a99e-974a-442e-820b-2ec05b1a56d7_1 {
			id = "BdtOcZ-N7SC-L1oO-KYuO-4dYa-V1Wz-2Qzkrs"
			status = ["READ", "WRITE", "VISIBLE"]
			flags = []
			tags = ["journaler"]
			creation_time = 1600463854	# 2020-09-18 23:17:34 +0200
			creation_host = "citrix-s1"
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 1	# 4 Megabytes

				type = "striped"
				stripe_count = 1	# linear

				stripes = [
					"pv0", 2376
				]
			}
		}
	}

}

 

Link to comment

2 answers to this question

Recommended Posts

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