Re: boot + lvm ?

2007-01-16 Par sujet Gilles Mocellin
Le mardi 16 janvier 2007 14:24, Stephane Durieux a écrit :
 Hello,

 I encounter a problem using lvm and lilo.
 On standart install, everythings works despite the boot partition is on a
 logical volum.

 But when I try to make a custom kernel and then run a lilo, I get the
 following message: device-mapper: table ioctl failed: No such device or
 address
 Fatal: device-mapper: dm_task_run(DM_DEVICE_TABLE) failed
[...]

LVM only installs used to work, with lilo as the bootloader, but since ~kernel 
2.6.17+udev, it does not anymore.
Read the full history here :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=401393

I had the surprise one day, with my workstation, it could not boot after a 
kernel upgrade (I was following etch/testing).
I had to repartition an create a separate /boot.
I do that systematically since, 100Mo as the first partition. So that I can 
use grub again, which is less dangerous.


pgp9H65oBjNQz.pgp
Description: PGP signature


Re: boot + lvm ?

2007-01-16 Par sujet David BERCOT
Bonjour,

Le Tue, 16 Jan 2007 14:19:42 +0100 (CET),
Stephane Durieux [EMAIL PROTECTED] a écrit :

 Bonjour,
 
 J ai installe debian etch avec lvm. 
 Lilo est le gestionnaire de demarrage.
 La partition / (/boot comprise) est sur un LVM.
 Cela n a bizarrement pose aucun probleme a l install 
 
 Par contre lorsque je recompile un noyau et que je relance lilo 
 j ai un message d erreur du type
 device-mapper: table ioctl failed: No such device or address
 Fatal: device-mapper: dm_task_run(DM_DEVICE_TABLE) failed
 
 Voici mon lilo.conf
 -
 boot=/dev/sda
 root=/dev/mapper/volume_group1-logical_vol2
 map=/boot/map
 delay=20
 
 default=Linux
 image=/vmlinuz
 label=Linux
 read-only
 initrd=/initrd.img
 image=/vmlinuz.old
 label=LinuxOLD
 read-only
 optional
 initrd=/initrd.img.old
 
 Comment se fait il que le
 root=/dev/mapper/volume_group1-logical_vol2  pose un probleme alors
 que lors de l install standart non
 
 Merci de votre aide

En fait, c'est simple. Lors de l'install, le noyau est lancé et tout le
reste aussi. Donc, définir un VG et les VL qui vont avec ne pose aucun
problème. A ce moment-là, dire qu'on veut aussi /boot dans la partie
LVM, même si c'est illogique (on va y revenir) est tout à fait possible.

Maintenant, l'installation étant terminée, lors d'un boot, il doit
charger le noyau puis le reste (dont les outils de gestion des LVM).
Or, le noyau se trouve dans un VG !!! Bref, c'est le serpent qui se
mort la queue ;-)

Pour utiliser du LVM, on peut tout mettre dedans, SAUF la
partie /boot...
Désolé ;-)

David.


signature.asc
Description: PGP signature