[Bugme-new] [Bug 20932] New: Can not resize btrfs partition
bugzilla-daemon at bugzilla.kernel.org
bugzilla-daemon at bugzilla.kernel.org
Fri Oct 22 07:51:15 PDT 2010
https://bugzilla.kernel.org/show_bug.cgi?id=20932
Summary: Can not resize btrfs partition
Product: File System
Version: 2.5
Kernel Version: 2.6.35
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: btrfs
AssignedTo: fs_btrfs at kernel-bugs.osdl.org
ReportedBy: chris.std at web.de
Regression: No
System: Ubuntu 10.10 64Bit Desktop with
Linux Kernel 2.6.35.22.23 (reported by apt)
btrfs-tools (debian package) version 0.19+20100601-3
parted -l returns (for /dev/sda ):
--------------------------------
Model: ATA OCZ-AGILITY2 (scsi)
Disk /dev/sda: 60,0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
4 32,3kB 98,7MB 98,7MB primary ext4 boot
2 98,7MB 33,8GB 33,7GB extended
5 101MB 10,0GB 9921MB logical btrfs
1 33,8GB 53,5GB 19,7GB primary ext4
---------------------------------
with /dev/sda4 mounted as /boot and /dev/sda5 mounted as /, I tried different
ways to resize my btrfs partition but without success:
christian at PC-2:~$ sudo btrfs filesystem resize max /
Resize '/' of 'max'
ERROR: unable to resize '/'
christian at PC-2:~$ sudo btrfs filesystem resize +2g /
Resize '/' of '+2g'
ERROR: unable to resize '/'
christian at PC-2:~$ sudo btrfs filesystem resize +2m /
Resize '/' of '+2m'
ERROR: unable to resize '/'
christian at PC-2:~$ sudo btrfs filesystem resize +2k /
Resize '/' of '+2k'
ERROR: unable to resize '/'
christian at PC-2:~$
reducing size does not throw any errors but does not seem to change anything:
christian at PC-2:~$ sudo btrfs filesystem resize -1g /
Resize '/' of '-1g'
christian at PC-2:~$
but even after reboot parted shows the same partition size as before
"resizing". The only strange thing is, "adding" this "removed" 1g of size once
does not throw an error:
christian at PC-2:~$ sudo btrfs filesystem resize -1g /
Resize '/' of '-1g'
christian at PC-2:~$ sudo btrfs filesystem resize +1g /
Resize '/' of '+1g'
christian at PC-2:~$ sudo btrfs filesystem resize +1g /
Resize '/' of '+1g'
ERROR: unable to resize '/'
christian at PC-2:~$
why doesn't
btrfs filesystem resize max /
resize the btrfs partition so no more free space is left in the extended
partition /dev/sda2 ?
Do you need more information to answer/solve this bug?
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Bugme-new
mailing list