Greetings
I messed up my volume group vg00 and I need help to get it back.
At the moment I’m running on liveCD. However, I managed to mount /boot and /<root>
and chroot.
mint@mint ~ $ sudo mount -t proc none /mnt/opensuse/proc
mint@mint ~ $ sudo mount /dev/sdb2 /mnt/opensuse
mint@mint ~ $ sudo mount /dev/sdb1 /mnt/opensuse/boot
mint@mint ~ $ sudo mount --rbind /sys /mnt/opensuse/sys
mint@mint ~ $ sudo mount --rbind /dev /mnt/opensuse/dev
mint@mint ~ $ sudo chroot /mnt/opensuse /bin/bash
# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/disk/by-id/ata-ST380215A_5QZ0A66D-part3 swap swap defaults 0 0
/dev/disk/by-id/ata-ST380215A_5QZ0A66D-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST380215A_5QZ0A66D-part1 /boot ext4 acl,user_xattr 1 2
/dev/vg00/lv_home /home ext4 acl,user_xattr 1 2
/dev/vg00/lv_felles /mnt/felles ext4 defaults 1 2
/dev/vg00/lv_opt /opt ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
#UUID=23b07c85-4984-4b31-b849-889bcca7874c /boot ext4 defaults 1 2
# cat /proc/partitions
major minor #blocks name
8 0 78150744 sda
8 1 71680 sda1
8 2 12587008 sda2
8 3 2096128 sda3
8 16 244198584 sdb
8 32 488386584 sdc
Here’s some info on the disk.
# fdisk -l
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0x000c33e1
Device Boot Start End Blocks Id System
/dev/sdb1 2048 145407 71680 83 Linux
/dev/sdb2 * 145408 25319423 12587008 83 Linux
/dev/sdb3 25319424 29511679 2096128 82 Linux swap / Solaris
This is what I got about my missing volume group
# vgcfgrestore vg00
Couldn't find device with uuid bf4yVy-k8Ue-V9PI-27V1-JumP-ETLU-J4eeuD.
Cannot restore Volume Group vg00 with 1 PVs marked as missing.
Restore failed.
# vgcfgrestore --debug -l vg00
File: /etc/lvm/archive/vg00_00009.vg
Couldn't find device with uuid bf4yVy-k8Ue-V9PI-27V1-JumP-ETLU-J4eeuD.
VG name: vg00
Description: Created *before* executing '/sbin/vgchange -a y'
Backup Time: Sun Oct 3 15:13:16 2010
File: /etc/lvm/archive/vg00_00010.vg
VG name: vg00
Description: Created *before* executing '/sbin/vgscan --mknodes'
Backup Time: Sun Oct 3 15:30:30 2010
File: /etc/lvm/archive/vg00_00011.vg
Couldn't find device with uuid jZ14c5-MvJg-p8gA-uHsH-MVeD-Uys4-vdnrMr.
Couldn't find device with uuid NTBLZP-ygYG-4qYF-29W9-kUgM-CO1w-8uLXLB.
VG name: vg00
Description: Created *before* executing '/sbin/vgscan --mknodes'
Backup Time: Sun Oct 3 15:30:30 2010
File: /etc/lvm/archive/vg00_00012.vg
VG name: vg00
Description: Created *before* executing '/sbin/vgscan --mknodes'
Backup Time: Sun Oct 3 15:30:31 2010
File: /etc/lvm/archive/vg00_00013.vg
VG name: vg00
Description: Created *before* executing '/sbin/vgscan --mknodes'
Backup Time: Sun Oct 3 15:30:31 2010
File: /etc/lvm/archive/vg00_00014.vg
VG name: vg00
Description: Created *before* executing '/sbin/vgchange -a y'
Backup Time: Sun Oct 3 15:30:31 2010
File: /etc/lvm/archive/vg00_00015.vg
VG name: vg00
Description: Created *before* executing '/sbin/vgchange -a y'
Backup Time: Sun Oct 3 15:30:31 2010
File: /etc/lvm/archive/vg00_00016.vg
VG name: vg00
Description: Created *before* executing '/sbin/vgchange -a y'
Backup Time: Sun Oct 3 15:30:32 2010
File: /etc/lvm/archive/vg00_00017.vg
VG name: vg00
Description: Created *before* executing '/sbin/vgchange -a y'
Backup Time: Sun Oct 3 15:30:32 2010
File: /etc/lvm/archive/vg00_00018.vg
VG name: vg00
Description: Created *before* executing '/sbin/lvextend -l +1280 /dev/vg00/lv_opt'
Backup Time: Sun Sep 11 12:35:13 2011
File: /etc/lvm/backup/vg00
VG name: vg00
Description: Created *after* executing '/sbin/lvextend -l +1280 /dev/vg00/lv_opt'
Backup Time: Sun Sep 11 12:35:13 2011
# vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while...
Finding all volume groups
No volume groups found
# pvscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
No matching physical volumes found
# pvs -o +uuid
# lvs -o +devices
If I do a "pvcreate - … " will I loose/overwrite/destroy the volume group config already in /etc/lvm2?
What options should I use?
What’s next step?
Any suggestions on how I can get LVM to recognize my vg00?