Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Documentation: OSD_TYPE=disk does not work in nautilus #1406

Closed
osegarra opened this issue Jun 20, 2019 · 5 comments
Closed

Update Documentation: OSD_TYPE=disk does not work in nautilus #1406

osegarra opened this issue Jun 20, 2019 · 5 comments
Labels

Comments

@osegarra
Copy link

Documentation available in docker-hub shows how to deploy an OSD using OSD_TYPE=disk and it does not work any more.

Anybody know how to deploy an OSD in the latest nautilus version?

thanks a lot in advance

@osegarra osegarra changed the title Update Documentation: Ceph-disk does not work in nautilus Update Documentation: OSD_TYPE=disk does not work in nautilus Jun 20, 2019
@redtex
Copy link

redtex commented Jul 5, 2019

For example, /dev/mapper/osd0 is multipath block device:

fdisk /dev/mapper/osd0

:n
:p
Enter
Enter
t
8e
:wq

kpartx -a /dev/mapper/osd0

pvcreate /dev/mapper/osd0p1

vgcreate osd0 /dev/mapper/osd0p1

lvcreate -n data -l 100%FREE osd0

CEPH_TAG=master-8763b14-nautilus-centos-7-x86_64

docker run --privileged=true --rm --pid=host -v /etc/ceph:/etc/ceph -v /var/lib/ceph:/var/lib/ceph -v /dev:/dev --entrypoint /bin/bash ceph/daemon:${CEPH_TAG} -c 'ceph-volume lvm prepare --bluestore --data osd0/data'

docker run --privileged=true -d --net=host --pid=host -v /etc/ceph:/etc/ceph -v /var/lib/ceph:/var/lib/ceph -v /dev:/dev -e OSD_ID=0 ceph/daemon:${CEPH_TAG} osd_ceph_volume_activate

@bloodstars
Copy link

same issue,, only directory is ok......

@bloodstars
Copy link

bloodstars commented Jan 16, 2020

solved, use this in nautilus docker, image is ceph/daemon:latest-nautilus-devel:

ceph-volume lvm create --data ${OSD_DEVICE} --no-systemd;
ceph-volume lvm list;
mv /var/lib/ceph/osd/ceph-${OSD_ID}/* /var/lib/ceph/osd/;
umount -l /var/lib/ceph/osd/ceph-${OSD_ID};
mv /var/lib/ceph/osd/* /var/lib/ceph/osd/ceph-${OSD_ID}/;
/usr/bin/ceph-osd -f -i ${OSD_ID};

@ChenJiafu-s
Copy link

docker exec mon(your container's name) ceph osd create

@stale
Copy link

stale bot commented Apr 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 1, 2020
@stale stale bot closed this as completed Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants