Skip to content
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

Wipe option for additional disks #2213

Closed
freswa opened this issue Jun 16, 2020 · 6 comments
Closed

Wipe option for additional disks #2213

freswa opened this issue Jun 16, 2020 · 6 comments

Comments

@freswa
Copy link
Contributor

freswa commented Jun 16, 2020

Feature Request

machine:
  disks:
    - device: /dev/disk/by-id/scsi-0HC_Volume_5878184
      wipe: true
      partitions:
        - size: 10737383424
          mountpoint: /var/data

To wipe the disk before partitioning, formatting and mounting.

machine:
  disks:
    - device: /dev/disk/by-id/scsi-0HC_Volume_5878184
      partitions:
        - size: 10737383424
          mountpoint: /var/data
          wipe: true

To wipe the partition before formatting and mounting.

@andrewrynhard
Copy link
Member

Is the expectation that this would only occur at the initial disk setup (like how the installation wipe option works) or on every boot?

@andrewrynhard andrewrynhard added this to the v0.6 milestone Jun 16, 2020
@freswa
Copy link
Contributor Author

freswa commented Jun 16, 2020

I think the initial setup would benefit from this option, but there you can also setup the disk externally, since you don't rely on the system yet.
Instead, I'd use the wipe option to grow the disks. The disks save persistent but redundant data. So it's fine to drop the data of one node. I don't see any other option to reformat a disk after it's partitioned initially.

@rafaribe
Copy link

Following because it would be really useful to not rely on another OS to wipe disks to use in a Ceph Cluster

@smira
Copy link
Member

smira commented Feb 21, 2022

Following because it would be really useful to not rely on another OS to wipe disks to use in a Ceph Cluster

We should have support for wiping in Talos, but in the meantime this can be done by scheduling privileged pod on Kubernetes and wiping the disks this way.

@vorburger
Copy link
Contributor

Is the expectation that this would only occur at the initial disk setup (like how the installation wipe option works) or on every boot?

#5485 imagines an on: [install, upgrade]... perhaps a kind of wipe: onInstall &| onUpgrade &| onBoot instead of a simple wipe: true would make sense here.

@smira
Copy link
Member

smira commented Dec 1, 2023

talosctl reset supports --user-disks-to-wipe now

@smira smira closed this as completed Dec 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants