Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BTRFS RAID1 and upgrade...
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
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Wed Jan 31, 2018 12:01 am    Post subject: BTRFS RAID1 and upgrade... Reply with quote

OK, something has changed. I updated a server today and got a new kernel. As such I wanted to build it. Well, the old script I used is no longer working as files are now missing. What is the correct way to now boot from BTRFS RAID1?
Code:

File /sbin/btrfs-show-super could not be opened for reading
 line 46
File /usr/lib64/liblzo2.so.2 could not be opened for reading
 line 52
make[1]: *** [usr/Makefile:74: usr/initramfs_data.cpio.gz] Error 255
make: *** [Makefile:995: usr] Error 2

This happens when I try building the kernel. The files are indeed gone now. This leaves me in a state where I may not even be able to reboot. Help?
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Wed Jan 31, 2018 3:33 am    Post subject: Reply with quote

For me, liblzo2 is now in /lib, not /usr/lib. Based on the name, I expect that package dev-libs/lzo owns this library. Use equery files to see where it places the library for you.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Wed Jan 31, 2018 3:38 am    Post subject: Reply with quote

Well I have a better question for you. I see quite a few posts about people using BTRFS RAID1 with GRUB2 without an initramfs. Is this possible yet?
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Wed Jan 31, 2018 8:22 am    Post subject: Reply with quote

I tried that once and failed to get it working. It needs to scan for related devices just like LVM does, and that requires poking /dev/btrfs-control from userspace. I saw a kernel patch somewhere that was supposed to achieve the same thing pre-init, but never tried it.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Wed Jan 31, 2018 4:46 pm    Post subject: Reply with quote

Alright. I normally do not use an initramfs at all, but RAID still requires it. I long for the day when I do not need one. I built the kernel by commenting out "btrfs-show-super" since, from what I can tell, the binary is gone and a different one which I do not understand fully yet has replaced it. We'll see how things go.
_________________
Ever picture systemd as what runs "The Borg"?
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