Giter VIP home page Giter VIP logo

Comments (6)

Lassulus avatar Lassulus commented on September 22, 2024 1

Partial application of disko config is on the agenda. As is an idempodent variant of the createScript. Will try to tackle this after my current pr is reviewed and merged

from disko.

Lassulus avatar Lassulus commented on September 22, 2024 1

if you use diskoScript it will format all the drives, since today (#568) this shouldn't happen anymore if you just use the formatScript with --mode format or --mode create. but since this was merged today it's still not fully tested :)

from disko.

phaer avatar phaer commented on September 22, 2024

Yes, that's expected behavior. Might be a good idea to mention that more explicitly in the README.

For the data disk I am not able to find an option in disko that allows to not format a partition if the condition are already met, for example the table is already gpt, the size is correct, the filesystem is correct, ...

It's always a balance between features and the complexity of the implementation. PRs would be welcome, but what's your use case here? You should be good to re-install by just omitting your data disk from the config here.

from disko.

yellowhat avatar yellowhat commented on September 22, 2024

Currently:

  1. I have to connect my small server to a monitor, keyboard, mouse, insert the usb pen
  2. Boot
  3. Install Fedora Server
  4. Run my ansible playbook from my laptop
  5. Wait for Argo CD to finish its magic
  6. Shutdown
  7. Disconnect monitor, keyboard, mouse and usb pen
  8. Start

The fact that using nixos-anywhere would allow me to reinstall everything via ssh in a declarative way it is of great interest.

Currently the ansible playbook does everything even formatting/mounting (if necessary), and it works in a real declarative way so if the partition size/format is the same no changes are applied.

I was a bit sceptical at the beginning but never lost data in 8 months.

My use case can be resumed in the nix script from my first post, just 2 disks: one for the OS the other for the data, no changes to the playbook no changes applied.

You are right you could simply comment the data disk section after the first setup and manually run the fdisk/mkfs/... commands but they break a bit the declarative spirit.

For now the setup is very simple just 1 disk, 1 partition. If in the future the number of disks increases and/or the filesystems setups increase in complexity, a real "declarative" disko would be very welcome.

Anyway thanks for you effort.

from disko.

yellowhat avatar yellowhat commented on September 22, 2024

Super I will keep an eye on the project.
Thanks

from disko.

Toomoch avatar Toomoch commented on September 22, 2024

Is this still expected? I just nuked my installation (luckily without any data, as it was new) after changing my ZFS dataset on a secondary drive. I assumed at most it would format the secondary drive, but apparently it nuked every drive included in my disko configuration.

What would be the right procedure for updating my ZFS dataset without formatting the drives?
Thanks

from disko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.