]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
shrink-osd: ability to shrink NVMe drives
authorSébastien Han <seb@redhat.com>
Fri, 20 Apr 2018 09:13:51 +0000 (11:13 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 20 Apr 2018 15:04:26 +0000 (17:04 +0200)
commitf264f98508bd969f7c71819ed00a2c02d381dd9b
tree79bbbb425403dd1e16707633e9048a3eb11c40e9
parentfe0f2cf8c710064b342c7cd80b83f3e956647672
shrink-osd: ability to shrink NVMe drives

Now if the service name contains nvme we know we need to remove the last
2 character instead of 1.

If nvme then osd_to_kill_disks is nvme0n1, we need nvme0
If ssd or hdd then osd_to_kill_disks is sda1, we need sda

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1561456
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 66c1ea8cd561fce6cfe5cdd1ecaa13411c824e3a)
Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/shrink-osd.yml