[PVE-User] Fixed: Ceph problems / pveceph error

Eneko Lacunza elacunza at binovo.es
Mon Mar 31 17:07:29 CEST 2014


Hi all,

I just fixed the problems with OSDs:

- Stop ceph service
- Removed all files in /etc/ceph
- Removed files /etc/pve/priv/ceph.*
- rm -fR /var/lib/ceph/*
- mkdir -p /var/lib/ceph/mon
- mkdir -p /var/lib/ceph/tmp
- mkdir -p /var/lib/ceph/osd/ceph-0
- mkdir -p /var/lib/ceph/osd/ceph-1

Then just followed regular installation instructions.

Thanks
Eneko


On 31/03/14 16:20, Eneko Lacunza wrote:
> Hi all,
>
> I'm setting up the experimental Ceph Server released with PVE 3.2 . I 
> had some old ceph config files in the servers and although I created 
> mons and OSDs fine on GUI, they don't appear on the OSD tab, although 
> Disk tab does show them as "Usage: partitions".
>
> If I try to start ceph service wih "service ceph start" I get:
> ---
> # service ceph start
> === mon.1 ===
> Starting Ceph mon.1 on camelot...already running
> INFO:ceph-disk:Activating 
> /dev/disk/by-parttypeuuid/4fbd7e29-9d25-41b8-afd0-062c0ceff05d.bd3fc675-d77e-4102-b5db-9f253ab3baee
> 2014-03-31 15:02:42.458378 7ff4c16d6700  0 librados: 
> client.bootstrap-osd authentication error (1) Operation not permitted
> Error connecting to cluster: PermissionError
> ERROR:ceph-disk:Failed to activate
> ceph-disk: Error: ceph osd create failed: Command '['/usr/bin/ceph', 
> '--cluster', 'ceph', '--name', 'client.bootstrap-osd', '--keyring', 
> '/var/lib/ceph/bootstrap-osd/ceph.keyring', 'osd', 'create', 
> '--concise', 'bd3fc675-d77e-4102-b5db-9f253ab3baee']' returned 
> non-zero exit status 1
> ceph-disk: Error: One or more partitions failed to activate
> ---
>
> I think I have a keyring issue, where can I find what keyring needs to 
> be in /var/lib/ceph/bootstrap-osd?
>
> Also, I tried to clean up all ceph-related config with the following 
> command without luck:
> ---
> # pveceph purge
> Use of inherited AUTOLOAD for non-method 
> PVE::API2::Ceph::ceph_mon_status() is deprecated at /usr/bin/pveceph 
> line 63, <DATA> line 558.
> Use of inherited AUTOLOAD for non-method 
> PVE::API2::Ceph::purge_all_ceph_files() is deprecated at 
> /usr/bin/pveceph line 70, <DATA> line 558.
> Can't call method "map_method_by_name" on an undefined value at 
> /usr/share/perl5/PVE/RESTHandler.pm line 196, <DATA> line 558.
> ---
>
> Thanks
> Eneko
>


-- 
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
       943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
www.binovo.es




More information about the pve-user mailing list