{ padding-bottom: 70px; }

Ceph RBD

Posted on 8th Oct 2020

cat  /etc/yum.repos.d/ceph.repo

[ceph-noarch]
name=Ceph noarch packages
baseurl=http://ceph.com/rpm-firefly/el7/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc

[ceph-source]
name=Ceph noarch packages
baseurl=http://ceph.com/rpm-firefly/el7/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc

[ceph]
name=Ceph noarch packages
baseurl=http://ceph.com/rpm-firefly/el7/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc



yum update
yum install -y ceph-fuse
  
modprobe ceph
modprobe rbd
  
lsmod | grep ceph

scp root@10.1.1.155:/etc/ceph/ceph.client.admin.keyring /etc/ceph/ceph.keyring
cat /etc/ceph/ceph.keyring


echo "10.1.1.156 name=admin,secret=AQCgOjtW+F5sMhAAFBvEl+t3b3pf95vs2yTKNg== rbd danrepo" > /sys/bus/rbd/add
  
  ll /dev/rbd*
  
 mkfs.xfs -L danrepo /dev/rbd0
  
  mkdir /mnt/danrepo
  
 mount /dev/rbd0 /mnt/danrepo
  df -h
  cd /mnt/danrepo/