Created
October 11, 2023 13:27
-
-
Save Cremator/5e5b26f2e0e918e8a42583e22d0bb9c0 to your computer and use it in GitHub Desktop.
Oracle Linux 9 - EL9 ZFS with cockpit management
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install Oracle Linux 9.2 | |
# setenforce=permissive | |
vi /etc/selinux/config | |
#disable Oracle UEK repo and change default kernel to EL9 | |
dnf repolist | |
dnf config-manager --disable ol9_UEKR7 | |
grubby --info=ALL | grep ^kernel | |
grubby --set-default /boot/vmlinuz-5.14.0-284.30.1.el9_2.x86_64 | |
reboot | |
#remove leftover UEK kernel | |
rpm -qa |grep uek | |
dnf remove kernel-uek-core-5.15.0-101.103.2.1.el9uek.x86_64 kernel-uek-modules-5.15.0-101.103.2.1.el9uek.x86_64 kernel-uek-5.15.0-101.103.2.1.el9uek.x86_64 kernel-uek-core-5.15.0-106.131.4.el9uek.x86_64 kernel-uek-modules-5.15.0-106.131.4.el9uek.x86_64 kernel-uek-5.15.0-106.131.4.el9uek.x86_64 | |
dnf update | |
reboot | |
#install zfs | |
dnf install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm | |
dnf config-manager --disable zfs | |
dnf config-manager --enable zfs-kmod | |
dnf install zfs | |
echo zfs >/etc/modules-load.d/zfs.conf | |
#install samba & nfs | |
dnf install epel-release | |
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | |
dnf install https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm | |
dnf install samba | |
dnf install https://repo.45drives.com/rhel/el8/stable/x86_64/znapzend-0.21.0-1.el8.x86_64.rpm | |
dnf install https://github.com/45Drives/cockpit-zfs-manager/releases/download/v1.3.0/cockpit-zfs-manager-1.3.0-5.el8.noarch.rpm | |
dnf install https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.3.4/cockpit-file-sharing-3.3.4-1.el8.noarch.rpm | |
#In the [global] section, add the following: include = registry | |
vi /etc/samba/smb.conf | |
systemctl enable --now smb | |
systemctl enable --now cockpit.socket | |
dnf update | |
reboot | |
#create zpool | |
zpool create data-pool draid1:4d:7c:1s /dev/disk/by-id/scsi-35000cca261041a30 /dev/disk/by-id/scsi-35000cca26109d750 /dev/disk/by-id/scsi-35000cca2610a25d4 /dev/disk/by-id/scsi-35000cca2610a5b2c /dev/disk/by-id/scsi-35000cca2610a642c /dev/disk/by-id/scsi-35000cca2610aa660 /dev/disk/by-id/scsi-35000cca2610aad08 log mirror /dev/nvme0n1p1 /dev/nvme1n1p1 cache /dev/nvme0n1p2 /dev/nvme1n1p2 -O xattr=sa -o ashift=12 -O atime=off -O compression=zstd -O mountpoint=/data-pool -O recordsize=1M -f | |
## zpool status | |
# pool: data-pool | |
# state: ONLINE | |
#config: | |
# | |
# NAME STATE READ WRITE CKSUM | |
# data-pool ONLINE 0 0 0 | |
# draid1:4d:7c:1s-0 ONLINE 0 0 0 | |
# scsi-35000cca261041a30 ONLINE 0 0 0 | |
# scsi-35000cca26109d750 ONLINE 0 0 0 | |
# scsi-35000cca2610a25d4 ONLINE 0 0 0 | |
# scsi-35000cca2610a5b2c ONLINE 0 0 0 | |
# scsi-35000cca2610a642c ONLINE 0 0 0 | |
# scsi-35000cca2610aa660 ONLINE 0 0 0 | |
# scsi-35000cca2610aad08 ONLINE 0 0 0 | |
# logs | |
# mirror-1 ONLINE 0 0 0 | |
# nvme0n1p1 ONLINE 0 0 0 | |
# nvme1n1p1 ONLINE 0 0 0 | |
# cache | |
# nvme0n1p2 ONLINE 0 0 0 | |
# nvme1n1p2 ONLINE 0 0 0 | |
# spares | |
# draid1-0-0 AVAIL | |
# | |
#errors: No known data errors | |
#Enjoy! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment