On Fri, Jun 8, 2018 at 2:47 PM, Rares Vernica <rvern...@gmail.com> wrote:

> Hi,
>
> I'm following the Manual Deployment guide at
> http://docs.ceph.com/docs/master/install/manual-deployment/ I'm not able
> to move past the ceph-volume lvm create part. Here is what I do:
>
> # lvcreate -L 1G -n ceph cah_foo
>   Logical volume "ceph" created.
>
> # ceph-volume lvm create --data cah_foo/ceph
> Running command: /bin/ceph-authtool --gen-print-key
> Running command: /bin/ceph --cluster ceph --name client.bootstrap-osd
> --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new
> b8016385-e46c-4e93-a334-be4fc92bea85
> Running command: /bin/ceph-authtool --gen-print-key
> Running command: mount -t tmpfs tmpfs /var/lib/ceph/osd/ceph-0
> Running command: chown -R ceph:ceph /dev/dm-2
> Running command: ln -s /dev/cah_foo/ceph /var/lib/ceph/osd/ceph-0/block
> Running command: ceph --cluster ceph --name client.bootstrap-osd --keyring
> /var/lib/ceph/bootstrap-osd/ceph.keyring mon getmap -o
> /var/lib/ceph/osd/ceph-0/activate.monmap
>  stderr: got monmap epoch 2
> Running command: ceph-authtool /var/lib/ceph/osd/ceph-0/keyring
> --create-keyring --name osd.0 --add-key AQCxuhlbAVylMRAAXsKQpKbau3T1rI
> 66z651ng==
>  stdout: creating /var/lib/ceph/osd/ceph-0/keyring
> added entity osd.0 auth auth(auid = 18446744073709551615
> key=AQCxuhlbAVylMRAAXsKQpKbau3T1rI66z651ng== with 0 caps)
> Running command: chown -R ceph:ceph /var/lib/ceph/osd/ceph-0/keyring
> Running command: chown -R ceph:ceph /var/lib/ceph/osd/ceph-0/
> Running command: /bin/ceph-osd --cluster ceph --osd-objectstore bluestore
> --mkfs -i 0 --monmap /var/lib/ceph/osd/ceph-0/activate.monmap --keyfile -
> --osd-data /var/lib/ceph/osd/ceph-0/ --osd-uuid
> b8016385-e46c-4e93-a334-be4fc92bea85 --setuser ceph --setgroup ceph
>  stderr: 2018-06-07 16:07:32.804440 7f237709dd80 -1
> bluestore(/var/lib/ceph/osd/ceph-0/) _read_fsid unparsable uuid
>  stderr: 2018-06-07 16:07:33.822761 7f237709dd80 -1 OSD::mkfs:
> ObjectStore::mkfs failed with error (2) No such file or directory
>  stderr: 2018-06-07 16:07:33.822934 7f237709dd80 -1  *** ERROR: error
> creating empty object store in /var/lib/ceph/osd/ceph-0/: (2) No such file
> or directory*
> --> ceph-volume lvm prepare successful for: cah_foo/ceph
> Running command: ceph-bluestore-tool --cluster=ceph prime-osd-dir --dev
> /dev/cah_foo/ceph --path /var/lib/ceph/osd/ceph-0
>  stderr: failed to read label for /dev/cah_foo/ceph: (2) No such file or
> directory
> --> Was unable to complete a new OSD, will rollback changes
> --> OSD will be fully purged from the cluster, because the ID was generated
> Running command: ceph osd purge osd.0 --yes-i-really-mean-it
>  stderr: purged osd.0
> -->  RuntimeError: command returned non-zero exit status: 1
>
> # ceph --version
> ceph version 12.2.5 (cad919881333ac92274171586c827e01f554a70a) luminous
> (stable)
>

This looks really odd. Do you have a /var/lib/ceph/osd/ceph-0 directory? if
yes, what are the permissions inside of it? The output shows that it is
mounting this correctly:

Running command: mount -t tmpfs tmpfs /var/lib/ceph/osd/ceph-0

So that should exist

>
>
> I wonder what am I missing and what else I can try.
>
> Thanks!
> Rares
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to