]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
switch: resolve device path so we can umount the osd data dir
authorSébastien Han <seb@redhat.com>
Thu, 19 Apr 2018 12:45:03 +0000 (14:45 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 30 Apr 2018 06:15:18 +0000 (08:15 +0200)
commit5fa92804f92a065514012c77a6bd8530b77fd008
treef78ba9bc38cd5593da9e8c72a3057574728170f1
parent767abb5de02c0ecdf81a18f6ca63f2e978d3d7a4
switch: resolve device path so we can umount the osd data dir

If we don't do this, umounting devices declared like this
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001

will fail like:

umount: /dev/disk/by-id/ata-QEMU_HARDDISK_QM000011: mountpoint not found

Since we append '1' (partition 1), this won't work.
So we need to resolved the link to get something like /dev/sdb and then
append 1 to /dev/sdb1

Signed-off-by: Sébastien Han <seb@redhat.com>
Co-authored-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml