Skip to content

Installing Stand‐alone Packages in CentOS Stream 9

Ernesto Puerta edited this page Aug 16, 2023 · 2 revisions

Base distro: CentOS Stream 9

docker run -ti quay.io/centos/centos:stream9 bash

Download Packages

Versions

NVMEOF_VERSION="0.0.2"
SPDK_VERSION="23.01-0"
CEPH_VERSION="17.2.6"

SPDK & Ceph NVMe-oF

cd /tmp

DOWNLOAD_URL="https://github.com/ceph/ceph-nvmeof/releases/download/v$NVMEOF_VERSION"
for package in $DOWNLOAD_URL/{spdk-{$SPDK_VERSION,devel-$SPDK_VERSION,libs-$SPDK_VERSION}.x86_64.rpm,ceph_nvmeof-$NVMEOF_VERSION-py3-none-any.whl}; do curl -LO $package; done

Ceph Dependencies

cat << EOF > /etc/yum.repos.d/ceph.repo
[Ceph]
name=Ceph packages for \$basearch
baseurl=http://download.ceph.com/rpm-$CEPH_VERSION/el\$releasever/\$basearch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc

[Ceph-noarch]
name=Ceph noarch packages
baseurl=http://download.ceph.com/rpm-$CEPH_VERSION/el\$releasever/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
EOF

Install packages

dnf install --releasever=9 -y spdk-*.rpm python3-pip python3-rados
pip install ceph_nvmeof-*-py3-none-any.whl

Configure

Install and properly set the following files:

Configure Huge-Pages (see https://github.com/ceph/ceph-nvmeof/blob/devel/README.md).

Run

python3 -m control -c ceph-nvmeof.conf