Skip to contentSkip to conversation

lvcreate_initrd & redhat 6.1

linux-lvm Jonathan S. Polacheck 5 participants 5 messages Nov 15, 1999 – Nov 16, 1999

lore
Share & tools
lore
#0 lore raw

Got lvm running on at RH 6.1 after patching a 2.2.10 kernal. All looking very good. However, when I ran lvcreate_initrd, it errored out;

[root@l61 tools]# ./lvmcreate_initrd

Logical Volume Manager 0.7 by Heinz Mauelshagen 01/07/1999

lvmcreate_initrd -- this script creates a LVM initial ram disk in /boot/initrd.z

lvmcreate_initrd -- making ram filesystem lvmcreate_initrd -- ERROR making ram disk filesystem

Also, any suggestions as to where to put the "vgscan" and "vgchange -a y" on this system. It uses the "Sys V" rc.d setup (no /sbin/init.d/boot file).

Thanks,

Jon Polacheck

#1 lore raw
Quoted 6 lines

Got lvm running on at RH 6.1 after patching a 2.2.10 kernal. All looking very good. However, when I ran lvcreate_initrd, it errored out;

[root@l61 tools]# ./lvmcreate_initrd

Quoted 7 lines

Logical Volume Manager 0.7 by Heinz Mauelshagen 01/07/1999

lvmcreate_initrd -- this script creates a LVM initial ram disk in /boot/initrd.z

lvmcreate_initrd -- making ram filesystem lvmcreate_initrd -- ERROR making ram disk filesystem

Looks like you didn't configure your kernel to support ramdisks. If you do configure it, don't forget to add initial ramdisk support too.

Quoted 5 lines

Also, any suggestions as to where to put the "vgscan" and "vgchange -a y" on this system. It uses the "Sys V" rc.d setup (no /sbin/init.d/boot file).

I'm not used to RedHat but have a look at your /etc/inittab and figure out what is started at boottime by looking for entries with field 3 containing "boot" or "bootwait".
Put in vgscan and vgchange into the script started by these (after root has been mounted rw).

Another solution is (if you want to set up an initrd system with root contained in an LV anyway) to avoid vgscan and vgchange in the boot script by just copying the /dev/VolumeGroup/* special files from your initial ramdisk to your LV based root filesystem.

Heinz

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement CS-TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41

                                                 64205 Darmstadt
[email protected]                      Germany
                                                 +49 6151 886-425
                                                          FAX-386

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
In reply to Jonathan S. Polacheck

Hi,

the script lvcreate_initrd has a typo (-N 4096) in the line :

mke2fs -m0 -N 4096 $DEVRAM $INITRDSIZE >/dev/null 2>&1

Edit and change to -B 4096 :

    mke2fs -m0 -B 4096 $DEVRAM $INITRDSIZE >/dev/null 2>&1

[]s
Fernando

----- Original Message -----
From: Jonathan S. Polacheck <[email protected]>
To: <[email protected]>
Sent: Monday, November 15, 1999 8:53 PM
Subject: [linux-lvm] lvcreate_initrd & redhat 6.1

Quoted 25 lines

Got lvm running on at RH 6.1 after patching a 2.2.10 kernal. All looking very good. However, when I ran lvcreate_initrd, it errored out;

[root@l61 tools]# ./lvmcreate_initrd

Logical Volume Manager 0.7 by Heinz Mauelshagen 01/07/1999

lvmcreate_initrd -- this script creates a LVM initial ram disk in /boot/initrd.z

lvmcreate_initrd -- making ram filesystem lvmcreate_initrd -- ERROR making ram disk filesystem

Also, any suggestions as to where to put the "vgscan" and "vgchange -a y" on this system. It uses the "Sys V" rc.d setup (no /sbin/init.d/boot file).

Thanks,

Jon Polacheck

#3 lore raw
In reply to Jonathan S. Polacheck
Quoted 2 lines · Jonathan S. Polacheck

lvmcreate_initrd -- making ram filesystem lvmcreate_initrd -- ERROR making ram disk filesystem

No (init) ramdisk support in your kernel.

Quoted 3 lines

Also, any suggestions as to where to put the "vgscan" and "vgchange -a y" on this system. It uses the "Sys V" rc.d setup (no /sbin/init.d/boot file).

Into /sbin on the initrd. The script does it for you nicely.

Signature · 3 lines
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
	Civilization?
Gandhi:	I think it would be a good idea.
#4 lore raw
In reply to Jonathan S. Polacheck
Quoted 3 lines · Jonathan S. Polacheck

Also, any suggestions as to where to put the "vgscan" and "vgchange -a y" on this system. It uses the "Sys V" rc.d setup (no /sbin/init.d/boot file).

/etc/rc.d/rc.sysinit

Signature · 2 lines
Luca Berra -- [email protected]
    Communications Media & Services S.r.l.