[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lvm2 boot failure



Hi list,

My server doesn't boot after raid card faliure. I recreated the raid1 array, partitioned and copyed the whole system to it. Then executed lilo -v .

I did this with an ubuntu live cd.
My system looks like:

--------

root@ubuntu:~# fdisk -l /dev/cciss/c0d0

Disk /dev/cciss/c0d0: 750.1 GB, 750122819584 bytes
255 heads, 32 sectors/track, 179544 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Disk identifier: 0x328a4cac

          Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1               1         124      505904   83  Linux
/dev/cciss/c0d0p2 125 1105 4002480 82 Linux swap / Solaris
/dev/cciss/c0d0p3            1106      179544   728031120   83  Linux

root@ubuntu:~# lvdisplay
 --- Logical volume ---
 LV Name                /dev/vg/root
 VG Name                vg
 LV UUID                rldE8M-gavU-uez4-T14x-lKk1-B7cl-M4icBM
 LV Write Access        read/write
 LV Status              available
 # open                 0
 LV Size                50,00 GB
 Current LE             12800
 Segments               1
 Allocation             inherit
 Read ahead sectors     0
 Block device           254:0

 --- Logical volume ---
 LV Name                /dev/vg/backup
 VG Name                vg
 LV UUID                wEp83h-BZnw-Fekq-e61M-jcFL-BYUw-4fWVu7
 LV Write Access        read/write
 LV Status              available
 # open                 0
 LV Size                20,00 GB
 Current LE             5120
 Segments               1
 Allocation             inherit
 Read ahead sectors     0
 Block device           254:1

 --- Logical volume ---
 LV Name                /dev/vg/home
 VG Name                vg
 LV UUID                ueOdGS-gdjx-tpTU-KWuH-ZB5p-6qUd-6aoFkI
 LV Write Access        read/write
 LV Status              available
 # open                 0
 LV Size                100,00 GB
 Current LE             25600
 Segments               1
 Allocation             inherit
 Read ahead sectors     0
 Block device           254:2

 --- Logical volume ---
 LV Name                /dev/vg/mail
 VG Name                vg
 LV UUID                20P4AE-BMeP-iKzL-ABGF-dLZm-qk0w-QDaWCC
 LV Write Access        read/write
 LV Status              available
 # open                 0
 LV Size                524,00 GB
 Current LE             134144
 Segments               1
 Allocation             inherit
 Read ahead sectors     0
 Block device           254:3


ubuntu:/# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.26-1-686
Warning: '/proc/partitions' does not match '/dev' directory structure.
   Name change: '/dev/dm-0' -> '/dev/vg/home'
Warning: '/dev' directory structure is incomplete; device (254, 2) is missing. Warning: '/dev' directory structure is incomplete; device (254, 3) is missing.
Warning: /dev/cciss/c0d0p1 is not on the first disk
Warning: Unable to determine video adapter in use in the present system.
Added 26191
Added linux *


ubuntu:/# lilo -v
LILO version 22.6.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 17-Nov-2004, and compiled at 20:27:20 on Jul 31 2006
Debian GNU/Linux

Reading boot sector from /dev/cciss/c0d0p1
Warning: '/proc/partitions' does not match '/dev' directory structure.
   Name change: '/dev/dm-0' -> '/dev/vg/home'
   Name change: '/dev/dm-1' -> '/dev/vg/root'
   Name change: '/dev/dm-2' -> '/tmp/dev.0'
Warning: '/dev' directory structure is incomplete; device (254, 2) is missing.
   Name change: '/dev/dm-3' -> '/tmp/dev.1'
Warning: '/dev' directory structure is incomplete; device (254, 3) is missing.
Warning: /dev/cciss/c0d0p1 is not on the first disk
Warning: Unable to determine video adapter in use in the present system.
Using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/sid.bmp
Calling map_insert_file

Boot image: /boot/vmlinuz-2.6.19.1
Added 26191

Boot image: /vmlinuz -> boot/vmlinuz-2.6.26-1-686
Mapping RAM disk /initrd.img -> boot/initrd.img-2.6.26-1-686
Added linux *

Writing boot sector.
/boot/boot.6801 exists - no boot sector backup copy made.
ubuntu:/# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/vg/root    /            ext3    defaults    0       1
proc            /proc           proc    defaults        0       0
/dev/vg/home    /home        ext3    defaults,noatime    0    2
/dev/vg/mail    /var/mail    ext3    defaults,noatime    0    2
/dev/vg/backup    /mnt/mail    ext3    defaults    0    2
/dev/cciss/c0d0p1    /boot    ext2    defaults    0    2
#/dev/md1    none            swap    sw              0       0
/dev/hdc        /media/cdrom    iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy   auto    rw,user,noauto  0       0


--------------

Screenshot from the boot screen: http://kiru.mikroweb.hu/IMG_1145.JPG


If you need more information please let me known.

--
Regards
----
kiru
----


Reply to: