GithubHelp home page GithubHelp logo

Support for multiple storage. about dell-recovery HOT 11 OPEN

dell avatar dell commented on July 16, 2024
Support for multiple storage.

from dell-recovery.

Comments (11)

superm1 avatar superm1 commented on July 16, 2024

Stage 1 of dell-recovery emulates the conditions that happen in Dell factory process earlier before Ubuntu install kicks off. Coming into stage 2 Ubiquity will use the largest free space to format (https://github.com/dell/dell-recovery/blob/master/casper/seeds/ubuntu.seed#L74)
and will follow this recipe:
(https://github.com/dell/dell-recovery/blob/master/casper/seeds/ubuntu.seed#L81)

So I think the first thing that is really needed is support for a way to tell Ubiquity to use the free space across all the disks. Once that is possible, then the defaults recipe in dell-recovery can be changed to generate an LVM partition in the free space of the first disk and all the space of the second disk.

Can that be discussed with Ubuntu foundations folks?

from dell-recovery.

khfeng avatar khfeng commented on July 16, 2024

I think you are right, this should be integrated into ubiquity.
I'll see what I can do to it =)

from dell-recovery.

superm1 avatar superm1 commented on July 16, 2024

@khfeng thanks. Keep me and @kevinkellyspacey looped in as that work happens. I'm hoping that dell-recovery can just change ubuntu.seed for supporting this recipe and call out the disks to participate when this recipe is used (such as how we "dynamically" fill in what disk to install to today).

Once ubiquity is ready in an intermediary Ubuntu release with this feature, we'll pick this bug up.

from dell-recovery.

khfeng avatar khfeng commented on July 16, 2024

After some digging on partman, I now understand what you really mean in comment 2.

What requires here is Ubiquity needs to ask partman-auto to do partitioning on multiple storages, override partman's default fs (EXT4), then ask partman-{lvm|btrfs|zfs} to do the rest.

More importantly, Ubuntu will use UbuntuImage [1] to build classic image in the future, so we should check out how preseed works, how it cooperates with Ubiquity.

[1] https://wiki.ubuntu.com/UbuntuImage

from dell-recovery.

superm1 avatar superm1 commented on July 16, 2024

I wasn't aware that Ubuntu image building would move to that, but I don't think it should change much about how images are used for dell-recovery since dell-recovery does actively use preseeding already. Was there something particular about how it's being with UbuntuImage now that you think will break?

from dell-recovery.

khfeng avatar khfeng commented on July 16, 2024

My understanding is the preseeding uses debian-installer heavily, I don't think the new ubuntu-image will use d-i at all. I'll ask around.

from dell-recovery.

superm1 avatar superm1 commented on July 16, 2024

Oh so you are meaning that UbuntuImage based images might not take Ubiquity? That would be a very big change and yes would cause lots of problems for dell-recovery as it exists.. How soon are UbuntuImage based images for "classic" Ubuntu going to be starting to get used? I wasn't aware of this.

from dell-recovery.

superm1 avatar superm1 commented on July 16, 2024

@khfeng did you ever have any results from digging into this further for partman-auto to take into account multiple storage devices? It would be nice if this could be targeted for next Ubuntu LTS.

from dell-recovery.

khfeng avatar khfeng commented on July 16, 2024

Not really. This TODO completely slipped through.

Looks like the plan forward is to use LVM - do we use the SSD as root partition or a cache layer?

from dell-recovery.

khfeng avatar khfeng commented on July 16, 2024

There's already a blog [1] explains how to use preseed to do multi-disks partitioning.
If the partition schemes it supported are what we want, it shouldn't be too hard to integrate into dell-recovery.

[1] https://www.claudioborges.org/?p=733

from dell-recovery.

superm1 avatar superm1 commented on July 16, 2024

Thanks for sharing that link. Yes, in general LVM should be the path forward. It should allow the most flexibility across multiple disks,.

It would be great to expose the SSD as cache (using LVM's cache features eg: https://rwmj.wordpress.com/2014/05/22/using-lvms-new-cache-feature/) but I don't know that partman will be able to expose this level of detail.

So I see this should be broken up into a few milestones. I've created a wiki that we can track progress here:
https://github.com/dell/dell-recovery/wiki/Multiple-disk-support

from dell-recovery.

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.