CentOS Linux Owakon Memorial (wrong) or RIKEN Mirror Memorial, so I tried Springadale Linux. Well, it's a rehash of CentOS version, so the same procedure will be done smoothly.
The ISO image is not available at http://ftp.riken.jp/pub/Linux/springdale/8.3/x86_64/iso/. Because it's salty, it gives off an unpleasant scent (laughs). As a result of various searches, I found http://ftp.riken.jp/pub/Linux/springdale/8.3/x86_64/os/images/boot.iso, so download it.
Like CentOS, it has 3072 MB of main memory and uses a bridge adapter as a network adapter.
Again, add selinux = 0 3
to the boot parameters to boot the kernel.
[anaconda root@localhost ~]# loadkeys jp106
[anaconda root@localhost ~]# mv -v /etc/ssh/sshd_config{.anaconda,}
Recently, IP v6 has become available at home, so I decided to say goodbye to dhclient and go down to NetworkManager's military gate (laughs). Well, I only use it here, though I install systemd-networkd. : -p
[anaconda root@localhost ~]# nmcli c a type ethernet ifname enp0s3 con-name enp0s3
Make sure sshd is started and log in as root from the ssh client.
[anaconda root@localhost ~]# systemctl is-active sshd
active
When installing the package in the host environment, bind mount some directories under/tmp to avoid an error due to insufficient free space.
[anaconda root@localhost ~]# mkdir /tmp/dnf && mount --bind /tmp/dnf /var/cache/dnf
[anaconda root@localhost ~]# mkdir /tmp/rpm && mount --bind /tmp/rpm /var/lib/rpm
[anaconda root@localhost ~]# mkdir /tmp/firmware && mount --bind /tmp/firmware /lib/firmware
Basically, the settings up to this point are the same as CentOS.
[anaconda root@localhost ~]# echo install_weak_deps=0 >> /etc/dnf/dnf.conf
Finally, it's Springdale Linux-specific.
Like CentOS, Springdale boot.iso does not have repository information in /etc/yum.repos.d/, so I need to install the package that contains the repo file, but for some reason it depends on dnf. Of course, dnf depends on other packages, and if you add packages in a muddy manner, there is no end to it.
So, give up installing with dnf, extract the rpm file directly and place the repo file.
[anaconda root@localhost ~]# cd /
[anaconda root@localhost /]# curl http://ftp.riken.jp/pub/Linux/springdale/8.3/x86_64/os/BaseOS/Packages/springdale-core-8-0.sdl8.2.noarch.rpm | rpm2cpio | cpio -id
[anaconda root@localhost /]# curl http://ftp.riken.jp/pub/Linux/springdale/8.3/x86_64/os/BaseOS/Packages/springdale-appstream-8-0.sdl8.2.noarch.rpm | rpm2cpio | cpio -id
As before, specify glibc-langpack-ja as well.
[anaconda root@localhost /]# dnf -y --releasever=8.3 install glibc-langpack-ja http://download.zfsonlinux.org/epel/zfs-release.el8_3.noarch.rpm
As I learned from OpenZFS page, you can enable/disable the repository without using sed ...
[anaconda root@localhost /]# dnf -y install dnf-plugins-core
[anaconda root@localhost /]# dnf config-manager --disable zfs
[anaconda root@localhost /]# dnf config-manager --enable zfs-kmod
It seems that you can always install only the latest kernel version on recent CentOS, but Springdale works with version specification, so you can follow the same procedure as before.
[anaconda root@localhost /]# dnf -y install kernel-core-$(uname -r) zfs
Fix the hostid to 0 before loading the module so that the hostid does not change even if the IP address changes in the DHCP environment.
[anaconda root@localhost /]# dd if=/dev/zero of=/etc/hostid bs=4 count=1 2>/dev/null
[anaconda root@localhost /]# modprobe zfs
[anaconda root@localhost /]# dmesg | tail -1
[ 1435.751419] ZFS: Loaded module v0.8.6-1, ZFS pool version 5000, ZFS filesystem version 5
It's a little different from CentOS Linux, but for the time being, it seems to be safer to use than CentOS Stream in terms of ZFS (laughs).
Recommended Posts