All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvcreate_initrd & redhat 6.1
@ 1999-11-15 22:53 Jonathan S. Polacheck
  1999-11-15 23:54 ` Heinz Mauelshagen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jonathan S. Polacheck @ 1999-11-15 22:53 UTC (permalink / raw)
  To: linux-lvm



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] lvcreate_initrd & redhat 6.1
  1999-11-15 22:53 [linux-lvm] lvcreate_initrd & redhat 6.1 Jonathan S. Polacheck
@ 1999-11-15 23:54 ` Heinz Mauelshagen
  1999-11-16  0:09 ` Fernando Dammous
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Heinz Mauelshagen @ 1999-11-15 23:54 UTC (permalink / raw)
  To: Jonathan S. Polacheck; +Cc: mge, linux-lvm

> 
> 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

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.

> 
> 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
mge@ez-darmstadt.telekom.de                      Germany
                                                 +49 6151 886-425
                                                          FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] lvcreate_initrd & redhat 6.1
  1999-11-15 22:53 [linux-lvm] lvcreate_initrd & redhat 6.1 Jonathan S. Polacheck
  1999-11-15 23:54 ` Heinz Mauelshagen
@ 1999-11-16  0:09 ` Fernando Dammous
  1999-11-16  0:38 ` Harald Milz
  1999-11-16  9:23 ` Luca Berra
  3 siblings, 0 replies; 5+ messages in thread
From: Fernando Dammous @ 1999-11-16  0:09 UTC (permalink / raw)
  To: Jonathan S. Polacheck, linux-lvm

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 <JPolache@txfund.com>
To: <linux-lvm@msede.com>
Sent: Monday, November 15, 1999 8:53 PM
Subject: [linux-lvm] lvcreate_initrd & redhat 6.1


> 
> 
> 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
> 
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] lvcreate_initrd & redhat 6.1
  1999-11-15 22:53 [linux-lvm] lvcreate_initrd & redhat 6.1 Jonathan S. Polacheck
  1999-11-15 23:54 ` Heinz Mauelshagen
  1999-11-16  0:09 ` Fernando Dammous
@ 1999-11-16  0:38 ` Harald Milz
  1999-11-16  9:23 ` Luca Berra
  3 siblings, 0 replies; 5+ messages in thread
From: Harald Milz @ 1999-11-16  0:38 UTC (permalink / raw)
  To: linux-lvm

Jonathan S. Polacheck <JPolache@txfund.com> wrote:

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

No (init) ramdisk support in your kernel. 

> 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. 

-- 
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
	Civilization?
Gandhi:	I think it would be a good idea.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] lvcreate_initrd & redhat 6.1
  1999-11-15 22:53 [linux-lvm] lvcreate_initrd & redhat 6.1 Jonathan S. Polacheck
                   ` (2 preceding siblings ...)
  1999-11-16  0:38 ` Harald Milz
@ 1999-11-16  9:23 ` Luca Berra
  3 siblings, 0 replies; 5+ messages in thread
From: Luca Berra @ 1999-11-16  9:23 UTC (permalink / raw)
  To: linux-lvm

On Mon, Nov 15, 1999 at 04:53:07PM -0600, Jonathan S. Polacheck wrote:
> 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

-- 
Luca Berra -- bluca@comedia.it
    Communications Media & Services S.r.l.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-11-16  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-15 22:53 [linux-lvm] lvcreate_initrd & redhat 6.1 Jonathan S. Polacheck
1999-11-15 23:54 ` Heinz Mauelshagen
1999-11-16  0:09 ` Fernando Dammous
1999-11-16  0:38 ` Harald Milz
1999-11-16  9:23 ` Luca Berra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.