Bug 721160 - Missing btrfs support
Missing btrfs support
Product: Fedora
Classification: Fedora
Component: libguestfs (Show other bugs)
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard W.M. Jones
Fedora Extras Quality Assurance
Depends On:
Blocks: 721275
  Show dependency treegraph
Reported: 2011-07-13 17:44 EDT by Jan Kratochvil
Modified: 2012-06-06 13:55 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 721275 (view as bug list)
Last Closed: 2012-06-06 13:55:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2011-07-13 17:44:24 EDT
Description of problem:
Tried to play with btrfs in kvm but it is difficult without guestfish.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Run guestfish

Actual results:
><fs> btrfs
btrfs: unknown command
><fs> btrfsck
btrfsck: unknown command

Expected results:
Such command there.

Additional info:
Comment 1 Richard W.M. Jones 2011-07-14 03:31:01 EDT
We have support for making btrfs filesystems.  But we should add
commands for the btrfs tools.

Can you give me a brief overview of which tools / operations
are the most important and popular and that we should work on
Comment 2 Jan Kratochvil 2011-07-14 03:48:18 EDT
I am not any expert but:
btrfs filesystem resize
fdisk - not filed above; there is sfdisk but I do not find sfdisk easy enough.

But when booting in kvm with init=/bin/sh I got:
ERROR: unable to resize '/'
after re-fdisk-ing /dev/vda2 to be larger so guestfish probably may not help.

sh-4.2# btrfsck /dev/vda2
found 3012730880 bytes used err is 0
total csum bytes: 2760168
total tree bytes: 186318848
total fs tree bytes: 174235648
btree space waste bytes: 52924033
file data blocks allocated: 3124961280
 referenced 2796343296
Btrfs Btrfs v0.19
sh-4.2# btrfs filesystem resize max /
Resize '/' of 'max'
ERROR: unable to resize '/'
sh-4.2# cat /proc/version 
Linux version (mockbuild@x86-03.phx2.fedoraproject.org) (gcc version 4.6.0 20110428 (Red Hat 4.6.0-6) (GCC) ) #1 SMP Sun May 15 17:23:28 UTC 2011
sh-4.2# rpm -q kernel
Comment 3 Richard W.M. Jones 2011-07-14 03:56:46 EDT
(In reply to comment #2)
> I am not any expert but:
> btrfs filesystem resize
> btrfsck
> fdisk - not filed above; there is sfdisk but I do not find sfdisk easy enough.

Note that if you want to rescue a VM, you can use
virt-rescue.  The btrfs tools are all included:

><rescue> btrfs<tab>
btrfs              btrfs-image        btrfs-vol          btrfstune
btrfs-convert      btrfs-map-logical  btrfsck            
btrfs-debug-tree   btrfs-show         btrfsctl           

The resize issue seems to be a separate btrfs thing.

We should add support for resizing to virt-resize as well,
which will be particularly important since F16 installs may
default to btrfs.
Comment 4 Richard W.M. Jones 2011-07-14 08:21:51 EDT
I added btrfs-filesystem-resize API in libguestfs 1.11.17:

Comment 5 Cole Robinson 2012-06-06 13:55:03 EDT
Since F14 is EOL and there's some support for this upstream + current fedora, closing as CURRENTRELEASE

Note You need to log in before you can comment on or make changes to this bug.