VMs cannot be started due to Volume Group not found.

ASap

Renowned Member
Hi, I would like to ask:

I've done rebooting my server and some of my VMs cannot be started because:

Volume group "wd1" not found
TASK ERROR: can't activate LV '/dev/wd1/vm-101-disk-2': Skipping volume group wd1


How do I fix this issue?

Code:
root@eden:~# pvesm status
local    dir 1       332616080       250200268        82415812 75.72%
vms      lvm 1       488382464               0       452730880 0.50%
wd1      lvm 0               0               0               0 100.00%
wd2      lvm 0               0               0               0 100.00%
root@eden:~# pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sda2  pve  lvm2 a--  465.26g  15.99g
  /dev/sdb1  vms  lvm2 a--  465.76g 431.76g
root@eden:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vms" using metadata type lvm2
  Found volume group "pve" using metadata type lvm2
root@eden:~# vgs
  VG   #PV #LV #SN Attr   VSize   VFree
  pve    1   3   0 wz--n- 465.26g  15.99g
  vms    1   2   0 wz--n- 465.76g 431.76g
root@eden:~#
 
Hi,
looks like, that the device(s), which contained the vg wd1 are not available?!
How this devices are connected? At this time you only have two disks (sda with boot+pve and sdb with vms).

what is the output of following command?
Code:
cat /etc/lvm/backup/wd1
Udo
 
Hi,
looks like, that the device(s), which contained the vg wd1 are not available?!
How this devices are connected? At this time you only have two disks (sda with boot+pve and sdb with vms).

what is the output of following command?
Code:
cat /etc/lvm/backup/wd1
Udo

The hdd is connected through a SATA cable.

Thanks Udo, the output is like this:

Code:
root@eden:~# cat /etc/lvm/backup/wd1
# Generated by LVM2 version 2.02.98(2) (2012-10-15): Thu Oct  3 22:28:22 2013

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing 'vgcfgbackup'"

creation_host = "eden"  # Linux eden 2.6.32-19-pve #1 SMP Tue Apr 2 12:22:11 CES                                                                                                                                                             T 2013 x86_64
creation_time = 1380814102      # Thu Oct  3 22:28:22 2013

wd1 {
        id = "g4xU65-nkW4-lPXp-Fey9-dxk3-TQr0-6Re4x9"
        seqno = 6
        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 = "kceT1t-cUh2-lbau-SKrV-BNpN-RdnF-Mmus0k"
                        device = "/dev/sdc1"    # Hint only

                        status = ["ALLOCATABLE"]
                        flags = []
                        dev_size = 976768002    # 465.759 Gigabytes
                        pe_start = 2048
                        pe_count = 119234       # 465.758 Gigabytes
                }
        }

        logical_volumes {

                vm-110-disk-1 {
                        id = "QqTNKO-nEHl-KKpX-Vqy6-d0C1-OwQ7-rk1aFU"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-110"]
                        creation_host = "eden"
                        creation_time = 1370669455      # 2013-06-08 12:30:55 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 8192     # 32 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 0
                                ]
                        }
                }

                vm-101-disk-1 {
                        id = "ZrdddI-0utL-n6Te-VNuQ-fUvA-Iwb3-QMlpBb"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-101"]
                        creation_host = "eden"
                        creation_time = 1373187191      # 2013-07-07 15:53:11 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 6144     # 24 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 8192
                                ]
                        }
                }

                vm-101-disk-2 {
                        id = "3vPTbo-35nn-9J5C-cwMu-CpPq-5Zo0-ShEE5t"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-101"]
                        creation_host = "eden"
                        creation_time = 1373187192      # 2013-07-07 15:53:12 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 51200    # 200 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 14336
                                ]
                        }
                }

                vm-101-disk-3 {
                        id = "YWYoGo-xJlp-WB9O-2Hb0-WyOH-zjfu-NCDEsk"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-101"]
                        creation_host = "eden"
                        creation_time = 1373187192      # 2013-07-07 15:53:12 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 6144     # 24 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 65536
                                ]
                        }
                }

                vm-104-disk-1 {
                        id = "PN5FZS-FcdS-MH76-cBdI-qo4L-tyCE-fGkM2C"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-104"]
                        creation_host = "eden"
                        creation_time = 1373684715      # 2013-07-13 10:05:15 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 6144     # 24 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 71680
                                ]
                        }
                }
        }
}
root@eden:~#
 
The hdd is connected through a SATA cable.

Thanks Udo, the output is like this:

Code:
root@eden:~# cat /etc/lvm/backup/wd1
# Generated by LVM2 version 2.02.98(2) (2012-10-15): Thu Oct  3 22:28:22 2013

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing 'vgcfgbackup'"

creation_host = "eden"  # Linux eden 2.6.32-19-pve #1 SMP Tue Apr 2 12:22:11 CES                                                                                                                                                             T 2013 x86_64
creation_time = 1380814102      # Thu Oct  3 22:28:22 2013

wd1 {
        id = "g4xU65-nkW4-lPXp-Fey9-dxk3-TQr0-6Re4x9"
        seqno = 6
        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 = "kceT1t-cUh2-lbau-SKrV-BNpN-RdnF-Mmus0k"
                        device = "/dev/sdc1"    # Hint only

                        status = ["ALLOCATABLE"]
                        flags = []
                        dev_size = 976768002    # 465.759 Gigabytes
                        pe_start = 2048
                        pe_count = 119234       # 465.758 Gigabytes
                }
        }

        logical_volumes {

                vm-110-disk-1 {
                        id = "QqTNKO-nEHl-KKpX-Vqy6-d0C1-OwQ7-rk1aFU"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-110"]
                        creation_host = "eden"
                        creation_time = 1370669455      # 2013-06-08 12:30:55 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 8192     # 32 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 0
                                ]
                        }
                }

                vm-101-disk-1 {
                        id = "ZrdddI-0utL-n6Te-VNuQ-fUvA-Iwb3-QMlpBb"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-101"]
                        creation_host = "eden"
                        creation_time = 1373187191      # 2013-07-07 15:53:11 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 6144     # 24 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 8192
                                ]
                        }
                }

                vm-101-disk-2 {
                        id = "3vPTbo-35nn-9J5C-cwMu-CpPq-5Zo0-ShEE5t"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-101"]
                        creation_host = "eden"
                        creation_time = 1373187192      # 2013-07-07 15:53:12 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 51200    # 200 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 14336
                                ]
                        }
                }

                vm-101-disk-3 {
                        id = "YWYoGo-xJlp-WB9O-2Hb0-WyOH-zjfu-NCDEsk"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-101"]
                        creation_host = "eden"
                        creation_time = 1373187192      # 2013-07-07 15:53:12 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 6144     # 24 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 65536
                                ]
                        }
                }

                vm-104-disk-1 {
                        id = "PN5FZS-FcdS-MH76-cBdI-qo4L-tyCE-fGkM2C"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        tags = ["pve-vm-104"]
                        creation_host = "eden"
                        creation_time = 1373684715      # 2013-07-13 10:05:15 +0                                                                                                                                                             700
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 6144     # 24 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 71680
                                ]
                        }
                }
        }
}
root@eden:~#
Hi,
like wrote before - your third disk isn't available.
You can look with following commands for info/error-messages
Code:
dmesg | egrep "scsi|sd"
fdisk -l
Is the disk running? If you don't see the third disk you can try an power-cycle (better switch off and after 10 sec. on again).

Udo
 
Hi,
like wrote before - your third disk isn't available.
You can look with following commands for info/error-messages
Code:
dmesg | egrep "scsi|sd"
fdisk -l
Is the disk running? If you don't see the third disk you can try an power-cycle (better switch off and after 10 sec. on again).

Udo

Below is the output of dmesg & fdisk command:

Code:
root@eden:~# dmesg |egrep "scsi|sd"
scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci
scsi4 : ahci
scsi5 : ahci
scsi 0:0:0:0: Direct-Access     ATA      WDC WD5002AALX-0 15.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO                                                                                                                                                              or FUA
 sda:
scsi 1:0:0:0: Direct-Access     ATA      WDC WD5002AALX-0 15.0 PQ: 0 ANSI: 5
sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO                                                                                                                                                              or FUA
 sdb: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
 sdb1
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): mounted filesystem with ordered data mode
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
iscsi: registered transport (tcp)
iscsi: registered transport (iser)
root@eden:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000caa94

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1048575      523264   83  Linux
/dev/sda2         1048576   976773119   487862272   8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb0639cca

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63   976768064   488384001   8e  Linux LVM

Disk /dev/mapper/pve-root: 103.1 GB, 103079215104 bytes
255 heads, 63 sectors/track, 12532 cylinders, total 201326592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-root doesn't contain a valid partition table

Disk /dev/mapper/vms-vm--201--disk--1: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aa6af

                            Device Boot      Start         End      Blocks   Id                                                                                                                                                               System
/dev/mapper/vms-vm--201--disk--1p1   *        2048      194559       96256   83                                                                                                                                                               Linux
/dev/mapper/vms-vm--201--disk--1p2          194560    20506623    10156032   83                                                                                                                                                               Linux
/dev/mapper/vms-vm--201--disk--1p3        20506624    20969471      231424   82                                                                                                                                                               Linux swap / Solaris

Disk /dev/mapper/pve-swap: 33.3 GB, 33285996544 bytes
255 heads, 63 sectors/track, 4046 cylinders, total 65011712 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-swap doesn't contain a valid partition table

Disk /dev/mapper/pve-data: 346.0 GB, 346030080000 bytes
255 heads, 63 sectors/track, 42069 cylinders, total 675840000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-data doesn't contain a valid partition table
root@eden:~#
 
Below is the output of dmesg & fdisk command:

Code:
root@eden:~# dmesg |egrep "scsi|sd"
...
scsi 0:0:0:0: Direct-Access     ATA      WDC WD5002AALX-0 15.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
...
scsi 1:0:0:0: Direct-Access     ATA      WDC WD5002AALX-0 15.0 PQ: 0 ANSI: 5
sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
...
Two hdds only.
Check HDD, cable, sata-port (change, or take another).

Udo
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!