You are not logged in.

#1 2009-07-03 05:49:35

XtrmGmr99
Member
Registered: 2009-04-14
Posts: 128

[SOLVED] GRUB Problem with LVM

Hello,

Okay, so I followed the steps here, and I end up with an Error 17: cannot mount selected partition.

This is the breakdown of my setup
sda - 250GB
-- sda1 - 250 GB LVM
sdb  - 80 GB
-- sdb1 - 80 GB LVM
sdc - 40GB
-- sdc1 - 250MB, bootable Linux filesystem (for GRUB, since it can't handle anything LVM)
-- sdc2 - 39.3 GB LVM

All of the LVM partitions are clumped together to create one large Volume Group labeled VolGroup00

In VolGroup00, I have a few logical volumes:
20GB /
20GB /home
1GB swap
250GB /storage

/boot is supposed to be mounted on /dev/sdc1. My GRUB menu looks like this:

# (0) Arch Linux
title  Arch Linux
root   (hd2,0)
kernel /vmlinuz26 root=/dev/mapper/VolGroup00-lvolroot resume=/dev/mapper/VolGroup00-lvolswap ro
initrd /kernel26.img

I dunno what I did wrong. /boot is on a normal, bootable Linux filesystem, and I don't think I screwed up while following the wiki. =/ Any help is appreciated.

Some more info:

Output of fdisk -l

Disk /dev/sda: 251.0 GB, 251000193024 bytes
240 heads, 63 sectors/track, 32422 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x4fa9eb4f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       32422   245110288+  8e  Linux LVM

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x000aa74d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      155061    78150712+  8e  Linux LVM

Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4b36bdea

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1          30      240943+  83  Linux
/dev/sdc2              31        4865    38837137+  8e  Linux LVM

Disk /dev/sdd: 8086 MB, 8086617600 bytes
248 heads, 16 sectors/track, 3980 cylinders
Units = cylinders of 3968 * 512 = 2031616 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1         170      337089+  83  Linux

Disk /dev/sde: 5000 MB, 5000970240 bytes
154 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 9548 * 512 = 4888576 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *           1        1022     4878997   83  Linux

pvdisplay

  --- Physical volume ---
  PV Name               /dev/sda1
  VG Name               VolGroup00
  PV Size               233.76 GB / not usable 1.52 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              59841
  Free PE               0
  Allocated PE          59841
  PV UUID               gFmcVo-1hft-W5WY-WSsb-Cx9O-AtSy-uebJQE
   
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               VolGroup00
  PV Size               74.53 GB / not usable 3.06 MB
  Allocatable           yes 
  PE Size (KByte)       4096
  Total PE              19079
  Free PE               4424
  Allocated PE          14655
  PV UUID               EM1AK2-UsBD-nTDj-52sZ-LpYW-rS5i-AEH4Vr
   
  --- Physical volume ---
  PV Name               /dev/sdc2
  VG Name               VolGroup00
  PV Size               37.04 GB / not usable 2.89 MB
  Allocatable           yes 
  PE Size (KByte)       4096
  Total PE              9481
  Free PE               9481
  Allocated PE          0
  PV UUID               dwXCls-Ce4b-2Kjp-dgKE-NTOX-seCv-Q4jfiv

vgdisplay

  --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               0
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               345.32 GB
  PE Size               4.00 MB
  Total PE              88401
  Alloc PE / Size       74496 / 291.00 GB
  Free  PE / Size       13905 / 54.32 GB
  VG UUID               nltb47-cx1W-oJb1-5rvA-ECgb-rcuX-ysP33i

lvdisplay

  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolroot
  VG Name                VolGroup00
  LV UUID                1ZdePr-hcnS-Ykzv-p99J-dfKV-4Ng1-r42Dt0
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                20.00 GB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolhome
  VG Name                VolGroup00
  LV UUID                HJ3qGb-ThzI-UDkI-kItC-ThPk-iiP4-LXe4eD
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                20.00 GB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolswap
  VG Name                VolGroup00
  LV UUID                DXIpqt-op4c-1qfq-MB9C-sp0F-kSTa-g16QAF
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                1.00 GB
  Current LE             256
  Segments               1
  Allocation             contiguous
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolstorage
  VG Name                VolGroup00
  LV UUID                RTiGDD-0xoF-VX2v-QKcv-6MLZ-7mX8-J14aQQ
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                250.00 GB
  Current LE             64000
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto

Last edited by XtrmGmr99 (2009-07-03 07:33:11)

Offline

#2 2009-07-03 07:22:01

XtrmGmr99
Member
Registered: 2009-04-14
Posts: 128

Re: [SOLVED] GRUB Problem with LVM

Nevermind. Turned out that the root in the GRUB menu was (hd2,0), when it should be hd(0,0)

What's weird is that the hard drive with /boot is on the third harddisk, thus hd(2,0). But whatever, it works. smile

Offline

Board footer

Powered by FluxBB