Bug #39511
closedCannot remove CephFS snapshot with leading underscore (_)
0%
Description
Due to a misconfigured cronjob I ended up with CephFS snapshots with leading _
rmdir failed with error "No such file or directory"
~# rmdir .snap/_daily_2019-04-29_050921_1099511725273
rmdir: failed to remove ‘.snap/_daily_2019-04-29_050921_1099511725273’: No such file or directory
~# ls -al .snap/
ls: cannot access .snap/_daily_2019-04-29_050921_1099511725273: No such file or directory
ls: cannot access .snap/_snap_2019-04-29_093015_1099511725273: No such file or directory
ls: cannot access .snap/_snap_daily_2019-04-29_093216_1099511725273: No such file or directory
ls: cannot access .snap/_snap_daily_2019-04-29_100001_1099511725273: No such file or directory
total 0
drwxr-xr-x. 1 root root 0 10. Mai 2018 .
drwxr-xr-x 1 root root 0 29. Apr 10:48 ..
d?????????? ? ? ? ? ? _daily_2019-04-29_050921_1099511725273
d?????????? ? ? ? ? ? _snap_2019-04-29_093015_1099511725273
d?????????? ? ? ? ? ? _snap_daily_2019-04-29_093216_1099511725273
d?????????? ? ? ? ? ? _snap_daily_2019-04-29_100001_1099511725273
Updated by Patrick Donnelly almost 5 years ago
- Status changed from New to Need More Info
This looks like you're deleting a snapshot name in a child directory which was not the original directory where the snapshot was taken. Can you confirm?
Updated by Stephan Hohn over 4 years ago
Sorry for my late reply. Yes this is correct. I improved my script and it works now.
Thanks.
You can close the issue.
Updated by Patrick Donnelly over 4 years ago
- Status changed from Need More Info to Rejected