-
Notifications
You must be signed in to change notification settings - Fork 46
Installing Stand‐alone Packages in CentOS Stream 9
Ernesto Puerta edited this page Aug 16, 2023
·
2 revisions
docker run -ti quay.io/centos/centos:stream9 bash
NVMEOF_VERSION="0.0.2"
SPDK_VERSION="23.01-0"
CEPH_VERSION="17.2.6"
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
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
dnf install --releasever=9 -y spdk-*.rpm python3-pip python3-rados
pip install ceph_nvmeof-*-py3-none-any.whl
Install and properly set the following files:
-
ceph-nvmeof.conf
(see example: https://github.com/ceph/ceph-nvmeof/blob/devel/ceph-nvmeof.conf) -
ceph.conf
and Ceph keyring file (see https://docs.ceph.com/en/latest/cephadm/client-setup/).
Configure Huge-Pages (see https://github.com/ceph/ceph-nvmeof/blob/devel/README.md).
python3 -m control -c ceph-nvmeof.conf