[zfs-discuss] unable to boot zfs pool using dracut and systemd

covici at ccs.covici.com covici at ccs.covici.com
Mon Jan 18 18:36:52 EST 2016


For me, dracut only works WITHOUT a root entry in the kernel command
line!  I do have a root entry in /etc/fstab just like the one I stated
below, i.e.
rpool/root / zfs defaults 0 0

Kostya Berger via zfs-discuss <zfs-discuss at list.zfsonlinux.org> wrote:

> Yeam I'm having similar problem now.
> How about root entry for /etc/fstab?
> Also, when you don't provide root= for booting kernel, you get dropped into dracut shell.When so, what does `zpool import` show? Alternatively you can try try `zpool import -d /dev/disk/by-id or by-uuid or by-partuuid -- depending on what your rpool has been linked to.
> I had that problem with FreeBSD-created zpool on a GPT partition -- had to use /dev/disk/by-partuuid. Now I'm using raw (full) disk zfs with NO partitions at all and it appears in linux as linked to /de/disk/by-id. So if you don't need FreeBSD, you follow linux recommendations to properly create zpool. Somewhere in Archlinux wiki thre's more on this...
> Sent from Yahoo Mail on Android 
>  
>   On Tue, Jan 19, 2016 at 1:32, John Covici via zfs-discuss<zfs-discuss at list.zfsonlinux.org> wrote:   Hi.  I have been trying to get a zpool into a state where I can have zfs
> as root  and /usr and other file systems, but Dracut does not play
> nice.  It will not find the pool, unless I omit the root= variable from
> the kernel command line and even then, it will not mount a separate /usr
> zfs dataset.  The fstab entry for that file system is
> rpool/usr /usr zfs defaults 0 2
> 
> So, am I doing something wrong, or is Dracut broken or what?
> 
> Thanks in advance for any suggestions.
> 
> -- 
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
> 
>         John Covici
>         covici at ccs.covici.com
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>   
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici at ccs.covici.com


More information about the zfs-discuss mailing list