Skip to contentSkip to conversation

lvmcreate_initrd failing...not sure why

linux-lvm Cameron Thorne 2 participants 2 messages Jan 1, 2003

lore
Share & tools
lore
#0 lore raw

I am trying to convert my root file system over to LVM (1.0.6 running on linux 2.4.20). I have read the LVM-HOWTO cover to cover several times, but I seem to be having trouble with lvmcreate_initrd. Attached is the output when I run lvmcreate_initrd -v.

Does anyone have any idea what is happening?

- Cameron

Logical Volume Manager 1.0.6 by Heinz Mauelshagen 25/10/2002 lvmcreate_initrd -- make LVM initial ram disk /boot/initrd-lvm-2.4.20.gz

-- devfsd running, assuming -D.
lvmcreate_initrd -- finding required shared libraries
-- INITRDFILES: /sbin/vgchange /sbin/vgscan /bin/bash /bin/mount /bin/umount /bin/sh /bin/rm /sbin/modprobe /sbin/insmod /lib/modules/2.4.20/modules.dep -- need: /lib/ld-linux.so.2 /lib/libc.so.6 /lib/libdl.so.2 /lib/liblvm-10.so.1 /lib/libncurses.so.5
lvmcreate_initrd -- stripping shared libraries

                 -- copy /lib/ld-linux.so.2 to /tmp/lib.811/lib/ld-linux.so.2
                 -- strip /tmp/lib.811/lib/ld-linux.so.2
                 -- copy /lib/libc.so.6 to /tmp/lib.811/lib/libc.so.6
                 -- strip /tmp/lib.811/lib/libc.so.6
                 -- copy /lib/libdl.so.2 to /tmp/lib.811/lib/libdl.so.2
                 -- strip /tmp/lib.811/lib/libdl.so.2
                 -- copy /lib/liblvm-10.so.1 to /tmp/lib.811/lib/liblvm-10.so.1
                 -- strip /tmp/lib.811/lib/liblvm-10.so.1
                 -- copy /lib/libncurses.so.5 to /tmp/lib.811/lib/libncurses.so.5
                 -- strip /tmp/lib.811/lib/libncurses.so.5

lvmcreate_initrd -- calculating initrd filesystem parameters
-- counting files in: /tmp/lib.811 $INITRDFILES
-- minimum: 17 inodes + filesystem reserved inodes
lvmcreate_initrd -- calculating loopback file size
-- finding size of: /tmp/lib.811 $INITRDFILES -- minimum: 2809 kB for files + inodes + filesystem metadata
lvmcreate_initrd -- making loopback file (3331 kB)
-- using /tmp/initrd.811 as a temporary loopback file
lvmcreate_initrd -- making ram disk filesystem (81 inodes)

                 -- mke2fs -F -m0 -L LVM-2.4.20 -i 42110 /tmp/initrd.811 3331

mke2fs 1.32 (09-Nov-2002)
Filesystem label=LVM-2.4.20
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
88 inodes, 3331 blocks
0 blocks (0.00%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
88 inodes per group

Writing inode tables: 0/1done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 29 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
-- creating mountpoint /tmp/mnt.811
lvmcreate_initrd -- mounting ram disk filesystem

                 -- mount -o loop /tmp/initrd.811 /tmp/mnt.811
                 -- creating /etc /proc /lib in /tmp/mnt.811
                 -- removing /tmp/mnt.811/lost+found

lvmcreate_initrd -- creating new /etc/modules.conf
-- all block and char modules will be turned off
lvmcreate_initrd -- creating new modules.dep lvmcreate_initrd -- copying initrd files to ram disk
-- find $INITRDFILES | cpio -pdm -v /tmp/mnt.811
/tmp/mnt.811/sbin/vgchange
/tmp/mnt.811/sbin/vgscan
/tmp/mnt.811/bin/bash
/tmp/mnt.811/bin/mount
/tmp/mnt.811/bin/umount
/tmp/mnt.811/bin/sh
/tmp/mnt.811/bin/rm
/tmp/mnt.811/sbin/modprobe
/tmp/mnt.811/sbin/insmod /tmp/mnt.811/lib/modules/2.4.20/modules.dep
1956 blocks
lvmcreate_initrd -- copying shared libraries to ram disk

                 -- find /tmp/lib.811 | cpio -pdm -v /tmp/mnt.811

/tmp/mnt.811/lib /tmp/mnt.811/lib/libncurses.so.5 /tmp/mnt.811/lib/liblvm-10.so.1 /tmp/mnt.811/lib/ld-linux.so.2 /tmp/mnt.811/lib/libdl.so.2 /tmp/mnt.811/lib/libc.so.6
3607 blocks
lvmcreate_initrd -- creating new /linuxrc lvmcreate_initrd -- creating new /etc/fstab lvmcreate_initrd -- ummounting ram disk
umount: /tmp/initrd.811: not mounted lvmcreate_initrd -- ERROR umounting /tmp/initrd.811

                 -- removing /tmp/initrd.811
                 -- removing /tmp/mnt.811

rmdir: `/tmp/mnt.811': Device or resource busy
-- removing /tmp/lib.811
-- exit with code 1

#1 lore raw

-- Cameron Thorne <[email protected]>

Quoted 1 line

I am trying to convert my root file system over to LVM

Don't. All you do is make it difficult to recover from LVM problems. If you mount the major filesystems (including /usr and /var) as LV's / only needs to be around 80MB for /bin, /lib, /etc, and /boot. For the minimal amount of space you use, why bother with it?

--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647

                                           +1 8773 252 1080