Git Product home page Git Product logo

Comments (4)

vpodzime avatar vpodzime commented on September 22, 2024

@dwlehman, do you remember why you put 500 MiB there?

from blivet.

dwlehman avatar dwlehman commented on September 22, 2024

The minimum free space per disk of 500 MiB is fairly arbitrary. I suppose it could just as easily be 200 MiB. The reason we use the smaller of 500 MiB and the requested device's size is to allow requests for devices smaller than 500 MiB. What I really did not expect is people trying to use disks with such small amounts of free space.

from blivet.

wanginvc avatar wanginvc commented on September 22, 2024

For LV creating on single disk, if free space is less than 500 MiB, the request LV size must be less than or equal to free space. If free space is greater than 500 MiB, the request LV size can be less than or equal to or more than the free space. I can accept the different behavior above for single disk.

For LV creating on multiple disks, if free space of disk is less than 500 MiB, for example, I have 5 disks with free space 400 MiB. If I want to take all free space to create LV with size 2 GiB on these disks with new VG created, It's not possible for blivet to handle this request. Blivet will complain that "not enough free space for new device". I expect blivet can handle above request successfully.

from blivet.

dwlehman avatar dwlehman commented on September 22, 2024

For creating such small LVs the best approach is to use Blivet.new_partition, Blivet.new_vg, Blivet.new_lv instead of the device factory. I would prefer to remain on the safe side than to spend a great deal of time trying to get really smart about how to know the smallest possible size.

from blivet.

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.