I tried to install RSEL on my new and faster SD card. I couldn't complete the install. zfs-fuse is running but I cannot import the zpool. Also, since the dreamplug is not that powerful, would it be possible to build the image based on the minimal server? If somebody wants to add any GUI capability, this could be done later from repository. Many thanks for you work, Gordan.
pre-mount:/etc# ps -auxw | grep zfs root 164 0.0 0.5 18656 2616 ? Ssl 00:00 0:00 @bin/zfs-fuse root 232 0.0 0.1 2568 688 ttyS0 S+ 00:06 0:00 grep zfs pre-mount:/etc# zpool import pre-mount:/etc# zpool status no pools available > On Nov 8, 2015, at 8:04 AM, Gordan Bobic <[email protected]> wrote: > > For those who share my appreciation of zfs, I will be releasing > a patch to zfs-fuse-dracut package that facilitates better > functioning when it is used for zfs-root. > > Problem: > zfs-fuse relies on /proc and /dev for importing new pools. > Unfortunately, when it runs from initramfs, systemd, tears down > all of it's contents - the only file handles that remain > available to zfs-fuse are the ones it already has open at the > point the tear-down happens. > > Workaround: > Don't use initramfs. The problem is that this means we need a > different pre-root environment for zfs-fuse to run in. What we > can use is squashfs running from a raw partition. That does me > we need an additional partition on the disk, but that is hardly > the end of the world. > > We simply unpack the initramfs generated, and re-make it as a > squashfs. > > So what we do is we pass to the kernel: > root=/dev/werever_we_put_squashfs_partition > > That gets is booting the pre-root environment, but then we have > to do something for the pre-root environment to mount the real > rootfs. This is where the new zfs-fuse-dracut patch comes in. > It now understands a kernel boot paramter zfsroot=pool/fs, which > it will use in preference to root= to determine what FS to use > as the rootfs. > > Effect: > Because the rootfs is read-only squashfs it doesn't get torn > down, and zfs-fuse remains fully functional, able to import > new pools (e.g. from removable media). > > Side effect: > Init fs ends up showing up mounted on /mnt. > > I will put together a more detailed howto on the conversion of > initramfs to squashfs for those that need it once I have > released the zfs-fuse-dracut patch. > > Gordan > _______________________________________________ > users mailing list > [email protected] > https://lists.redsleeve.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] https://lists.redsleeve.org/mailman/listinfo/users
