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

Can not found Volume Group. SR Scan failed..


Yongho Kim

Question

Hi, I hava a problem about storage scan. I think I lost my disk.

 

Xenserver Version : v6.2

Disk : 3ea

     1. Local storage1 (uuid = d87cdd6c-d520-1250-637c-a3f42c8da868) , 4.5TB

     2. Local storage2 (uuid = bb66583f-2842-f789-6bc7-527355ce2044) , 4TB

     3. Local storage3 (uuid = 3da04032-e671-c3ae-b5b5-3a5f34b79b0d) , 8TB

 

* Situation

setup disk (Local Storage2) scan fail.. and VM that vdi exist in Local Stroage2 can not run.

 

fdisk -l

image.thumb.png.830dac7d417beaf55764ef4e64ac6c5d.png

 

***** fdisk -l command result *****

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: The size of this disk is 5.0 TB (4994996633600 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sda: 4994.9 GB, 4994996633600 bytes
256 heads, 63 sectors/track, 604901 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      266306  2147483647+  ee  EFI GPT

WARNING: The size of this disk is 4.0 TB (3999999721472 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdb: 3999.9 GB, 3999999721472 bytes
255 heads, 63 sectors/track, 486305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267349  2147480811   83  Linux

Disk /dev/sdc: 8000.9 GB, 8000999784448 bytes
255 heads, 63 sectors/track, 972732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

 

pvscan / lvscan / vgscan

image.thumb.png.c6038abc8ad5f48a4d2b7556517517a3.png

 

***** pvscan/lvscan/vgscan command result *****

[root@bi-first-server ~]# pvscan
  PV /dev/sdc    VG VG_XenStorage-3da04032-e671-c3ae-b5b5-3a5f34b79b0d   lvm2 [7.28 TB / 7.28 TB free]
  PV /dev/sda3   VG VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868   lvm2 [4.50 TB / 413.53 GB free]
  Total: 2 [11.78 TB] / in use: 2 [11.78 TB] / in no VG: 0 [0   ]
[root@bi-first-server ~]#
[root@bi-first-server ~]# lvscan
  ACTIVE            '/dev/VG_XenStorage-3da04032-e671-c3ae-b5b5-3a5f34b79b0d/MGT' [4.00 MB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/MGT' [4.00 MB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-e3ba245f-44e2-46de-b9ed-f814760c7b95' [500.98 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/ISO' [50.00 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-112a6aa7-e890-481f-9cd9-1de74a946467' [500.98 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-c1874a5a-b0fd-41d4-b997-090486b90e1e' [500.98 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-d3325090-17ae-4d38-8765-d59f2663a1dc' [500.98 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-fbb2c8c7-2cb8-4f78-b75b-0ac2a4f7cd37' [60.12 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-c4692035-5095-4f23-91b6-874904f65c9e' [500.98 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-9f3b6b96-8228-42e7-ab00-e02e1dfabb30' [300.59 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-a1010b8f-781b-47a5-85df-8625bc26022d' [200.40 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-5d929ea2-f7fa-4812-921c-888f0318ad42' [200.40 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-e63f732e-6290-4577-bbf5-40ac234961bc' [200.40 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-dddb043f-f298-47b0-88d0-09a2c2fb9e0b' [100.20 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-502a46f6-725e-43ea-875c-9a2c3af27048' [100.20 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-8c3724dd-6895-4df0-b856-16db034e4a72' [100.20 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-e5c101e4-34ed-4dca-9c1b-e89822f1c8e9' [5.16 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-b5a58044-60ef-4d36-b617-dc0403f94a23' [100.20 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-2736fb65-e970-4294-8332-aa3bb1c114fc' [24.05 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-b7c4214a-11bc-479f-8289-e090cf61df6c' [20.05 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-ef40cf8b-9f1c-4332-826e-1cd8252f6a33' [20.05 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-41ab383a-e1ea-4ec1-bef5-be63b18d9a42' [100.20 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-a7adcb30-5b14-4dce-8bc1-7f028a908c2d' [24.05 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-c39e0f14-ed7d-4106-b827-ed53b9a45164' [15.04 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-9d0aa808-a27b-4760-9b03-4e23cfabacf4' [24.05 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-dd045f22-4812-40a3-a47e-324ad1f134a4' [24.05 GB] inherit
  ACTIVE            '/dev/VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868/VHD-2555655f-4d98-4d2b-99f0-7886b03d1c14' [24.05 GB] inherit
[root@bi-first-server ~]#
[root@bi-first-server ~]# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "VG_XenStorage-3da04032-e671-c3ae-b5b5-3a5f34b79b0d" using metadata type lvm2
  Found volume group "VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868" using metadata type lvm2
[root@bi-first-server ~]#

 

xe sr-scan uuid=%Local Storage2 uuid%

image.thumb.png.324a6bb1e39f07b3f7311def15280dcf.png

 

[root@bi-first-server ~]# xe sr-scan uuid=bb66583f-2842-f789-6bc7-527355ce2044
Error code: SR_BACKEND_FAILURE_40
Error parameters: , The SR scan failed  [opterr=Command ['/usr/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-bb66583f-2842-f789-6bc7-527355ce2044'] failed (5): Volume group "VG_XenStorage-bb66583f-2842-f789-6bc7-527355ce2044" not found
  Skipping volume group VG_XenStorage-bb66583f-2842-f789-6bc7-527355ce2044],
[root@bi-first-server ~]#

 

fdisk -l command shows Local Storage2 's disk info but pvscan/lvscan/vgscan does not show about Local Storage2 's info..

sr-scan execution failed too..

 

1. Why Local Storage2 can not scan? fdisk shows Local Storage2 's info..

2. Can I restore about this??

 

PS. I can not reboot my xenserver..

 

Please help.. Please.

 

 

 

Link to comment

4 answers to this question

Recommended Posts

  • 0
13 hours ago, Mark Syms said:

Can you run


xe pbd-list sr-name-label=Local\ Storage2

and check what the device-config property contains? 

 

xe pbd-list sr-name-label="Local storage2"

 

image.thumb.png.035c517d617db39f45f35cb6611bf8ff.png

 

[root@bi-first-server backup]# xe pbd-list sr-name-label="Local storage2"
uuid ( RO)                  : 84ef5b9f-dfe6-489f-8635-d43b02c33a8a
             host-uuid ( RO): 427243ae-90ab-4c04-967c-34192045e709
               sr-uuid ( RO): bb66583f-2842-f789-6bc7-527355ce2044
         device-config (MRO): device: /dev/disk/by-id/scsi-36001e67b0de8400020c2761f0821895c
    currently-attached ( RO): true


[root@bi-first-server backup]#

 

cd /etc/lvm/backup

ls -al

 

image.thumb.png.1da390012de48bc87a3135deedcbf76d.png

[root@bi-first-server backup]# ls -al
total 64
drwx------ 2 root root  4096 Nov  5 17:18 .
drwxr-xr-x 5 root root  4096 Jun 14  2013 ..
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_12696_1669351245
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_12696_1998036839
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_12724_854079905
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_13848_58821930
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_13850_1568442238
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_13851_1910277146
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_13852_1265210434
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_13852_1283023171
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_13874_1130994994
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17334_1033731706
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17336_802324421
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17337_1103504273
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17338_1690268973
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17338_573688584
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17359_26775518
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17960_1041313791
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17962_1694707496
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17963_836960821
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17964_1678546730
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17964_599737035
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_17985_1597524186
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_18898_97663106
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_18929_878224550
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_18943_1024567669
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19002_982626081
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19003_1857645765
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19030_1160152685
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19038_869744330
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19097_1633265717
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19098_1285401132
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19237_2042022500
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19273_244261808
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19281_1786705930
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19340_230221681
-rw------- 1 root root     0 Mar 29  2017 .lvm_bi-first-server_19353_1476208109
-rw------- 1 root root  1338 Nov  5 17:18 VG_XenStorage-3da04032-e671-c3ae-b5b5-3a5f34b79b0d
-rw------- 1 root root  1281 Nov  5 14:28 VG_XenStorage-b490e3e8-ba94-870c-affd-d4d390b45c32
-rw------- 1 root root 18882 Oct 23 16:40 VG_XenStorage-bb66583f-2842-f789-6bc7-527355ce2044
-rw------- 1 root root  1693 Nov  4 15:11 VG_XenStorage-bf62168d-e6c9-7e0a-cf76-821de372530d
-rw------- 1 root root 11035 Oct 23 16:40 VG_XenStorage-d87cdd6c-d520-1250-637c-a3f42c8da868
-rw------- 1 root root  1337 Nov  5 14:38 VG_XenStorage-e61bc13c-971a-58e8-79d9-ad4629b70f9b
-rw------- 1 root root  1292 Nov  5 15:04 VG_XenStorage-ee9dbed5-599d-1038-daff-7f47794c812b
-rw------- 1 root root  1282 Nov  5 14:53 VG_XenStorage-f03a79eb-5196-bb11-fe8c-58925bafa4f8
[root@bi-first-server backup]#

 

I have backup data about Local storage2(VG_XenStorage-bb66583f-2842-f789-6bc7-527355ce2044).

What can I do with this?

 

I really want to restore Local storage2.

 

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