ceph hammer install on pve 3.4

Alwin

Proxmox Staff Member
Staff member
Aug 1, 2017
4,617
443
88
On a old PVE 4.4 setup it looks like this. But it may not be complete.
Code:
:~# dpkg -l | grep -i ceph
ii  ceph                                 0.94.10-1~bpo80+1                  amd64        distributed storage and file system
ii  ceph-common                          0.94.10-1~bpo80+1                  amd64        common utilities to mount and interact with a ceph storage cluster
ii  libcephfs1                           0.94.10-1~bpo80+1                  amd64        Ceph distributed file system client library
ii  python-ceph                          0.94.10-1~bpo80+1                  amd64        Meta-package for python libraries for the Ceph libraries
ii  python-cephfs                        0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph libcephfs library
ii  python-rados                         0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph librados library
ii  python-rbd                           0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph librbd library
 
  • Like
Reactions: Nessero

Nessero

Member
Sep 18, 2017
31
0
11
On a old PVE 4.4 setup it looks like this. But it may not be complete.
Code:
:~# dpkg -l | grep -i ceph
ii  ceph                                 0.94.10-1~bpo80+1                  amd64        distributed storage and file system
ii  ceph-common                          0.94.10-1~bpo80+1                  amd64        common utilities to mount and interact with a ceph storage cluster
ii  libcephfs1                           0.94.10-1~bpo80+1                  amd64        Ceph distributed file system client library
ii  python-ceph                          0.94.10-1~bpo80+1                  amd64        Meta-package for python libraries for the Ceph libraries
ii  python-cephfs                        0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph libcephfs library
ii  python-rados                         0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph librados library
ii  python-rbd                           0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph librbd library
Thanks, that i think help.
 

Nessero

Member
Sep 18, 2017
31
0
11
On a old PVE 4.4 setup it looks like this. But it may not be complete.
Code:
:~# dpkg -l | grep -i ceph
ii  ceph                                 0.94.10-1~bpo80+1                  amd64        distributed storage and file system
ii  ceph-common                          0.94.10-1~bpo80+1                  amd64        common utilities to mount and interact with a ceph storage cluster
ii  libcephfs1                           0.94.10-1~bpo80+1                  amd64        Ceph distributed file system client library
ii  python-ceph                          0.94.10-1~bpo80+1                  amd64        Meta-package for python libraries for the Ceph libraries
ii  python-cephfs                        0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph libcephfs library
ii  python-rados                         0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph librados library
ii  python-rbd                           0.94.10-1~bpo80+1                  amd64        Python libraries for the Ceph librbd library
Its one problem. When install *.deb from ceph repos it says:

Code:
root@pve2:~# dpkg -i ceph_0.94.9-1~bpo70+1_amd64.deb 
dpkg: regarding ceph_0.94.9-1~bpo70+1_amd64.deb containing ceph:
 ceph breaks python-ceph (<< 0.92-1223)
  python-ceph (version 0.80.8-1~bpo70+1) is present and installed.

dpkg: error processing ceph_0.94.9-1~bpo70+1_amd64.deb (--install):
 installing ceph would break python-ceph, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
 ceph_0.94.9-1~bpo70+1_amd64.deb
 

Alwin

Proxmox Staff Member
Staff member
Aug 1, 2017
4,617
443
88
It is easier to use it as a repository to have all dependencies checked. As they sure changed.
 

Nessero

Member
Sep 18, 2017
31
0
11
It is easier to use it as a repository to have all dependencies checked. As they sure changed.
root@pve:~# cat /etc/apt/sources.list.d/ceph.list
deb http://download.ceph.com/debian-hammer wheezy main

I add ceph repo, but packages don't install.

Code:
root@pve3:~# pveceph install --version hammer
download and import ceph repository keys
update available package list
Reading package lists...
Building dependency tree...
Reading state information...
Package ceph is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  ceph-common

E: Package 'ceph' has no installation candidate
command 'apt-get -q --assume-yes --no-install-recommends -o 'Dpkg::Options::=--force-confnew' install -- ceph ceph-common gdisk' failed: exit code 100
 

Nessero

Member
Sep 18, 2017
31
0
11
I solve my problem. If you need install ceph on proxmox 3.4 do this:

Code:
dpkg -i libcephfs1_0.94.9-1~bpo70+1_amd64.deb
apt-get remove python-ceph --purge
dpkg -i python-cephfs_0.94.9-1~bpo70+1_amd64.deb
wget http://download.ceph.com/debian-hammer/pool/main/c/ceph/librados2_0.94.9-1~bpo70%2B1_amd64.deb
dpkg -i librados2_0.94.9-1~bpo70+1_amd64.deb
wget http://download.ceph.com/debian-hammer/pool/main/c/ceph/python-rados_0.94.9-1~bpo70%2B1_amd64.deb
dpkg -i python-rados_0.94.9-1~bpo70+1_amd64.deb
wget http://download.ceph.com/debian-hammer/pool/main/c/ceph/python-rbd_0.94.9-1~bpo70%2B1_amd64.deb
dpkg -i librbd1_0.94.9-1~bpo70+1_amd64.deb
dpkg -i python-rbd_0.94.9-1~bpo70+1_amd64.deb
dpkg -i ceph-common_0.94.9-1~bpo70+1_amd64.deb
apt-get install -f ?????
wget http://download.ceph.com/debian-hammer/pool/main/c/ceph/ceph-test_0.94.9-1~bpo70%2B1_amd64.deb
dpkg -i ceph-test_0.94.9-1~bpo70+1_amd64.deb
apt-get install -f
http://download.ceph.com/debian-hammer/pool/main/c/ceph/libradosstriper1_0.94.9-1~bpo70%2B1_amd64.deb
dpkg -i libradosstriper1_0.94.9-1~bpo70+1_amd64.deb
dpkg -i ceph-test_0.94.9-1~bpo70+1_amd64.deb
wget http://download.ceph.com/debian-hammer/pool/main/c/curl/libcurl3_7.29.0-1~bpo70%2B1.ceph_amd64.deb
dpkg -i libcurl3_7.29.0-1~bpo70+1.ceph_amd64.deb
wget http://download.ceph.com/debian-hammer/pool/main/c/curl/curl_7.29.0-1~bpo70%2B1.ceph_amd64.deb
dpkg -i curl_7.29.0-1~bpo70+1.ceph_amd64.deb
wget http://download.ceph.com/debian-hammer/pool/main/c/curl/libcurl3-gnutls_7.29.0-1~bpo70%2B1.ceph_amd64.deb
dpkg -i libcurl3-gnutls_7.29.0-1~bpo70+1.ceph_amd64.deb
wget http://download.ceph.com/debian-hammer/pool/main/c/ceph/python-ceph_0.94.9-1~bpo70%2B1_amd64.deb
dpkg -i python-ceph_0.94.9-*
echo deb http://ftp.debian.org/debian wheezy-backports main >> /etc/apt/sources.list
apt-get -t wheezy-backports install "libleveldb1"
echo "deb http://download.proxmox.com/debian wheezy pve-no-subscription" > /etc/apt/sources.list.d/pve-enterprise.list
apt-get install proxmox-ve-2.6.32
dpkg -i ceph_0*
apt-get install -f
 

bodysplit

Member
Jan 23, 2014
6
1
23
Germany
If anyone is still migration 3.x boxes:

I found out that the problem is an issue of preference between backports, release and the ceph repo. This can be resolved by:
Code:
echo /etc/apt/preferences.d/ceph >> “Package: *
Pin: origin download.ceph.com
Pin-Priority: 600”
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!