function61 / varasto

All your files in one simple, replicated, encrypted place - with built-in backups and configurable ransomware protection.
https://function61.com/varasto
Apache License 2.0
56 stars 5 forks source link

Define lifecycle of a disk #238

Open joonas-fi opened 10 months ago

joonas-fi commented 10 months ago

Lifecycle:

  1. Provisioning
    • format the drive
    • maybe test the drive before you can start trusting it (or just fill it with production data by over-replicating and then when deemed ok by reading back all written data, then free up the tested data to accept new data)
  2. Operational
  3. Decommission
    • guidance on what to do, how to safely make sure other volume has the to-be-decommision disk's data before the volume signs off responsibility for the data

Make sure Varasto's UX supports the lifecycle cases, e.g. that we have metadata for whether the drive was provision-tested or not.

Also document this to user so they have easier time to learn how the lifecycle helps them.

When lifecycle is clearly defined and displayed, it helps avoid mistakes like I did: I had actually forgot one drive in provisioning phase and it has been sitting unused for nearly a year, FFS (2023-05-12)!