I'm affraid i messed up my LVM. and some other things.
Allthough the system boots fine, i have a few errors during the boot process:
First, just before the GRUB-menu comes up, in a split-second i get 3 errors:
- Code: Select all
Error: no such device e0cd82fb-e034-40f6-b4a8-a9f8cfe46084
Error: physical volume pv0 not found
Error: no suitable mode found
Then, when booting the system, half-way i get these errors:
- Code: Select all
* Setting up the Logical Volume Manager ...
WARNING: Duplicate VG name vg_bwginc: Existing JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
Couldn't find device with uuid jerfok-tddZ-YH03-Viz4-29Tv-u5nv-7Xk6dh.
WARNING: Duplicate VG name vg_bwginc: Existing JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
WARNING: Duplicate VG name vg_bwginc: Existing JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
WARNING: Duplicate VG name vg_bwginc: Existing JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
WARNING: Duplicate VG name vg_bwginc: Existing JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
WARNING: Duplicate VG name vg_bwginc: JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
WARNING: Duplicate VG name vg_bwginc: JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
Refusing activation of partial LV lv_root. Use --partial to override.
Refusing activation of partial LV lv_swap. Use --partial to override.
Refusing activation of partial LV lv_home. Use --partial to override.
* Failed to setup the LVM
[ !! ]
* ERROR: lvm failed to start
Now, i already know what i did wrong.,
My Sabayon installation sits on /dev/sdd and consists of
/dev/sdd1 --> /boot
and
/dev/sdd2 --> LVM (vg_bwginc-lv_root, vg_bwginc-lv_swap, vg_bwginc-lv_home)
I had some free space on /dev/sdb2, and wanted it to be part of vg_bwginc Volume Group.
so, with fdisk, i changed the partition type to LVM (0x8e) and did the following:
- Code: Select all
# pvcreate /dev/sdb2
# vgcreate -s 16M vg_bwginc /dev/sdb2
# lvcreate -l 100%FREE -n lv_storage vg_bwginc
# mkreiserfs /dev/vg_bwginc/lv_storage
I created a mountpoint, and add an entry in /etc/fstab
with the logical continuation that now i have a Duplicate VG name. (which produces the error),
Instead of adding the new partition to the Volume Group, with the "vgextend" command.
My question is:
is there a way to repair this mess, without loosing/moving data,
or would it be better to backup the new partition, revert everything, and start over again. (the right way)
thanks in advance...
Some details / logs :
rc.log:
- Code: Select all
rc boot logging started at Wed Feb 22 11:34:20 2012
* Setting system clock using the hardware clock [UTC] ...
[ ok ]
* Loading module vboxdrv ...
[ ok ]
* Loading module vboxnetflt ...
[ ok ]
* Loading module vboxnetadp ...
[ ok ]
* Autoloaded 3 module(s)
* Setting up the Logical Volume Manager ...
WARNING: Duplicate VG name vg_bwginc: xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B (created here) takes precedence over JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh
Couldn't find device with uuid jerfok-tddZ-YH03-Viz4-29Tv-u5nv-7Xk6dh.
WARNING: Duplicate VG name vg_bwginc: xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B (created here) takes precedence over JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh
WARNING: Duplicate VG name vg_bwginc: xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B (created here) takes precedence over JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh
WARNING: Duplicate VG name vg_bwginc: xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B (created here) takes precedence over JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh
WARNING: Duplicate VG name vg_bwginc: xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B (created here) takes precedence over JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh
Refusing activation of partial LV lv_root. Use --partial to override.
Refusing activation of partial LV lv_swap. Use --partial to override.
Refusing activation of partial LV lv_home. Use --partial to override.
* Failed to setup the LVM
[ !! ]
* ERROR: lvm failed to start
* Setting up dm-crypt mappings ...
[ ok ]
* Checking local filesystems ...
Reiserfs super block in block 16 on 0xfb00 of format 3.6 with standard journal
Blocks (total/free): 6553600/4490807 by 4096 bytes
Filesystem is clean
/dev/sdd1: schoon, 252/128016 bestanden, 47952/512000 blokken
Reiserfs super block in block 16 on 0xfb02 of format 3.6 with standard journal
Blocks (total/free): 22093824/19099045 by 4096 bytes
Filesystem is clean
[ ok ]
* Remounting root filesystem read/write ...
[ ok ]
* Updating /etc/mtab ...
[ ok ]
* Mounting local filesystems ...
[ ok ]
* Configuring kernel parameters ...
[ ok ]
* Creating user login records ...
[ ok ]
* Cleaning /var/run ...
[ ok ]
* Wiping /tmp directory ...
[ ok ]
* Setting terminal encoding [UTF-8] ...
[ ok ]
* Setting console font [LatArCyrHeb-16] ...
[ ok ]
* Starting D-BUS system messagebus ...
[ ok ]
* Starting ConsoleKit daemon ...
[ ok ]
* Setting framebuffer console images ...
[ ok ]
* Configuring GPU Hardware Acceleration and Input devices for the first time ...
[ ok ]
* Setting hostname to bwg-inc ...
[ ok ]
* Setting keyboard mode [UTF-8] ...
[ ok ]
* Loading key mappings [us-acentos] ...
[ ok ]
* Bringing up interface lo
* 127.0.0.1/8 ...
[ ok ]
* Adding routes
* 127.0.0.0/8 via 127.0.0.1 ...
[ ok ]
* Mounting USB device filesystem [usbfs] ...
[ ok ]
* Mounting misc binary format filesystem ...
[ ok ]
* Loading custom binary format handlers ...
[ ok ]
* Setting up kdm ...
[ ok ]
rc boot logging stopped at Wed Feb 22 11:34:29 2012
lvdisplay /dev/vg_bwginc:
- Code: Select all
File descriptor 7 (/dev/nvidiactl) leaked on lvdisplay invocation. Parent PID 9163: bash
File descriptor 9 (/dev/nvidia0) leaked on lvdisplay invocation. Parent PID 9163: bash
File descriptor 10 (/dev/nvidia0) leaked on lvdisplay invocation. Parent PID 9163: bash
File descriptor 11 (/dev/nvidia0) leaked on lvdisplay invocation. Parent PID 9163: bash
File descriptor 12 (/dev/nvidia0) leaked on lvdisplay invocation. Parent PID 9163: bash
WARNING: Duplicate VG name vg_bwginc: Existing JPWtLh-sgii-9eZf-KpdR-qFFa-nFL0-Vmxtyh (created here) takes precedence over xhgPzS-5bDP-oKBv-MH5p-Xj86-aZck-eb4C0B
Couldn't find device with uuid jerfok-tddZ-YH03-Viz4-29Tv-u5nv-7Xk6dh.
--- Logical volume ---
LV Name /dev/vg_bwginc/lv_root
VG Name vg_bwginc
LV UUID E1afu4-rZtH-lefs-cMxB-VPSn-x5ej-4T6Oye
LV Write Access read/write
LV Status NOT available
LV Size 24,62 GiB
Current LE 788
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/vg_bwginc/lv_swap
VG Name vg_bwginc
LV UUID vkpmsb-vHfK-ujYv-lqtu-NUOz-Bs10-3cHO1C
LV Write Access read/write
LV Status NOT available
LV Size 1,00 GiB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/vg_bwginc/lv_home
VG Name vg_bwginc
LV UUID xiCVFZ-XgEI-pTc8-DFVk-2miE-fCTb-okeNoj
LV Write Access read/write
LV Status NOT available
LV Size 85,66 GiB
Current LE 2741
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/vg_bwginc/lv_storage
VG Name vg_bwginc
LV UUID agP5gl-CnD5-4xlU-UgoZ-HQKD-tvmd-ofg6fE
LV Write Access read/write
LV Status available
# open 2
LV Size 233,75 GiB
Current LE 7480
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:3
blkid:
- Code: Select all
/dev/sda1: LABEL="crunch-boot" UUID="ea4eee32-bf68-43e0-a9a7-326f5078f72b" TYPE="ext2"
/dev/sda3: LABEL="crunch-root" UUID="8f805f9c-1b38-4c26-9cb7-93a66b6677d1" TYPE="ext4"
/dev/sda5: LABEL="server" UUID="2B6222C8773C27C3" TYPE="ntfs"
/dev/sda6: UUID="a1d2637c-da32-4261-b675-3a22903f3490" TYPE="swap"
/dev/sdb1: UUID="49NQ2g-ukT2-cKT5-HL95-WG1m-dqc3-LfZcb5" TYPE="LVM2_member"
/dev/sdc1: LABEL="Se7en" UUID="F428B13C28B0FEA4" TYPE="ntfs"
/dev/sdc2: LABEL="backup" UUID="8834A97F34A970BC" TYPE="ntfs"
/dev/sdc3: LABEL="crunch-home" UUID="81ffd1c8-f44f-4bf7-ae2d-2b0927245bcc" TYPE="ext4"
/dev/sdd2: UUID="CsDxgc-RrAN-XxOi-K94l-sUqb-V88c-rT0JwG" TYPE="LVM2_member"
/dev/sdd1: UUID="df1146ad-c5a8-41a3-a6b6-fd65e68aab58" TYPE="ext4"
/dev/mapper/vg_bwginc-lv_root: UUID="e0cd82fb-e034-40f6-b4a8-a9f8cfe46084" TYPE="reiserfs"
/dev/mapper/vg_bwginc-lv_swap: UUID="c07a20c9-f790-4e02-aa52-a8b1d5ef4565" TYPE="swap"
/dev/mapper/vg_bwginc-lv_home: UUID="16f770c8-5e95-43ed-9c84-0ce6f48c4bee" TYPE="reiserfs"
/dev/mapper/vg_bwginc-lv_storage: UUID="1f88b67d-80ee-4934-a52d-873dfea58b17" TYPE="reiserfs"
/etc/fstab:
- Code: Select all
# /etc/fstab
# Created by anaconda on Wed Feb 15 01:38:00 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
# UUID/dev mount point type opts pass/dump
# -------------------------------------------------------------------------------------------------------------------------
/dev/mapper/vg_bwginc-lv_root / reiserfs defaults,notail 1 1
UUID=df1146ad-c5a8-41a3-a6b6-fd65e68aab58 /boot ext4 defaults 1 2
/dev/mapper/vg_bwginc-lv_home /home reiserfs defaults,notail 1 2
/dev/mapper/vg_bwginc-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
tmp /tmp tmpfs rw,mode=1777 0 0
vartmp /var/tmp tmpfs rw,mode=1777 0 0
/dev/sda5 /media/server ntfs-3g defaults 0 0
/dev/sdc1 /media/Se7en ntfs-3g defaults 0 0
/dev/sdc2 /media/backup ntfs-3g defaults 0 0
/dev/sda1 /media/crunch-boot ext2 defaults 0 0
/dev/sdc3 /media/crunch-home ext4 defaults 0 0
/dev/sda3 /media/crunch-root ext4 defaults 0 0
/dev/mapper/vg_bwginc-lv_storage /media/backup/films2 reiserfs defaults,notail 0 0
grub.cfg:
- Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod lvm
insmod part_msdos
insmod reiserfs
set root='(vg_bwginc-lv_root)'
search --no-floppy --fs-uuid --set=root e0cd82fb-e034-40f6-b4a8-a9f8cfe46084
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
load_video
# vga= is deprecated, grub2 handles this just fine
# making grub2 res == linux fb res
set gfxpayload=keep
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd3,msdos1)'
search --no-floppy --fs-uuid --set=root df1146ad-c5a8-41a3-a6b6-fd65e68aab58
set locale_dir=($root)/grub/locale
set lang=nl_NL
insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
set timeout=1
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_distro_theme ###
insmod part_msdos
insmod ext2
set root='(hd3,msdos1)'
search --no-floppy --fs-uuid --set=root df1146ad-c5a8-41a3-a6b6-fd65e68aab58
insmod png
if background_image /grub/default-splash.png ; then
set color_normal=white/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_distro_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd3,msdos1)'
search --no-floppy --fs-uuid --set=root df1146ad-c5a8-41a3-a6b6-fd65e68aab58
echo 'Loading Linux x86_64-3.2.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.2.0-sabayon ro init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet domdadm resume=swap:/dev/mapper/vg_bwginc-lv_swap real_resume=/dev/mapper/vg_bwginc-lv_swap dolvm root=/dev/mapper/vg_bwginc-lv_root docrypt
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.2.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd3,msdos1)'
search --no-floppy --fs-uuid --set=root df1146ad-c5a8-41a3-a6b6-fd65e68aab58
echo 'Loading Linux x86_64-3.2.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.2.0-sabayon ro single init_opts=single init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet domdadm resume=swap:/dev/mapper/vg_bwginc-lv_swap real_resume=/dev/mapper/vg_bwginc-lv_swap dolvm root=/dev/mapper/vg_bwginc-lv_root docrypt
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.2.0-sabayon
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "CrunchBang Linux, with Linux 2.6.39-bpo.2-amd64 (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root ea4eee32-bf68-43e0-a9a7-326f5078f72b
linux /vmlinuz-2.6.39-bpo.2-amd64 root=UUID=8f805f9c-1b38-4c26-9cb7-93a66b6677d1 ro quiet splash
initrd /initrd.img-2.6.39-bpo.2-amd64
}
menuentry "CrunchBang Linux, with Linux 2.6.39-bpo.2-amd64 (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root ea4eee32-bf68-43e0-a9a7-326f5078f72b
linux /vmlinuz-2.6.39-bpo.2-amd64 root=UUID=8f805f9c-1b38-4c26-9cb7-93a66b6677d1 ro single
initrd /initrd.img-2.6.39-bpo.2-amd64
}
menuentry "MicroSNOT WindHOOS 7 (loader) (on /dev/sdc1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set=root F428B13C28B0FEA4
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
