Comments (4)
@dwlehman, do you remember why you put 500 MiB there?
from blivet.
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.
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.
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)
- Debian Testing 6.0.8-1 : Failed to init blivet: None of ext4,xfs,ext3,ext2 is supported by your kernel HOT 6
- Hardware without AES-NI: use xchacha12/Adiantum instead of AES-XTS HOT 12
- if the file system is damaged, resize2fs may get stuck
- DeviceTree.resolve_device() returns a btrfs volume even in case reqested subvolume is not found
- Cannot install F38 on efi macs ( "macefi" vs "efi" issue ) HOT 1
- Improve performance and achieve interim solution for #1108 : Change default from AES256 to AES128 (or SHA256 to SHA512) HOT 2
- Logging to `/tmp/lvm.log` without cleanup HOT 1
- Data and Metadata RAID level not set for existing btrfs volumes
- Very slow start HOT 2
- Blivet crashes when unlocking raid on LUKS devices
- Add tests with encrypted RAID
- ERROR:blivet:failed to find parent for subvol HOT 3
- unset uuid nvmes, '00000000-0000-0000-0000-000000000000' will raise DuplicateUUIDError HOT 8
- Blivet aborted due to unable to handle Veritas DMP devices.
- bcachefs support HOT 1
- Error encountered while detecting Mac Intel devices HOT 1
- Get filesystem size and free space from udev when possible
- Store partition type human readable string
- Crash during reset when getting MD members HOT 9
- Use disk parted.maxPartitionLength, out of maximum allocate sectors HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blivet.