-
Notifications
You must be signed in to change notification settings - Fork 25
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
Tries to wipe a directory - dd: failed to open '/dev/disk/by-id/': Is a directory #108
Comments
It may be a corner case of using virtio disks only. But I think if disk.DeviceID is not found, it shouldn't proceed further like executing dd at least. microceph/microceph/ceph/osd.go Line 98 in 0c2a304
|
I agree there needs to be better handling for the case where there's no /dev/disk/by-id/x OTOH I'm also curious on why that disk wasn't found (using virtio shouldn't be a problem) -- if that disk indeed does exist? If so, would you be able to provide some diagnostics @nobuto-m ?
|
It was a virtio disk instead of SATA/SCSI.
|
Thanks @nobuto-m . Is the output of the |
No, that was the full output. There is no |
Don't assume all disks have a /dev/disk/by-id entry when looking for a stable path, this is not necessarily the case e.g. for virtio disks (cf. systemd/systemd#17670). Fix issue canonical#108 Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
Fixed by #114 |
By following the tutorial:
https://canonical-microceph.readthedocs-hosted.com/en/latest/tutorial/add_osds/
microceph tried to wipe a directory.
The text was updated successfully, but these errors were encountered: