Bug 816098
Summary: | virt-make-fs fails to make a btrfs filesystem because it doesn't allocate enough space | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | dyasny, mbooth, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-03 15:49:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Richard W.M. Jones
2012-04-25 09:19:58 UTC
Note that the overhead of btrfs is much larger than expected. eg: With a 6 MB tarball, a 512 MB disk doesn't have enough space: $ virt-make-fs -F qcow2 -t btrfs --partition=mbr --size=512M \ libguestfs-1.17.1.tar.gz /tmp/disk.qcow2 Formatting '/tmp/disk.qcow2', fmt=qcow2 size=536870912 encryption=off cluster_size=65536 virt-make-fs: error copying contents into filesystem An error here usually means that the program did not estimate the filesystem size correctly. Please read the BUGS section of the manpage. tar_in: tar subcommand failed on directory: /: tar: libguestfs-1.17.1/ChangeLog: Cannot write: No space left on device tar: libguestfs-1.17.1/.gitignore: Cannot write: No space left on device [...] With a 1 GB filesystem, only 388 MB is usable, indicating an overhead of 636 MB just for btrfs(!) $ virt-make-fs ... --size=1G ... $ virt-df -h /tmp/disk.qcow2 Filesystem Size Used Available Use% disk.qcow2:/dev/sda1 1.0G 37M 351M 4% Link should be: https://btrfs.wiki.kernel.org/index.php/FAQ#Why_are_there_so_many_ways_to_check_the_amount_of_free_space.3F Patches posted to the upstream mailing list: https://www.redhat.com/archives/libguestfs/2012-May/msg00015.html Fixed in 1.17.39. |