Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[fixed]root lvm on gpt not activated
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
borrel
n00b
n00b


Joined: 28 Oct 2013
Posts: 2

PostPosted: Mon Oct 28, 2013 10:31 pm    Post subject: [fixed]root lvm on gpt not activated Reply with quote

hi,

i hope i am in the right topic

i have a gpt partition table with a lvm volume on it and when i boot, the lvm vg does not seem to be activated(cannot find root device or something)
if i go to shell i can (only control in /dev/mapper/)
Code:
lvmdiskscan
and
Code:
lvm vgchange -a y Michel
and after that i can boot

tings i have done:


(((ubuntu is working :oops: :oops: )))
lvm listings:
pvdisplay
Code:

  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               Michel
  PV Size               91.77 GiB / not usable 1.32 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              23492
  Free PE               10692
  Allocated PE          12800
  PV UUID               7vmkyn-J0LD-Wcxv-WlDB-hNrG-xyHP-nUvOp8

vgdisplay
Code:
 
  --- Volume group ---
  VG Name               Michel
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  8
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               91.77 GiB
  PE Size               4.00 MiB
  Total PE              23492
  Alloc PE / Size       12800 / 50.00 GiB
  Free  PE / Size       10692 / 41.77 GiB
  VG UUID               fktVjo-0q0O-uuve-2Qgn-mavw-KZOa-v27uvu

lvdisplay
Code:

  --- Logical volume ---
  LV Path                /dev/Michel/Gentoo
  LV Name                Gentoo
  VG Name                Michel
  LV UUID                e5qXm9-9kg1-wkHK-tu7M-Z4h7-GURM-4UY0oA
  LV Write Access        read/write
  LV Creation host, time xubuntu, 2013-09-15 17:18:45 +0200
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/Michel/Home
  LV Name                Home
  VG Name                Michel
  LV UUID                erS4Da-1Db4-AJxH-01pY-8NOY-GkPe-92lR5G
  LV Write Access        read/write
  LV Creation host, time xubuntu, 2013-09-15 17:18:59 +0200
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Path                /dev/Michel/Ubuntu
  LV Name                Ubuntu
  VG Name                Michel
  LV UUID                84nwX0-STOg-1s9h-ulP0-Jleg-cHHD-A8jKfe
  LV Write Access        read/write
  LV Creation host, time xubuntu, 2013-10-27 16:26:58 +0100
  LV Status              available
  # open                 0
  LV Size                10.00 GiB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

gdisk /dev/sda

Code:

GPT fdisk (gdisk) version 0.8.6

Partition table scan:
  MBR: hybrid
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with hybrid MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 500118192 sectors, 238.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): F1CFB757-75BF-4335-86D9-7704E580DF5E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          468991   228.0 MiB   EF00  EFI system partition
   2          468992       307668991   146.5 GiB   0700  Windows
   3       307668992       500118158   91.8 GiB    8E00  Linux LVM



thanks for everyones time


Last edited by borrel on Sat Nov 16, 2013 1:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
tw04l124
Veteran
Veteran


Joined: 03 Oct 2006
Posts: 1423
Location: A t z e l, lower austria

PostPosted: Mon Nov 11, 2013 12:03 am    Post subject: Reply with quote

I use an initrd which I generated ages ago with the older genkernel script.

Please notice, my personal expierence: You just need an initrd for booting your kernel and getting your rootfs enabled and loaded. It does not matter how old the initrd is as long it helps the kernel to see the rootfs and loads the init process.

As my setup is much more complicated I can only point you out to some keywords, which may help you: initrd + busybox + grub2 + genkernel (these keywords may help you to solve your problem)

Please also notice that anything important should be build in your kernel and your kernel and bootloader and initrd must reside outside of lvm in a bootable partition

EDIT: For me it seems you have an issue with your bootloader, assuming grub2m first.

Well if you could provide your relevant section of your bootloader, e.g. hole passage with the loading / initrd ... it may helps. It may also help when you post exactly the genkernel command parameters and version you used, It may be also useful if you could pastebin your kernel config file too.
Back to top
View user's profile Send private message
borrel
n00b
n00b


Joined: 28 Oct 2013
Posts: 2

PostPosted: Sat Nov 16, 2013 1:17 pm    Post subject: Reply with quote

now i feel stupid....
had to add dolvm to the kernelboot line :oops: :oops: :oops:
for grub2: in /etc/default/grub[/code]
Code:

GRUB_CMDLINE_LINUX="dolvm"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum