Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZFS root problems with initramfs
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
WxY
n00b
n00b


Joined: 25 Apr 2011
Posts: 16

PostPosted: Sat Jun 22, 2013 7:28 pm    Post subject: ZFS root problems with initramfs Reply with quote

Hi all,

I've been trying to use ZFS as my rootfs with 12 disks attached to a M1015 controller plus expander. Obvious problem is the asynchronous attachment reorders the disks, making zfs crap its pants unless I create the zpools with disk ids.

anyways I've been having trouble figuring out how to get /dev/disks/by-id symblinks before rootfs is mounted. I've tried genkernel and Dracut generated initramfs but had no luck. I'm about to start making my own initramfs to try and solve this problem, but I'd prefer an existing solution.

anyone have an idea what I'm doing wrong?
Back to top
View user's profile Send private message
ryao
Retired Dev
Retired Dev


Joined: 27 Feb 2012
Posts: 132

PostPosted: Sat Jun 22, 2013 7:38 pm    Post subject: Reply with quote

You are not doing anything wrong. The problem is that by-id is not implemented in genkernel. It was considered a low priority because no one requested it.

I am working on a patch that could help, but it is in an early stage of development. I suggest filing bug reports on the Gentoo bug tracker and ZFSOnLinux github issue tracker.
Back to top
View user's profile Send private message
WxY
n00b
n00b


Joined: 25 Apr 2011
Posts: 16

PostPosted: Sat Jun 22, 2013 7:54 pm    Post subject: Reply with quote

Thanks for the fast response. I'll get on that as soon as I restore connectivity. I'm typing this on my phone cause the affected machine is the ISCSI target serving the gateway VM disk LUNs.

so anyways, I was thinking of copying over the udev rules and trying to get mdev to run them. This should be possible right?
Back to top
View user's profile Send private message
ryao
Retired Dev
Retired Dev


Joined: 27 Feb 2012
Posts: 132

PostPosted: Sat Jun 22, 2013 7:57 pm    Post subject: Reply with quote

WxY wrote:
Thanks for the fast response. I'll get on that as soon as I restore connectivity. I'm typing this on my phone cause the affected machine is the ISCSI target serving the gateway VM disk LUNs.

so anyways, I was thinking of copying over the udev rules and trying to get mdev to run them. This should be possible right?


I am afraid that it is not possible. mdev does not understand udev rules. Custom rules need to be written just for mdev. There is the possibility of bringing udev into genkernel's initramfs, which would solve this issue. Sabayon's genkernel already has this functionality. It could be ported, but one of us will need to make time to do it. I think Sabayon's genkernel is already in the tree as sys-kernel/genkernel-next. In theory, you should be able to use that to get this functionality, but I have not tested it and my plan is to merge the Sabayon changes back into genkernel.
Back to top
View user's profile Send private message
WxY
n00b
n00b


Joined: 25 Apr 2011
Posts: 16

PostPosted: Sat Jun 22, 2013 9:04 pm    Post subject: Reply with quote

Alright! Genkernel-next produced a good initramfs. it seems to incorrectly report a pool import error though. But it boots and the pool survives order changes just fine. So it seems like a good interim solution.

And now begins the long restoration from tape >_>

I'll remember to file that issue. And thanks for the support, you just saved me from having to obtain a license from horacle.
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