-
Notifications
You must be signed in to change notification settings - Fork 75
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
add helper to zap all non-root/non-mounted disks #259
Comments
it's really ugly, but I'm currently using:
|
I would like such an functionality/option as well. If I have to install a really large cluster this would save a huge amount of time. |
So far the policy was not to this as a safety measure. We don't really want to wipe any data. |
The fear I have had is doing this automatically as part of Stage 0 and getting it wrong. If this is a separate utility, displays what it would do but not doing it by default and has a filter or two (e.g. all but OS, only Ceph disks), that might work. The current purge is selective in that the zapped disks were OSDs. I think it could go either way of whether to extend it or make another runner. What are your thoughts? |
Sounds good to me.
Does purge require role assignment before running, and does it do anything aside from zapping the OSD disks? If so, I think it'd be good to have something separate, or otherwise some sort of flag to instruct purge to zap all non-root/home disks. |
IMO we should add the already existing devices with partitions also to the proposals and allow the admin to specify there if they should be left as is or if they should be zapped/ reinitialized. And keep in mind that all the zap processes I have found did not care about partitions in use! So in case there is an LVM or an MD Raid on the disks - the classic zap does not work and either the LVM / MD Raid needs to be deactivated before zapping or a reboot is required after zapping so that the kernel gets the change. |
Feel free to reject this as too risky...
Currently users are advised to zap all OSD disks prior to stage.0 invocation.
If done manually, disk zapping can be a very time consuming process. As a significant time-saver, I'd like some way of telling Deepsea to zap any disk that isn't currently used by the operating system, i.e. not a root, home, etc. device.
The text was updated successfully, but these errors were encountered: