LVM, 'ext3' to 'reiserfs' conertion on '/' on software RAID5

Madison Kelly linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Fri Dec 19 17:18:03 UTC 2003


I have since been told to use the 'lvmcreate_initrd' command to create a 
new boot image that loads LVM tools before passing off to the kernel but 
the only way I can get to the disks (and their files) is using the 
Fedora install disk 1 in rescue mode where the directories that 
'lvmcreate_initrd' look for off of '/' are actually mounted off 
'mnt/sysimage'. I tried symlinking but it fails (I'll post below why in 
a sec). First, here is the kernel panic and a few lines leading up to it...

   -= Kernel panic...

...
Creating block devices
Scanning logical volumes
vgscan -- reading all physical volumes (this may take a while...)
raid5: switching cache buffer size, 4096 --> 1024
vgscan -- found inactive volume group "vg0"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume 
group

Activating logical volumes
vgchange -- volume group "vg0" successfully activate

Mounting root filesystem
VFS: Can't find ext3 filesystem on dev lvm(58,0).
mount: error 22 mounting ext3
picotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 136k freed
Kernel panic: No init found. Try passing init= option to kernel.

   -= End kernel panic

   How would I pass options to the kernel (via "init="?)

   Here is what happens when I try to use the 'lvmcreate_initrd' tool 
under the rescue mode of the Fedora Install CD:

  -= First, 'df' before I begin...

sh-2.05b# df
Filesystem    1K-blocks    Used    Available  Use%    Mounted on
rootfs             6120    3564         2206  62%    /
/dev/root.old         6120    3564         2206  62%    /
/tmp/cdrom       644864    644864            0 100%    /mnt/source
/dev/vg0/root     17919448    1916960     16002488  11%    /mnt/sysimage
/dev/hda1       101086    6767        89100   8%    /mnt/sysimage/boot
/dev/hda3     76304192    32828     72395284   1%    /mnt/sysimage/single

   (Note that I have an IDE for '/boot' and swap)

  -= Okay, my simlinks are in place. Now running 'lvmcreate_initrd'

sh-2.05b# lvmcreate_initrd
Logical Volume Manager 1.0.3 by Heinz Mauelshagen  02/19/2002
lvmcreate_initrd -- make LVM initial ram disk 
/boot/initrd-lvm-2.4.22-1.2115.nptl.gz

lvmcreate_initrd -- finding required shared libraries
lvmcreate_initrd -- stripping shared libraries
lvmcreate_initrd -- calculating initrd filesystem parameters
lvmcreate_initrd -- calculating loopback file size
du: invalid option -- c
BusyBox v0.60.5 (2003.01.24-22:44+000) multi-call binary

Usage: du [-lsxhmk] [FILE]...

lvmcreate_initrd -- making loopback file (541 kB)
lvmcreate_initrd -- making ram disk filesystem 9238 inodes)
lvmcreate_initrd -- mounting ramdisk filesystem
lvmcreate_initrd -- creating new /etc/modules.conf
lvmcreate_initrd -- creating new modules.dep
depmod: Can't open /lib/modules/2.4.22-1.2115.nptl/modules.dep for writing
lvmcreate_initrd -- ERROR running depmod
rmdir: unable to remove '/tmp/mnt.1185': Device or resource busy

   -= It failed... Here is 'df' again, with the loopback still mounted

sh-2.05b# df
Filesystem    1K-blocks    Used    Available  Use%    Mounted on
rootfs             6120    3564         2206  62%    /
/dev/root.old         6120    3564         2206  62%    /
/tmp/cdrom       644864    644864            0 100%    /mnt/source
/dev/vg0/root     17919448    1916960     16002488  11%    /mnt/sysimage
/dev/hda1       101086    6767        89100   8%    /mnt/sysimage/boot
/dev/hda3     76304192    32828     72395284   1%    /mnt/sysimage/single
/dev/loop1          506    19          487   4%    /tmp/mnt.1185

   -= When I try to create a symlink to '/lib/modules' I am told:

sh-2.05b# cd /lib
sh-2.05b# ln -s /mnt/sysimage/lib/modules
ln: creating symbolic link './modules' to '/mnt/sysimage/lib/modules': 
Read-only file system
sh-2.05b# cd /
sh-2.05b# ls -lah | grep lib
lrwxrwxrwx    1 root    root    16 Dec 19 12:05 lib -> /mnt/runtime/lib
sh-2.05b# cd /mnt/runtime/
sh-2.05b# ls -lah | grep lib
drwxr-xr-x    1 root    root   1.6k Jan  1 1970 lib

   So, have I done something stupidly wrong??

   Again, you help is -very- much appreciated!

Madison


Robert Brockway wrote:
> On Fri, 19 Dec 2003, Madison Kelly wrote:
> 
> 
>>Stupid question time, where would I enter that? At the grub menu? The
>>kernel panic said something about passing something to init, is that where?
> 
> 
> Hi Maddy.
> 
> Could you post the panic message you are getting (assuming the suggesting
> to use "linux reiserfs" doesn't work).
> 
> Rob


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list