Summary: | sys-fs/lvm2-2.02.99-r2 with linux-3.10.10 and without udev - 'lvcreate -Z y -v -L 12G -n var vg0', /dev/vg0/var: not found: device not cleared | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Core system | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | agk, cardoe, systemd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Juergen Rose
2013-09-09 11:37:31 UTC
Ensure that lvmetad is running and try again, >=2.02.98 require lvmetad in order to work with udev properly. (In reply to Jory A. Pratt from comment #1) > Ensure that lvmetad is running and try again, >=2.02.98 require lvmetad in > order to work with udev properly. After booting with systemrescuecd I could created logical volumes with lvm-2.02.97 like a charm. Now I booted again from my old hd and tried to create logical volumes: root@lynx:/root(7)# lvmetad root@lynx:/root(8)# lvcreate -L 8G -n tmp vg0 WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it! /dev/vg0/tmp: not found: device not cleared Aborting. Failed to wipe start of new LV. root@lynx:/root(9)# ps -ef | grep lvme root 8770 1 0 09:21 ? 00:00:00 lvmetad root 8786 8360 0 09:21 pts/0 00:00:00 grep --colour=auto lvme root@lynx:/root(11)# lvm version LVM version: 2.02.99(2) (2013-07-24) Library version: 1.02.78 (2013-07-24) Driver version: 4.24.0 So, 'lvmetad' does not help. I suppose, the reason is, that I can't run systemd from the old hd because of the separte /usr partion in a logical volume and therefore udev is not activated. Now I booted from the new hd (with systemd) and try copy the old home volume to the new hd. But I can mount the old logical volumes. root@lynx:/root(8)# lvmetad -l all root@lynx:/root(9)# pvscan WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it! PV /dev/sdb7 VG vg lvm2 [862.24 GiB / 0 free] PV /dev/sda7 VG vg0 lvm2 [736.24 GiB / 0 free] Total: 2 [1.56 TiB] / in use: 2 [1.56 TiB] / in no VG: 0 [0 ] root@lynx:/root(10)# lvscan WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it! ACTIVE '/dev/vg/usr' [64.00 GiB] inherit ACTIVE '/dev/vg/var' [12.00 GiB] inherit ACTIVE '/dev/vg/vtmp' [16.00 GiB] inherit ACTIVE '/dev/vg/portage' [2.00 GiB] inherit ACTIVE '/dev/vg/distfiles' [32.00 GiB] inherit ACTIVE '/dev/vg/src' [12.00 GiB] inherit ACTIVE '/dev/vg/opt' [12.00 GiB] inherit ACTIVE '/dev/vg/ftp' [128.00 GiB] inherit ACTIVE '/dev/vg/data' [128.00 GiB] inherit ACTIVE '/dev/vg/home' [448.24 GiB] inherit ACTIVE '/dev/vg/tmp' [8.00 GiB] inherit ACTIVE '/dev/vg0/var' [12.00 GiB] inherit ACTIVE '/dev/vg0/vtmp' [16.00 GiB] inherit ACTIVE '/dev/vg0/portage' [2.00 GiB] inherit ACTIVE '/dev/vg0/distfiles' [32.00 GiB] inherit ACTIVE '/dev/vg0/tmp' [8.00 GiB] inherit ACTIVE '/dev/vg0/src' [12.00 GiB] inherit ACTIVE '/dev/vg0/opt' [12.00 GiB] inherit ACTIVE '/dev/vg0/ftp' [128.00 GiB] inherit ACTIVE '/dev/vg0/data' [128.00 GiB] inherit ACTIVE '/dev/vg0/home' [386.24 GiB] inherit root@lynx:/root(11)# mount /dev/mapper/vg-home /mnt/test1 mount: special device /dev/mapper/vg-home does not exist root@lynx:/root(12)# mount /dev/vg/home /mnt/test1 mount: special device /dev/vg/home does not exist Restarting lvmetad does not help. Maybe systemd is not running even if it is in GRUB_CMDLINE_LINUX_DEFAULT: root@lynx:/root(14)# ps -ef | grep systemd root 9017 8606 0 17:48 pts/0 00:00:00 grep --colour=auto systemd root@lynx:/root(17)# grep systemd /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="dolvm rootfstype=ext4 real_init=/usr/lib/systemd/systemd" root@lynx:/root(18)# ll /usr/lib/systemd/systemd -rwxr-xr-x 1 root root 1039560 Aug 13 15:36 /usr/lib/systemd/systemd* Should I file a separated bug? (In reply to Juergen Rose from comment #3) > Now I booted from the new hd (with systemd) and try copy the old home volume > to the new hd. > But I can mount the old logical volumes. > > root@lynx:/root(8)# lvmetad -l all > .... > root@lynx:/root(11)# mount /dev/mapper/vg-home /mnt/test1 > mount: special device /dev/mapper/vg-home does not exist > > root@lynx:/root(12)# mount /dev/vg/home /mnt/test1 > mount: special device /dev/vg/home does not exist > > Restarting lvmetad does not help. Maybe systemd is not running even if it is > in > GRUB_CMDLINE_LINUX_DEFAULT: > > root@lynx:/root(14)# ps -ef | grep systemd > root 9017 8606 0 17:48 pts/0 00:00:00 grep --colour=auto systemd > > root@lynx:/root(17)# grep systemd /etc/default/grub > GRUB_CMDLINE_LINUX_DEFAULT="dolvm rootfstype=ext4 > real_init=/usr/lib/systemd/systemd" > root@lynx:/root(18)# ll /usr/lib/systemd/systemd > -rwxr-xr-x 1 root root 1039560 Aug 13 15:36 /usr/lib/systemd/systemd* > > Should I file a separated bug? After reemerging the kernel with the systemd option the issue disapeared. (In reply to Juergen Rose from comment #4) [...] > After reemerging the kernel with the systemd option the issue disapeared. This is invalid then (that kernel option is enabling the options that we tell people to enable in wiki page) |