linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] How to turn LVM off
@ 2005-10-12 17:59 Kirk Korver
  2005-10-13 23:11 ` Fredrik Tolf
  2005-10-14 21:50 ` Luciano Chavez
  0 siblings, 2 replies; 4+ messages in thread
From: Kirk Korver @ 2005-10-12 17:59 UTC (permalink / raw)
  To: linux-lvm

Hello,

I'm using FC4 as a base for an embedded instrument. When the instrument
goes out the door, it has a 256 MB flash card for the hard drive, and a
Pentium 4M motherboard. Also, there will never be a keyboard, nor a
monitor.

During development, there is a SATA hard drive with all of FC4 on it,
and it is currently using LVM.

My task is to prepare a bootable, flash card. Next remove the hard drive
and have the system work.

Here is what I do:
1) fdisk /dev/hdc (the flash card is hdc)
2) In fdisk, create a single large linux partition (don't need any swap
space) and active this partition.

Create the file system
3) mke2fs /dev/hdc1
4) tune2fs -c 0 /dev/hdc1

5)Copy over the files I need (I'll give a set if you want, but its
enough to make linux happy).
6)copy over my custom  rc.sysinit, since I want to have exact control
over how the system boots

7) Install grub. I'll give the details:
	grup --no-floppy
	   device (hd0) /dev/hdc
	   root (hd0,0)
         setup (hd0)

8) Grup is happy. And says so
9) Edit grub.conf so the kernel is at /boot/.....
10) Edit the fstab to mount /dev/hdc1  on /

Turn the power off, and remove the SATA hard drive:

Now the problem
Grub starts, and finds my kernel
The kernel starts.
Redhat nash starts. Then I get the following messages.
 Reading all physical volumes. This may take a while...
 Aborting - please provide new pathname for what used to be /dev/hdc1
 No volume groups found
 Unable to find volume group "VolGroup00"
ERROR: /bin/lvm exited abnormally with value 5
ext3: No journal on filesystem on hdc1
Mount: error 22 mounting ext3
ERROR opening /dev/console!!!!: 2
error dup2'ing fc of 0 to 0
error dup2'ing fc of 0 to 1
error dup2'ing fc of 0 to 2
Switchroot: mount failed:22
Kernel panic - not syncing: Attempted to kill init!



I see it is asking about VolGroup00. This is LVM stuff. I don't want LVM
on the card. What is really weird is that all of this is happening
before the rc.sysinit is started. I don't find any command line options
to the kernel to turn LVM off. All of the LVM options are "modules" when
I built my kernel.

So my question is quite simply,
What do I have to do so that LVM is NOT used?? Any other options?

--Kirk


Kirk Korver
email: kkorver cyberkineticsinc com

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

* Re: [linux-lvm] How to turn LVM off
  2005-10-12 17:59 [linux-lvm] How to turn LVM off Kirk Korver
@ 2005-10-13 23:11 ` Fredrik Tolf
  2005-10-14 20:46   ` David Johnston
  2005-10-14 21:50 ` Luciano Chavez
  1 sibling, 1 reply; 4+ messages in thread
From: Fredrik Tolf @ 2005-10-13 23:11 UTC (permalink / raw)
  To: LVM general discussion and development

On Wed, 2005-10-12 at 11:59 -0600, Kirk Korver wrote:
> Hello,

Hi!

[...]
> I see it is asking about VolGroup00. This is LVM stuff. I don't want LVM
> on the card. What is really weird is that all of this is happening
> before the rc.sysinit is started.

As you can see from the fact that nash is running, it is the initrd
running at this point. That's why rc.sysinit hasn't started running yet.

> I don't find any command line options
> to the kernel to turn LVM off. All of the LVM options are "modules" when
> I built my kernel.

Indeed, but they are probably on the initrd image and loaded by the nash
script.

> So my question is quite simply,
> What do I have to do so that LVM is NOT used?? Any other options?

You'd probably have to rebuild the initrd to fit your liking. There is a
script that comes with FC called "mkinitrd" that builds an initrd with
the modules and programs necessary to mount to root filesystem. Probably
that script detected that you're using LVM, and it is thus trying to
recreate that environment. I don't know if it's possible to configure
mkinitrd to an environment different from the one currently running. If
I were you, I'd unzip the initrd image, mount it, and edit it manually.

Hope it helps.

Fredrik Tolf

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

* Re: [linux-lvm] How to turn LVM off
  2005-10-13 23:11 ` Fredrik Tolf
@ 2005-10-14 20:46   ` David Johnston
  0 siblings, 0 replies; 4+ messages in thread
From: David Johnston @ 2005-10-14 20:46 UTC (permalink / raw)
  To: LVM general discussion and development

On Fri, 2005-10-14 at 01:11 +0200, Fredrik Tolf wrote:
> On Wed, 2005-10-12 at 11:59 -0600, Kirk Korver wrote:
> > Hello,
> 
> Hi!
> 
> [...]
> > I see it is asking about VolGroup00. This is LVM stuff. I don't want LVM
> > on the card. What is really weird is that all of this is happening
> > before the rc.sysinit is started.
> 
> As you can see from the fact that nash is running, it is the initrd
> running at this point. 
> > All of the LVM options are "modules" when I built my kernel.
> 
> Indeed, but they are probably on the initrd image and loaded by the nash
> script.
> > What do I have to do so that LVM is NOT used?? Any other options?
> 
> You'd probably have to rebuild the initrd to fit your liking. There is a
> script that comes with FC called "mkinitrd" that builds an initrd with
> the modules and programs necessary to mount to root filesystem. Probably
> that script detected that you're using LVM, and it is thus trying to
> recreate that environment.
> If I were you, I'd unzip the initrd image, mount it, and edit it manually.

Fredrik,
I'd do the same.  If you think you will need to update your system
frequently, then I suggest that you remove LVM from your development
system; then it shouldn't be an issue.

-David

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

* Re: [linux-lvm] How to turn LVM off
  2005-10-12 17:59 [linux-lvm] How to turn LVM off Kirk Korver
  2005-10-13 23:11 ` Fredrik Tolf
@ 2005-10-14 21:50 ` Luciano Chavez
  1 sibling, 0 replies; 4+ messages in thread
From: Luciano Chavez @ 2005-10-14 21:50 UTC (permalink / raw)
  To: LVM general discussion and development

On Wed, 2005-10-12 at 11:59 -0600, Kirk Korver wrote:
> Hello,
> 
> I'm using FC4 as a base for an embedded instrument. When the instrument
> goes out the door, it has a 256 MB flash card for the hard drive, and a
> Pentium 4M motherboard. Also, there will never be a keyboard, nor a
> monitor.
> 
> During development, there is a SATA hard drive with all of FC4 on it,
> and it is currently using LVM.
> 
> My task is to prepare a bootable, flash card. Next remove the hard drive
> and have the system work.
> 
> Here is what I do:
> 1) fdisk /dev/hdc (the flash card is hdc)
> 2) In fdisk, create a single large linux partition (don't need any swap
> space) and active this partition.
> 
> Create the file system
> 3) mke2fs /dev/hdc1
> 4) tune2fs -c 0 /dev/hdc1
> 
> 5)Copy over the files I need (I'll give a set if you want, but its
> enough to make linux happy).
> 6)copy over my custom  rc.sysinit, since I want to have exact control
> over how the system boots
> 
> 7) Install grub. I'll give the details:
> 	grup --no-floppy
> 	   device (hd0) /dev/hdc
> 	   root (hd0,0)
>          setup (hd0)
> 
> 8) Grup is happy. And says so
> 9) Edit grub.conf so the kernel is at /boot/.....
> 10) Edit the fstab to mount /dev/hdc1  on /
> 
> Turn the power off, and remove the SATA hard drive:
> 
> Now the problem
> Grub starts, and finds my kernel
> The kernel starts.
> Redhat nash starts. Then I get the following messages.
>  Reading all physical volumes. This may take a while...
>  Aborting - please provide new pathname for what used to be /dev/hdc1
>  No volume groups found
>  Unable to find volume group "VolGroup00"
> ERROR: /bin/lvm exited abnormally with value 5
> ext3: No journal on filesystem on hdc1
> Mount: error 22 mounting ext3
> ERROR opening /dev/console!!!!: 2
> error dup2'ing fc of 0 to 0
> error dup2'ing fc of 0 to 1
> error dup2'ing fc of 0 to 2
> Switchroot: mount failed:22
> Kernel panic - not syncing: Attempted to kill init!
> 
> 
> 
> I see it is asking about VolGroup00. This is LVM stuff. I don't want LVM
> on the card. What is really weird is that all of this is happening
> before the rc.sysinit is started. I don't find any command line options
> to the kernel to turn LVM off. All of the LVM options are "modules" when
> I built my kernel.
> 
> So my question is quite simply,
> What do I have to do so that LVM is NOT used?? Any other options?
> 
> --Kirk
> 
> 
> Kirk Korver

Sounds like it's executing the init script that runs vgscan on the
initrd. If you don't need lvm then edit the script and remove it.


-- 
Luciano Chavez <lnx1138@us.ibm.com>

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

end of thread, other threads:[~2005-10-14 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-12 17:59 [linux-lvm] How to turn LVM off Kirk Korver
2005-10-13 23:11 ` Fredrik Tolf
2005-10-14 20:46   ` David Johnston
2005-10-14 21:50 ` Luciano Chavez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).