LVM + Stromausfall + Wiederherstellen
Peter Lohmann
listenmann at elrond.lohmann-services.de
Fri Apr 5 18:23:03 CEST 2002
On Fri, Apr 05, 2002 at 04:42:31PM +0200, Frank Matthieß wrote:
> Freitag den 5.04.2002 um 16:11 CEST +0200, schrieb Peter Lohmann:
> >
> > On Fri, 5 Apr 2002 14:26:19 +0200, Frank Matthieß said:
> >
> > > Freitag den 5.04.2002 um 14:06 CEST +0200, schrieb Peter Lohmann:
> > > >
> > > > Nun will ich wieder von LVM booten....
> > > > Per grub:
> > > >
> > > > root hd(0,0)
> > > > kernel /vmlinuz-2.4.18 root=/dev/myvg/slash ro
> > > > initrd /initrd-lvm-2.4.18.gz
> > > > savedefault
> > > >
> > > > Der Bootvorgang läuft an bis:
> > > >
> > > > RAMDISK: compressed image found at block 0
> > > > Freeing initrd memory: 1075k freed
> > > > VFS: mounted root (ext2 filesystem)
> > > > vgscan -- reading all physical volumes (this may take a while)...
> > > > vgscan -- found inactive volume group "myvg"
> > > > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> > > > vgscan -- WARNING: This program does not do a VGDA backup of your volume
> > > > group
> > > >
> > > > vgchange -- volume group "myvg" successfully activated
> > > >
> > > > Kernel panic: I have no root and I want to scream
> > >
> > > grub lößt "/dev/myvg/slash" nicht auf, d.h. es kann das Device nicht
> > > finden. Du brauchst die Major/Minor Number des Gerätes als Hexzahl.
> > > Diese Parameter als root= wird dein root fs auffindbar machen.
> >
> > Wie ist da die Schreibweise bzw. wie muß ich das umrechnen?
>
> Dezimal -> Hex
>
> Shellsyntax: printf "%02x%02x" MajorNumber $MinorNumber
>
> Beispiel:
>
> ls -l /dev/vg_sys/home
> brw-rw---- 1 root disk 58, 4 3. Apr 17:01 /dev/vg_sys/home
>
> printf "root=%02x%02x\n" 58 4 -> root=3a04
Danke! Das hat geholfen!
Beste Gruesse
Peter
More information about the Linux
mailing list