Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] LVM "Couldnt read volume group metadata"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Colt45ws
n00b
n00b


Joined: 23 Oct 2018
Posts: 6

PostPosted: Tue Oct 23, 2018 11:44 pm    Post subject: [SOLVED] LVM "Couldnt read volume group metadata" Reply with quote

Hi all!
Im currently setting up a new server and Im using LVM on two GPT formatted 1TB Samsung SSDs. Im using it with a 500MB EFI boot partition; the rest of the drive is for the LVM with root and boot both mirrored. Kernel is current stable gentoo-sources built with a full genkernel using '--lvm' switch.
Got it installed and after a hiccup where I forgot to put 'dolvm' on the kernel command line, Im now seeing
Code:

Failed to read init token.
Couldn't read volume metadata.
Failed to read init token.
Couldn't read volume metadata.

Then it fails to boot because there is no root.


I tried searching for what I need to fix this, but I come up with tutorials on how to repair a failed LVM, however there is nothing wrong with my LVM. I can boot the LiveDVD, run 'vgchange ay' and mount the drive just fine.

Thanks!


Last edited by Colt45ws on Mon Oct 29, 2018 10:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Colt45ws
n00b
n00b


Joined: 23 Oct 2018
Posts: 6

PostPosted: Thu Oct 25, 2018 12:02 am    Post subject: Reply with quote

So Im guessing that I am missing dmraid support in the initramfs so I am trying to get genkernel to build it, however I had a problem with it not being able to find a static lib. So I reemerged LVM with static-libs enabled and that fixed it, however, now its dropping out of the build again for undefined references during linking.
Back to top
View user's profile Send private message
Colt45ws
n00b
n00b


Joined: 23 Oct 2018
Posts: 6

PostPosted: Thu Oct 25, 2018 11:52 pm    Post subject: Reply with quote

Heres the pastebin of the output. I didnt think of getting one yesterday

https://pastebin.com/36HxLjwi

Appears to be having a failure linking against udev? From what Im gathering. To be honest Im not sure that I need DMRAID in the kernel to boot my configuration, but since its not booting with just lvm then Im not sure what exactly is the problem. I think I might try building a kernel manually. Not what I wanted to spend my time doing but maybe genkernel is missing something and thats why? I thought that the Live DVD kernel was made by genkernel but I could be wrong.
Back to top
View user's profile Send private message
Colt45ws
n00b
n00b


Joined: 23 Oct 2018
Posts: 6

PostPosted: Fri Oct 26, 2018 4:39 pm    Post subject: Reply with quote

Well, I gave up on getting genkernel to build DMRAID. I dont know whats wrong but it does not like getting built static or something and it just refuses to work. I don't know why Im having this trouble on this machine with LVM mirror. Ive done this same exact configuration 3 or 4 times now with the exception that this one is an EFI machine and the others were BIOS. The only difference is this has the EFI partition in front rather than the BIOS Boot partition for the inital loading of the kernel and initramfs. But, I dont think that really makes a difference. Im past getting loaded off the EFI partition when it fails. As far as I remember, all I neded on those other machines to make the LVM load was '--lvm' switch on genkernel and 'dolvm' on the kernel command line.

It doesnt help that this error is a generic LVM failed disk error and I get the phone book when I google. I usually can find SOMETHING useful, but I can only find stuff on repairing failed LVM arrays. Which is not my issue.
Gonna end up wiping this machine and installing ubuntu I think. Not that I really want to, but Im out of time to make this machine run.
Back to top
View user's profile Send private message
Colt45ws
n00b
n00b


Joined: 23 Oct 2018
Posts: 6

PostPosted: Mon Oct 29, 2018 3:14 pm    Post subject: Reply with quote

Well, I built a custom kernel using the --menuconfig argument with genkernel. Minimized what was actually needed and still cant get it to work. Im lost as to what the problem is since this has worked for me before. I ran 'vgchange -vvv -ay' and it is seeing the drive, outputting that it found a lvm2 label, but its failing with this error and I dont understand...
Back to top
View user's profile Send private message
Colt45ws
n00b
n00b


Joined: 23 Oct 2018
Posts: 6

PostPosted: Mon Oct 29, 2018 6:56 pm    Post subject: Reply with quote

Okay, I got it to work. I had to install genkernel-next and build a new initramfs. the -next version seems to copy system dmraid rather than build a old version that wont link against new stuff or something to that effect.
Annoying thing is it complains about missing systemd files while making the initramfs, but it seems to work. I gavea cursory look at turning off systemd options and didnt see anything quick and just decided to use it since it works anyways.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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