ryao / zfs-overlay Goto Github PK
View Code? Open in Web Editor NEWDevelopment Overlay for ZFS Support in Gentoo Linux
Development Overlay for ZFS Support in Gentoo Linux
This is where Gentoo ZFS development is done. All useful changes made here are integrated with Gentoo's main tree after they have been properly validated. Only end users who have received explicit directions from ryao should use it. Those that have should switch back to the main tree as soon as they have been told that their issue has been fixed. To add this overlay to a Gentoo system, run the following command: layman -o https://raw.github.com/ryao/zfs-overlay/master/overlay.xml -f -a zfs Note that you must have both dev-vcs/git and app-portage/layman installed on your system for this to work. Please file bug reports for ebuilds in the portage tree in the Gentoo bug tracker and bug reports for ebuilds in this overlay on github.
[ 2.369380] Switched to clocksource tsc
[ 2.675954] SPL: using hostid 0x00000000
[ 8.177681] NET: Registered protocol family 10
[ 8.178396] systemd[1]: Inserted module 'ipv6'
Hi, ryao
What's the meaning of hostid? should I and how to set id under Gentoo?
Thanks.
Line 34 in 87000f0
I'm trying to emerge sys-fs/zfs according to your instruction from https://github.com/ryao/zfs-overlay/blob/master/zfs-install but stuck on the following problem:
libtool: install: warning: ../../lib/libuutil/libuutil.la' has not been installed in
/usr/lib64'
libtool: install: warning: ../../lib/libzfs/libzfs.la' has not been installed in
/usr/lib64'
libtool: install: warning: /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/lib/libnvpair/libnvpair.la' has not been installed in
/usr/lib64'
libtool: install: warning: /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/lib/libzpool/libzpool.la' has not been installed in
/usr/lib64'
libtool: install: warning: /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/lib/libuutil/libuutil.la' has not been installed in
/usr/lib64'
make[3]: Leaving directory /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/mount_zfs' make[2]: Leaving directory
/var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/mount_zfs'
Making install in zpool_layout
make[2]: Entering directory /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zpool_layout' make[3]: Entering directory
/var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zpool_layout'
test -z "/bin" || /bin/mkdir -p "/var/tmp/portage/sys-fs/zfs-9999/image//bin"
make[3]: Nothing to be done for install-data-am'. /usr/bin/install -c zpool_layout '/var/tmp/portage/sys-fs/zfs-9999/image//bin' make[3]: Leaving directory
/var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zpool_layout'
make[2]: Leaving directory /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zpool_layout' Making install in zvol_id make[2]: Entering directory
/var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zvol_id'
make[3]: Entering directory /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zvol_id' make[3]: Nothing to be done for
install-exec-am'.
test -z "pkg-config --variable=udevdir udev" || /bin/mkdir -p "/var/tmp/portage/sys-fs/zfs-9999/image/pkg-config --variable=udevdir udev"
/bin/sh ../../libtool --silent --mode=install /usr/bin/install -c zvol_id '/var/tmp/portage/sys-fs/zfs-9999/image/pkg-config --variable=udevdir udev'
/usr/bin/install: unrecognized option '--variable=udevdir'
Try '/usr/bin/install --help' for more information.
make[3]: *** [install-udevPROGRAMS] Error 1
make[3]: Leaving directory /var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zvol_id' make[2]: *** [install-am] Error 2 make[2]: Leaving directory
/var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd/zvol_id'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/zfs-9999/work/zfs-9999/cmd'
make: *** [install-recursive] Error 1
emerge --info '=sys-fs/zfs-9999'
,emerge -pqv '=sys-fs/zfs-9999'
.Same for 0.6.0_rc9-r6. Also I've tried to turn on/off static-libs use flag but without any effect.
Could you help me this this issue?
Hi, ryao
I googled and found zfsonlinux still not support TRIM on SSD, right?
And I append hostid to the kernel command line, but boot still warning it is 0x0000000, how to fix this?
I use the zfs-install guide pretty often as a reference, and noticed a few things may need updated. I would be glad to help. I just added a mask for the newest kernels, and changed a few lines for package.use since the syntax seems to have slightly changed
Thanks!
Located on lines 109 and 119, 'grub2-probe' and 'grub2-install' are now 'grub-probe' and 'grub-install'
zpool create -f -o ashift=12 -o cachefile=/tmp/zpool.cache -O normalization=formD -m none -R /mnt/gentoo -d -o feature@async_destroy=enabled -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled -o feature@spacemap_histogram=enabled -o feature@enabled_txg=enabled -o feature@extensible_dataset=enabled -o feature@bookmarks=enabled rpool /dev/sda
zfs umount "/mnt/gentoo/rpool"
rmdir "/mnt/gentoo/rpool"
zfs create -o mountpoint=none rpool/ROOT
zfs create -o mountpoint=/ rpool/ROOT/gentoo
zfs create -o mountpoint=/home rpool/HOME
zfs create -o mountpoint=/root rpool/HOME/root
zfs create -o mountpoint=none -o setuid=off rpool/GENTOO
zfs create -o mountpoint=/usr/portage -o atime=off rpool/GENTOO/portage
zfs create -o mountpoint=/usr/portage/distfiles rpool/GENTOO/distfiles
zfs create -o mountpoint=/var/tmp/portage -o compression=lz4 -o sync=disabled rpool/GENTOO/build-dir
zfs create -o mountpoint=/usr/portage/packages rpool/GENTOO/packages
zfs create -o mountpoint=/var/tmp/ccache -o compression=lz4 rpool/GENTOO/ccache
zpool set bootfs=rpool/ROOT/gentoo rpool
wget 'ftp://gentoo.osuosl.org/pub/gentoo/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-[0-9]*.tar.bz2'
tar -xvjpf stage3-amd64-*.tar.bz2 -C /mnt/gentoo
mkdir -p /mnt/gentoo/etc/zfs
cp /tmp/zpool.cache /mnt/gentoo/etc/zfs/zpool.cache
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount --rbind /dev /mnt/gentoo/dev
mount --rbind /sys /mnt/gentoo/sys
chroot /mnt/gentoo /bin/bash
env-update; source /etc/profile; export PS1="(chroot) $PS1"; cd
env GENTOO_MIRRORS="http://gentoo.osuosl.org" emerge-webrsync
emerge sys-kernel/genkernel
emerge sys-kernel/gentoo-sources
genkernel kernel --no-clean --no-mountboot
echo "sys-kernel/spl ~amd64" >> /etc/portage/package.accept_keywords
echo "sys-fs/zfs-kmod ~amd64" >> /etc/portage/package.accept_keywords
echo "sys-fs/zfs ~amd64" >> /etc/portage/package.accept_keywords
emerge sys-fs/zfs
rc-update add zfs-import boot
rc-update add zfs-mount boot
rc-update add zfs-share default
rc-update add zfs-zed default
emerge sys-apps/gptfdisk
sgdisk --new=2:48:2047 --typecode=2:EF02 --change-name=2:"BIOS boot partition" /dev/sda
echo 1 > /proc/sys/vm/drop_caches
echo "sys-boot/grub:2 libzfs" >> /etc/portage/package.use/zfs
echo "sys-boot/grub:2 ~amd64" >> /etc/portage/package.accept_keywords
emerge sys-boot/grub:2
touch /etc/mtab
grub2-probe /
emerge -1v --nodeps =sys-fs/zfs-0.6.5.3
grub2-install /dev/sda
touch /boot/grub/grub.cfg
genkernel all --no-clean --no-mountboot --zfs --bootloader=grub2 --callback="emerge @module-rebuild"
emerge -1v --nodeps sys-fs/zfs
genkernel initramfs --no-clean --no-mountboot --zfs
sed -i -e "s/(.)/(BOOT|ROOT|SWAP)(.)/#\1/\2\3/g" /etc/fstab
zfs snapshot rpool/ROOT/gentoo@install
echo options zfs zfs_arc_max=536870912 >> /etc/modprobe.d/zfs.conf
echo PORTAGE_NICENESS=19 >> /etc/make.conf
cat << END > /usr/local/sbin/portage-cgroup
#!/bin/sh
cgroup=$(mktemp -d --tmpdir=/sys/fs/cgroup/cpu portage-XXXX) &&
echo
echo 1 > "${cgroup}/notify_on_release"
echo 256 > "${cgroup}/cpu.shares"
END
chmod u+x /usr/local/sbin/portage-cgroup
echo 'PORTAGE_IONICE_COMMAND="/usr/local/sbin/portage-cgroup ${PID}"' >> /etc/make.conf
zfs create -o sync=always -o primarycache=metadata -o secondarycache=none -b 4K -V 8G rpool/swap
mkswap -f /dev/zvol/rpool/swap
zfs snapshot rpool/swap@install
zfs create -o mountpoint=/home/user rpool/HOME/user
into procedure"Gentoo Linux currently has an unofficial LiveCD by Zachary Bendell" does not help anyone.
Where is it?
Hi.
Could you add support for systemd into your perfect ebuilds? Just analogue of /etc/init.d/zfs ?
It lags and causes desktop freeze for a few seconds sometimes. ROOT is on SSD, no compression there (except the games subfolder).
Never experienced that with ext3/ext4. It may slow down the system a bit, but no lagging behavior.
zfs-install file mentions option for zfs module:
zfs_arc_max=512M
But trying to load module with this option is complaing that value "512M" is bad. I think "M" should be dropped.
Hi, ryao
I notice zfsonlinux for gentoo official repos has not been updated long time ago. I still stick to the kernel 4.4, but zfsonlinux has already released v0.6.5.7 for 4.6 kernel series.
I want to ask what's the status for zfsonlinux of gentoo? Is it out of support or update now?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.