remove directory of old osd folder

xtou

Member
Feb 11, 2016
2
0
21
45
Hi,
it's safe to rm the ceph osd directory that aren't in use?

osd.0 osd.1 osd.2 runing on other ceph note, but I notice that folder it's there from old remove disk.

root@pve01:~# ls -la /var/lib/ceph/osd
total 20
drwxr-xr-x 10 root root 4096 Apr 21 2017 .
drwxr-xr-x 9 root root 4096 Sep 19 2016 ..
drwxr-xr-x 2 root root 4096 Sep 19 2016 ceph-0
drwxr-xr-x 2 root root 4096 Sep 19 2016 ceph-1
drwxr-xr-x 3 root root 218 May 19 2017 ceph-12
drwxr-xr-x 3 root root 218 May 19 2017 ceph-13
drwxr-xr-x 3 root root 218 May 19 2017 ceph-14
drwxr-xr-x 2 root root 4096 Sep 19 2016 ceph-2
drwxr-xr-x 3 root root 218 May 19 2017 ceph-24
drwxr-xr-x 3 root root 218 May 19 2017 ceph-28
root@pve01:~#
root@pve01:~# du -h --max-depth=1 /var/lib/ceph/osd/
535G /var/lib/ceph/osd/ceph-28
1.1T /var/lib/ceph/osd/ceph-12
4.0K /var/lib/ceph/osd/ceph-2
1.3T /var/lib/ceph/osd/ceph-24
4.0K /var/lib/ceph/osd/ceph-1
1.1T /var/lib/ceph/osd/ceph-14
4.0K /var/lib/ceph/osd/ceph-0
1007G /var/lib/ceph/osd/ceph-13
4.9T /var/lib/ceph/osd/
root@pve01:~#
 
If you don't have any OSDs with that name on the host, then ok. But why at all? They will be repopulated if the OSD ID on that node will be used again.