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

covici at ccs.covici.com covici at ccs.covici.com
Tue Jan 19 02:37:10 EST 2016


Its  supported, unless the file systems are zfs --dracut supports it
quite nicely for lvm and ext4 systems.

Gordan Bobic via zfs-discuss <zfs-discuss at list.zfsonlinux.org> wrote:

> On your distro, is /sbin a symlink to /usr/sbin?
> If so, having a separate /usr simply isn't going to work, as I explained
> before. Initrd will get your rootfs mounted and perform a switchroot, but
> once it gets there, there will be no way to do anything because the new
> rootfs has no systemd, no mount.zfs, no zfs, or anything else. Even if the
> distro version you are running now isn't laid out like this (because it is
> an older version), all major distros are heading in this direction.
> Separate /usr is becoming completely unsupportable.
> 
> On Mon, Jan 18, 2016 at 11:36 PM, John Covici via zfs-discuss <
> zfs-discuss at list.zfsonlinux.org> wrote:
> 
> > 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
> > _______________________________________________
> > 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