LVM and /boot

From: flupke (flupke_at_flupke.com)
Date: 09/03/03


Date: Wed, 3 Sep 2003 11:52:06 +0200

Hi,

I'm using Debian unstable and have the following problem.
I have 2 harddisks but 1 (/dev/hda) is starting to display weird
behaviour. My second hd (/dev/hdb) was still empty, so i fdisked
it to LVM and copied all exisiting partitions over from /dev/hda.
This includes /, /home, /var/, /usr and /tmp. They are now situated
on /dev/main/lv_root,/dev/main/lv_var,/dev/main/lv_usr,
/dev/main/lv_home and /dev/main/lv_tmp.

So far so good but GRUB is still installed on the MBR of /dev/hda
and i want to remove /dev/hda.
Installing grub to /dev/hdb isn't going to be a problem.
(/dev/hdb wil then become /dev/hda after i remove the failing
/dev/hda)
But the boot partition on /dev/hdb is also in LVM and thus the
initrd-lvm image is also on the LVM partition.

1. Is it possible to have grub read stuff from an lvm parition or
will i have to make a non lvm partition just to place the boot
partition on so grub can reach the initrd-lvm image?

2. In the case that i have to make a non lvm partition: i already
made the whole /dev/hdb as lvm. Can i resize it with fdisk and
not lose any data and then make a /boot parition on the end of
the disk? I suppose i will have to let lvm know that it has to
resize the lvm volume group? How do i do that?

Thanks for any info



Relevant Pages

  • Re: Anaconda Crashes during install
    ... > that during the fsck the system tried to scan for lvm volumes using ... from the machine then I could upgrade the system on sda fine. ... also run vgscan without problem. ... What can I do to make lvm forget this used to be an lvm partition?? ...
    (Fedora)
  • LVM, resize /, & FC3 defaults
    ... Ran into a problem with LVM and FC3. ... I went to resize the LVM partition. ...
    (Fedora)
  • Re: Failure to Mount
    ... >> hdb2 is an LVM partition, ... >> but other utilities may care. ... If fsck can't find what's up, you're going to have to think. ...
    (comp.os.linux.misc)
  • RE: LVM-Howto [Was : what are the restrictions on bootablepartitions?]
    ... >>with acl and SELinux support. ... make sure your kernel supports LVM (By default this is ... what you're saying is that I have to create the LVM partition using ... 1st before I can get to execute vgscan?? ...
    (Fedora)
  • Re: More disk space
    ... > I am concerned, long term, that the amount of disk space I have ... an LVM partition, and start moving stuff from / to LVM, like /usr, ...
    (comp.os.linux)