Open mihai-satmarean opened 3 years ago
Their official repo does not support aarch64, and it's hosted on S3, so you get 403 instead of 404.
Here's what you need to do:
rpm-build
and creatrerepo
/etc/modules-load.d/zfs.conf
which contains zfs
tar --no-same-permissions -xzvf zfs-x.y.z.tar.gz -C /usr/local/src
, fix permissions with chown -R operator:root /usr/local/src/zfs-x.y.z
so you can compile as an unprivileged useroperator
above, change it if you want a different user), cd /usr/local/src/zfs-x.y.z && ./configure --with-spec=redhat && make -j1 rpm-utils rpm-kmod
(assuming you want a kABI version of ZFS, which you probably do on CentOS)chown -R root:root /usr/local/src/zfs-x.y.z
cd /usr/local/src/zfs-x.y.z && mkdir -p /usr/local/share/zfs-yumrepo/RPMS && cp -v *.rpm /usr/local/share/zfs-yumrepo/RPMS && chmod -R 0755 /usr/local/share/zfs-yumrepo && chown -R root:root /usr/local/share/zfs-yumrepo && createrepo --workers 1 /usr/local/share/zfs-yumrepo
cd /usr/local/src/zfs-x.y.z && make clean && rm -rf *.rpm *.tar.gz
file:///usr/local/share/zfs-yumrepo
yum update && yum install zfs zfs-dracut
systemctl restart systemd-modules-load
dracut --verbose --force --kver your_kernel_version_here
to rebuild your initramfsmkdir /etc/zfs/zfs-list.cache && chown root:root /etc/zfs/zfs-list.cache && chmod 0755 /etc/zfs/zfs-list.cache && ln -s /usr/libexec/zfs/zed.d/history_event-zfs-list-cacher.sh /etc/zfs/zed.d/history_event-zfs-list-cacher.sh
touch /etc/zfs-list.cache/your_pool_name
- this will have zfs-mount-generator
keep systemd up to date from now on; ZFS integrates into systemd like a native Linux filesystemI've been running this in production for a long time (the above is actually done with some Chef recipes, so if I missed something, let me know), and it works very well.
I don't see a GitHub issue for officially having aarch64 packages built, and I'd love to see what it would take to have them build it for both architectures. Should this issue change to something like "RHEL-based distro repo should ship aarch64 packages"?
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.
If anyone has any suggestions on how to get this working on Amazon Linux as well, would be appreciated. Followed the above steps but cannot get a yum repo which has python-packaging
, which is needed to build ZFS. Will post / amend my comment if I find a way to do this.
EDIT: found a way to do this with the Linux 4.14 kernel, but not with 5.x with aarch64.
I'm having the same issue. Except i'm on Oracle Linux 9 on their aarch64 processors.
@ziggythehamster thanks for the building instructions.
Had to download a bunch of stuff manually too, this is not the way... I really hope they add a repo for EL9-aarch64
System information
Describe the problem you're observing
trying to install result in
OpenZFS for EL8 - dkms 365 B/s | 243 B 00:00 Errors during downloading metadata for repository 'zfs':
Describe how to reproduce the problem
yum install https://zfsonlinux.org/epel/zfs-release.el8_3.noarch.rpm gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux yum install epel-release,kernel-devel zfs
Thanks a lot for making this great filesystem available!