You are not logged in.

#1 2010-08-01 05:53:09

mmtrigger
Member
Registered: 2010-01-12
Posts: 6

GRUB2 + /boot on LVM

I am having problems getting Arch to boot using LVM2. Currently I have all my linux partitions set up on LVM2. When I boot the system, I receive an error from grub2 stating "error: no such disk" and then I am dropped to the grub rescue shell. I attempt to load the normal.mod module so I can run some tests, but I am unable to do. Running ls yields (hd[0-5]) (fd0).

I assume then that the lvm module is not being loaded properly, but I don't see why. I'm using a manually created grub.cfg file as at first I suspected that grub-mkconfig was the source of the problems. Might anyone have some ideas as to what I'm doing wrong?

The grub.cfg file is as follows:

insmod lvm

insmod vbe
insmod gfxterm

set gfxmode=1680x1050

set timeout=30
set default="0"
set fallback="1"

menuentry "Arch Linux" --class archlinux --class gnu-linux --class gnu --class os {
        insmod lvm
        set root='(VolGroup00-lvolboot)'
        linux   /vmlinuz26 root=/dev/mapper/VolGroup00-lvolroot ro
        initrd  /kernel26.img
}
menuentry "Arch Linux Fallback" --class archlinux --class gnu-linux --class gnu --class os {
        insmod lvm
        set root='(VolGroup00-lvolboot)'
        linux   /vmlinuz26 root=/dev/mapper/VolGroup00-lvolroot ro
        initrd  /kernel26-fallback.img
}

menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}

menuentry "Memory test (memtest86+)" --class memtest86 --class gnu --class tool {
        insmod lvm
        set root='(VolGroup00-lvolboot)'
        linux16 ($root)/memtest86+/memtest.bin
}

My drive setup is as follows:

[root@sysresccd /]# fdisk -l /dev/sda

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf123854d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    16787924     8393931    7  HPFS/NTFS
/dev/sda2        16787925   310391864   146801970    7  HPFS/NTFS
/dev/sda3       310391865   625142447   157375291+  8e  Linux LVM
[root@sysresccd /]# fdisk -l /dev/sdb

Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdd93aad7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  1465145343   732571648    7  HPFS/NTFS
[root@sysresccd /]# fdisk -l /dev/sdc

Disk /dev/sdc: 120.0 GB, 120033041920 bytes
48 heads, 29 sectors/track, 168419 cylinders, total 234439535 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1d6a363a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048   234439534   117218743+  8e  Linux LVM
[root@sysresccd /]# fdisk -l /dev/sdd

Disk /dev/sdd: 120.0 GB, 120033041920 bytes
48 heads, 29 sectors/track, 168419 cylinders, total 234439535 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbb0c40d5

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            2048   234439534   117218743+   7  HPFS/NTFS

LVM config:

[root@sysresccd /]# lvdisplay 
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolhome
  VG Name                VolGroup00
  LV UUID                yC8o1F-p5fj-7g3v-lSbN-q0Bh-JZiP-12iTn4
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                120.00 GiB
  Current LE             30720
  Segments               3
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolroot
  VG Name                VolGroup00
  LV UUID                yEzXh8-CmyI-W254-PYOU-XtlX-UAfx-2O8Ldo
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                25.00 GiB
  Current LE             6400
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolboot
  VG Name                VolGroup00
  LV UUID                hwuRGk-U8yU-SDTg-xOuo-Y4rY-v1Ln-qty6B6
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 MiB
  Current LE             10
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolswap
  VG Name                VolGroup00
  LV UUID                XOzG0h-afgz-l9Xs-R5Cc-5QdK-3Bcu-ycJiu1
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4.00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

Offline

Board footer

Powered by FluxBB