My system is LVM2 (root included). Downgrading to openrc-0.2.5 fixes the problem. $ sudo cat rc.log rc boot logging started at Wed Oct 29 23:44:49 2008 * Caching service dependencies ... [ ok ] * Setting system clock using the hardware clock [UTC] ... [ ok ] * Loading module nfs ... [ ok ] * Loading module atl1 ... [ ok ] * Loading module nvidia ... [ ok ] * Loading module fuse ... [ ok ] * Loading module vboxdrv ... [ ok ] * Loading module tun ... [ ok ] * Autoloaded 6 module(s) * Setting up the Logical Volume Manager ... Locking type 1 initialisation failed. [ ok ] * Checking local filesystems ... /dev/sda5: clean, 47/8032 files, 20938/32096 blocks (check in 4 mounts) [ ok ] * Remounting root filesystem read/write ... [ ok ] * Updating /etc/mtab ... [ ok ] * Mounting local filesystems ... mount: special device /dev/vg/usr does not exist mount: special device /dev/vg/opt does not exist mount: special device /dev/vg/var does not exist mount: mount point /usr/src does not exist mount: special device /dev/vg/home does not exist mount: mount point /home/vmware does not exist mount: mount point /home/music does not exist mount: mount point /var/tmp/portage does not exist * Some local filesystem failed to mount [ !! ] * Setting hostname to venkman ... [ ok ] * Configuring kernel parameters ... [ ok ] * Creating user login records ... [ ok ] * Cleaning /var/run ... /etc/init.d/bootmisc: line 65: find: command not found [ ok ] * Wiping /tmp directory ... /etc/init.d/bootmisc: line 37: find: command not found [ ok ] * Setting terminal encoding [UTF-8] ... [ ok ] * Setting console font [default8x16] ... /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found /etc/init.d/consolefont: line 51: setfont: command not found [ !! ] * ERROR: consolefont failed to start * Loading key mappings [la-latin1] ... /etc/init.d/keymaps: line 44: loadkeys: command not found * Error loading key mappings [ !! ] * ERROR: keymaps failed to start * Bringing up interface lo * 127.0.0.1/8 ... [ ok ] * Adding routes * 127.0.0.0/8 via 127.0.0.1 ... [ ok ] * Bringing up interface eth0 * null ... [ ok ] * Mounting USB device filesystem [usbfs] ... /etc/init.d/procfs: line 31: getent: command not found [ ok ] * Activating swap devices ... swapon: cannot stat /dev/vg/swap: No such file or directory [ ok ] * ERROR: urandom failed to start rc boot logging stopped at Wed Oct 29 23:44:52 2008 $ emerge --info Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5 Timestamp of tree: Wed, 29 Oct 2008 06:36:01 +0000 distcc 3.0 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r4 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/gnome /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/vmware /usr/portage/local/layman/jokey /usr/portage/local/layman/synce /usr/portage/local/layman/dev-zero /usr/portage/local/layman/sunrise /usr/portage/local/layman/java-overlay /usr/portage/local/zoolook" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acl acpi additions adns ads alac alias alsa amd64 amr amrnb amrwb annotate ao apache2 ares async asyncns audiofile automount avahi bacula-clientonly bacula-nodir bacula-nosd berkdb binfilter bluetooth branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr chm cli connectionstatus consolekit contactnotes cracklib crypt css cups curl daap dbus device-mapper dirac djbfft djvu dri dts dv dvd dvdr dvdread emboss emovix encode evo exif expat fame ffmpeg fftw firefox flac fontconfig fpx fuse gcrypt gd gdbm gif glib glitz gnutls gphoto2 gpm graphviz gs gsm gstreamer gtk hal hdri hfs history iconv id3tag idn ieee1394 imagemagick imlib iproute2 ipv6 irc isdnlog ithreads jack java java6 jfs jpeg jpeg2k kde kerberos kipi ladspa lame lcms ldap libnotify libsamplerate lua lzo mad matroska mdnsresponder-compat midi mikmod mjpeg mmap mmx mmxext mng modplug mp3 mp4 mpeg mplayer multilib musepack musicbrainz mysql ncurses netjack network nls nptl nptlonly nsplugin nss ntfs ogg openal openexr opengl openmp openntpd openvpn overlays pam parse-clocks passwdqc pccts pch pcre pdf perl png portaudio ppds pppd pth pulseaudio python q32 q8 qt3 qt3support qt4 quicktime quotas rdesktop readline reflection reiserfs rpc rtsp samba sasl schroedinger sdl session skins slp smbkrb5passwd smi sndfile speex spell spl sse sse2 ssh ssl ssse3 startup-notification subtitles suid svg swat symlink sysfs syslog tcpd theora threads tiff truetype type1 unicode upnp usb v4l v4l2 vcd vhook visualization vlm vorbis wavpack winbind wmf wolfmame wxwindows x264 xattr xcb xcomposite xfs xine xml xorg xpm xrandr xrender xscreensaver xulrunner xv xvid xvmc yahoo yv12 zeroconf zip zlib" ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Well, it's far from obvious what changed in openrc that broke LVM. Let's ask openrc maintainers to get in on this fun.
- is your root on lvm? - are you using an initrd? - is the lvm init script in your boot runlevel?
(In reply to comment #1) > Well, it's far from obvious what changed in openrc that broke LVM. Let's ask > openrc maintainers to get in on this fun. OpenRC upstream (ie me) uses LVM for /usr and /var. If it's broken then I don't know about it :) I'm going to go out on a limb and suggest that /dev/vg doesn't exist or something failed regarding dm earlier in the boot process.
(In reply to comment #2) > - is your root on lvm? yes > - are you using an initrd? yes > - is the lvm init script in your boot runlevel? yes note that this setup works with openrc-0.2.5 and I have notebook with the very same configuration (root on lvm, same packages versions, etc) that works with openrc-0.3.0-r[01].
(In reply to comment #3) > I'm going to go out on a limb and suggest that /dev/vg doesn't exist /dev/vg exists. we've exchanged one or two emails about this. > or something failed regarding dm earlier in the boot process. I don't know. How do I check that?
That error message "Locking type 1 initialisation failed." is a complaint that lvm does not yet have write access to /var/lock/lvm. Are you sure you have exactly the same version of lvm installed on the system that works with openrc-0.3.0 and the one that doesn't work? For instance boot scripts can call vgchange with --ignorelocking arg to prevent such failures during boot.
(In reply to comment #6) > That error message "Locking type 1 initialisation failed." is a complaint that > lvm does not yet have write access to /var/lock/lvm. You can change where LVM does it's locking also. With OpenRC you have /lib/rc/init.d sa your playground. It's fully writeable by the time it runs. FWIW, I run LVM with the default configuration and get that warning also, but it still works fine.
(In reply to comment #6) > Are you sure you have exactly the same version of lvm installed on the system > that works with openrc-0.3.0 and the one that doesn't work? The one that works has lvm2-2.02.28-r2 (it is not in portage anymore, and I don't know why it hasn't been updated; I do "emerge -uvDN @system @world" almost every day) The one that doesn't work has lvm2-2.02.42
nbensa: use "@installed" rather than "@system @world"
(In reply to comment #9) > nbensa: use "@installed" rather than "@system @world" > Thanks! I'll check later if something changes in both systems.
Robin (robbat2) and I have discussed and looked into that message in depth. It's simply being erroneously displayed to the user and LVM needs a tweak to not display it at this point. Basically, locking is necessary to prevent 2 actions on a LVM LV or VG to happen at the same time, however at this point in the system boot there's only one thing that can be happening so it shouldn't be warning about it.
Well, I updated my notebook (the one that worked with openrc-0.3*) and it still works. The desktop OTOH, doesn't. The partition scheme is the same on both: sda5 /boot sda6 LVM vg/root vg/usr vg/var vg/home Is there anything I can try to help track this down? Thanks, Norberto
Seems to be fixed in openrc-0.4.0; I'm closing this one.
(In reply to comment #13) > Seems to be fixed in openrc-0.4.0; I'm closing this one. > Still no luck for me with baselayout-2.0.0 and openrc-0.4.1-r1. # cat rc.log * lvm uses addon code which is deprecated * and may not be available in the future. * Setting up the Logical Volume Manager... Failed to find sysfs mount point Locking type 1 initialisation failed. Failed to find sysfs mount point /dev/vg/usr: unlink failed: Read-only file system Unable to unlink device node for 'vg-usr' /dev/vg/home: unlink failed: Read-only file system Unable to unlink device node for 'vg-home' /dev/vg/opt: unlink failed: Read-only file system Unable to unlink device node for 'vg-opt' /dev/vg/var: unlink failed: Read-only file system Unable to unlink device node for 'vg-var' /dev/vg/tmp: unlink failed: Read-only file system Unable to unlink device node for 'vg-tmp' /dev/warehouse/music: unlink failed: Read-only file system Unable to unlink device node for 'warehouse-music' /dev/warehouse/video: unlink failed: Read-only file system Unable to unlink device node for 'warehouse-video' /dev/warehouse/images: unlink failed: Read-only file system Unable to unlink device node for 'warehouse-images' Unable to unlink device node for 'vg-home' Unable to unlink device node for 'vg-usr' Unable to unlink device node for 'backup-gentoo' Unable to unlink device node for 'warehouse-video' Unable to unlink device node for 'warehouse-music' Unable to unlink device node for 'vg-opt' Unable to unlink device node for 'vg-var' Unable to unlink device node for 'vg-tmp' Unable to unlink device node for 'warehouse-images' Failed to find sysfs mount point /dev/warehouse/music: unlink failed: Read-only file system /dev/warehouse/video: unlink failed: Read-only file system /dev/warehouse/images: unlink failed: Read-only file system /dev/vg/usr: unlink failed: Read-only file system /dev/vg/home: unlink failed: Read-only file system /dev/vg/opt: unlink failed: Read-only file system /dev/vg/var: unlink failed: Read-only file system /dev/vg/tmp: unlink failed: Read-only file system [ ok ] * device-mapper uses addon code which is deprecated * and may not be available in the future. sabayonx86 / # emerge --info Portage 2.1.4.5 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-sabayon-r3 i686) ================================================================= System uname: 2.6.20-sabayon-r3 i686 unknown Timestamp of tree: Fri, 09 Jan 2009 22:05:02 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r14, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.1-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/" LANG="en_US" LC_ALL="en_US" LDFLAGS="-Wl,-O1" LINGUAS="en fr de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/ecomp /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow 3dnowext X aac acl acpi alsa asf ati bash-completion berkdb bluetooth branding browserplugin bzip2 cairo cddb cdr cli cracklib crypt ctype cups dbus divx dri dts dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox flac fortran gdbm gif glitz gmedia gpm gstreamer gtk hal iconv id3lib ipv6 isdnlog jack jpeg ladspa ldap libnotify libsamplerate lirc mad midi mikmod mmx mmx2 mozdevelop mp3 mpeg mudflap musicbrainz mysql ncurses nls nptl nptlonly objc ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline realmedia reflection ruby sdl session spell spl sse ssl startup-notification svg sysfs tcltk tcpd tiff truetype udev unicode usb vorbis win32codecs wmp x86 xine xml xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr de" LIRC_DEVICES="livedrive_midi usb" USERLAND="GNU" VIDEO_CARDS="vesa radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
On a lark that this might be similar to a problem I saw, please show me the output from: # find /etc/runlevels/sysinit/ It should contain at the very least: dmesg devfs udev It might also contain sysfs. If udev, dmesg and devfs are NOT present, add them with rc-update: # rc-update add udev sysinit # rc-update add dmesg sysinit # rc-update add devfs sysinit
# find /etc/runlevels/sysinit/ /etc/runlevels/sysinit/ /etc/runlevels/sysinit/dmesg /etc/runlevels/sysinit/devfs # rc-update add udev sysinit * rc-update: service `udev' does not exist I am clearly missing udev in sysinit despite udev having been emerged and re-emerged. I'll investigate on this I can't claim it is linked to openrc update but happened just after it.
Solved by _unmerging_ udev and emerging udev-135-r2 and running rc-update add udev sysinit as prompted by the emerge message. Thxs
(In reply to comment #16) > * rc-update: service `udev' does not exist That line there indicates that /etc/init.d/udev doesn't exist either, so something is seriously wrong. > I am clearly missing udev in sysinit despite udev having been emerged and > re-emerged. I'll investigate on this > I can't claim it is linked to openrc update but happened just after it. For using LVM, the newer openrc basically depends on udev coming up in the new sysinit runlevel. It doesn't start it implicitly internally anymore. Reopening for now, this might be a dupe of the bug that I opened for not having the sysinit/udev symlink, but not certain yet (depends on why init.d/udev is missing).
Meia: what version of udev (and ideally the revision of the ebuild) was installed before you reinstalled it?
(In reply to comment #14) > Failed to find sysfs mount point I had the same at one state - is it worth adding a 'need sysfs' to /etc/init.d/lvm? (In reply to comment #19) > Meia: what version of udev (and ideally the revision of the ebuild) was > installed before you reinstalled it? I was having a simlar problem before i did a similar udev update - previously was using sys-fs/udev-130-r1 (and since this doesn't have an init script its hard to add to the sysinit runlevel) its now in a pretty good state. sys-apps/openrc-9999 (as of yesterday) find /etc/runlevels/sysinit/ /etc/runlevels/sysinit/ /etc/runlevels/sysinit/udev # find /etc/runlevels/boot/ /etc/runlevels/boot/ /etc/runlevels/boot/hostname /etc/runlevels/boot/lvm /etc/runlevels/boot/net.lo /etc/runlevels/boot/keymaps /etc/runlevels/boot/urandom /etc/runlevels/boot/modules /etc/runlevels/boot/bootmisc /etc/runlevels/boot/hibernate-cleanup /etc/runlevels/boot/fsck /etc/runlevels/boot/root /etc/runlevels/boot/swap /etc/runlevels/boot/hwclock /etc/runlevels/boot/mtab /etc/runlevels/boot/procfs /etc/runlevels/boot/sysctl # mount rootfs on / type rootfs (rw) /dev/root on / type ext3 (rw,noatime,errors=continue,data=ordered) none on /proc type proc (rw,nosuid,nodev,noexec) rc-svcdir on /lib64/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,size=1024k,mode=755) none on /sys type sysfs (rw) udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755) cachedir on /lib64/splash/cache type tmpfs (rw,size=4096k,mode=644) /dev/sda1 on /boot type ext2 (rw,noatime) /dev/mapper/crypt-tmp on /tmp type reiserfs (rw) /dev/mapper/vg-usr on /usr type ext3 (rw,data=ordered) /dev/mapper/vg-opt on /opt type ext3 (rw,data=ordered) /dev/mapper/vg-var on /var type reiserfs (rw) /dev/mapper/crypt-home on /home type reiserfs (rw) none on /dev/pts type devpts (rw) shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) nfsd on /proc/fs/nfsd type nfsd (rw,noexec,nosuid,nodev) the rc.conf hacks i needed for getting crypt-home to work (from lv vg/home) rc_localmount_need="dmcrypt" rc_dmcrypt_need="lvm"
(In reply to comment #20) > (In reply to comment #14) > > Failed to find sysfs mount point > > I had the same at one state - is it worth adding a 'need sysfs' to > /etc/init.d/lvm? > It's not because sysfs and udev are actually in a different run level then lvm now. Since sysfs is needed for a modern Linux distro, it's already mandatory it comes up and since it's in a earlier run level then lvm. It's guaranteed to be up now. If it's not up, there's a more serious issue at hand with your system.
Behavior of --ignorelockingfailure option changed in lvm 2.02.49. If this option did disabled locking in 2.02.48, in 2.02.49 it just try to make read only lock. Read only lock fails and I get almost same error, with one small difference instead of "Locking type 1 initialisation failed." I'm getting "Locking type -1 initialisation failed." Downgrading lvm2 package to 2.02.48-r2 resolves the problem.
As far as I can see, this bug is resolved due to udev in the wrong runlevel. If I am wrong, please re-open and confirm the results with openrc-0.6.0