* Unable to perform online resize
@ 2011-04-12 22:15 Ali Lown
2011-04-12 22:41 ` Jan Steffens
0 siblings, 1 reply; 2+ messages in thread
From: Ali Lown @ 2011-04-12 22:15 UTC (permalink / raw)
To: linux-btrfs
I am using btrfs-progs latest git head in gentoo, along with a 2.6.37 k=
ernel.
I am unable to resize the filesystem online (or offline - though that
doesn't seem to be an option).
with brtfs:
-----------------------------------------------------------------------=
----------------------------------------
alipc-gentoo% sudo btrfs filesystem resize +20g ~/.wine/drive_c
Resize '/home/ali/.wine/drive_c' of '+20g'
ERROR: unable to resize '/home/ali/.wine/drive_c'
-----------------------------------------------------------------------=
----------------------------------------
with btrfs-ctl:
-----------------------------------------------------------------------=
----------------------------------------
alipc-gentoo% sudo btrfsctl -r +20g ~/.wine/drive_c
ioctl:: File too large
-----------------------------------------------------------------------=
----------------------------------------
fdisk -l of the the drive that partiion is on (sda9 =3D ~/.wine/drive_c=
):
-----------------------------------------------------------------------=
----------------------------------------
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units =3D sectors of 1 * 512 =3D 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e3826
=C2=A0 =C2=A0Device Boot =C2=A0 =C2=A0 =C2=A0Start =C2=A0 =C2=A0 =C2=A0=
=C2=A0 End =C2=A0 =C2=A0 =C2=A0Blocks =C2=A0 Id =C2=A0System
/dev/sda1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A063 =C2=A01953=
520064 =C2=A0 976760001 =C2=A0 =C2=A05 =C2=A0Extended
/dev/sda5 =C2=A0 =C2=A0 =C2=A01009797705 =C2=A01953520064 =C2=A0 471861=
180 =C2=A0 83 =C2=A0Linux
/dev/sda6 =C2=A0 =C2=A0 =C2=A0 642391218 =C2=A01009797704 =C2=A0 183703=
243+ =C2=A083 =C2=A0Linux
/dev/sda7 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 189 =C2=A0 =C2=A041=
945714 =C2=A0 =C2=A020972763 =C2=A0 =C2=A07 =C2=A0HPFS/NTFS
/dev/sda8 =C2=A0 =C2=A0 =C2=A0 =C2=A041945778 =C2=A0 104856254 =C2=A0 =C2=
=A031455238+ =C2=A083 =C2=A0Linux
/dev/sda9 =C2=A0 =C2=A0 =C2=A0 104856318 =C2=A0 209712509 =C2=A0 =C2=A0=
52428096 =C2=A0 83 =C2=A0Linux
/dev/sda10 =C2=A0 =C2=A0 =C2=A0386250858 =C2=A0 468166229 =C2=A0 =C2=A0=
40957686 =C2=A0 83 =C2=A0Linux
Partition table entries are not in disk order
-----------------------------------------------------------------------=
----------------------------------------
=46or help in comprehending this, here is an image from gparted:
http://img833.imageshack.us/i/gpartedd.png/
Apart from the hideous numbering and arrangement - I used gparted, and
made it up gradually, as and when I needed partitions.
In short for sda9, it is a logical partition inside an extended
partion (sda1), and has approximately 85GB of unpartioned space
(inside the extended partition) following it, into which I would like
to resize it.
Thanks.
-Ali
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Unable to perform online resize
2011-04-12 22:15 Unable to perform online resize Ali Lown
@ 2011-04-12 22:41 ` Jan Steffens
0 siblings, 0 replies; 2+ messages in thread
From: Jan Steffens @ 2011-04-12 22:41 UTC (permalink / raw)
To: linux-btrfs
On Wed, Apr 13, 2011 at 12:15 AM, Ali Lown <ali@lown.me.uk> wrote:
> I am using btrfs-progs latest git head in gentoo, along with a 2.6.37=
kernel.
> I am unable to resize the filesystem online (or offline - though that
> doesn't seem to be an option).
>
> with brtfs:
> ---------------------------------------------------------------------=
------------------------------------------
> alipc-gentoo% sudo btrfs filesystem resize +20g ~/.wine/drive_c
> Resize '/home/ali/.wine/drive_c' of '+20g'
> ERROR: unable to resize '/home/ali/.wine/drive_c'
> ---------------------------------------------------------------------=
------------------------------------------
>
> with btrfs-ctl:
> ---------------------------------------------------------------------=
------------------------------------------
> alipc-gentoo% sudo btrfsctl -r +20g ~/.wine/drive_c
> ioctl:: File too large
> ---------------------------------------------------------------------=
------------------------------------------
>
> fdisk -l of the the drive that partiion is on (sda9 =3D ~/.wine/drive=
_c):
> ---------------------------------------------------------------------=
------------------------------------------
> Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 secto=
rs
> Units =3D sectors of 1 * 512 =3D 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x000e3826
> =C2=A0 =C2=A0Device Boot =C2=A0 =C2=A0 =C2=A0Start =C2=A0 =C2=A0 =C2=A0=
=C2=A0 End =C2=A0 =C2=A0 =C2=A0Blocks =C2=A0 Id =C2=A0System
> /dev/sda1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A063 =C2=A019=
53520064 =C2=A0 976760001 =C2=A0 =C2=A05 =C2=A0Extended
> /dev/sda5 =C2=A0 =C2=A0 =C2=A01009797705 =C2=A01953520064 =C2=A0 4718=
61180 =C2=A0 83 =C2=A0Linux
> /dev/sda6 =C2=A0 =C2=A0 =C2=A0 642391218 =C2=A01009797704 =C2=A0 1837=
03243+ =C2=A083 =C2=A0Linux
> /dev/sda7 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 189 =C2=A0 =C2=A0=
41945714 =C2=A0 =C2=A020972763 =C2=A0 =C2=A07 =C2=A0HPFS/NTFS
> /dev/sda8 =C2=A0 =C2=A0 =C2=A0 =C2=A041945778 =C2=A0 104856254 =C2=A0=
=C2=A031455238+ =C2=A083 =C2=A0Linux
> /dev/sda9 =C2=A0 =C2=A0 =C2=A0 104856318 =C2=A0 209712509 =C2=A0 =C2=A0=
52428096 =C2=A0 83 =C2=A0Linux
> /dev/sda10 =C2=A0 =C2=A0 =C2=A0386250858 =C2=A0 468166229 =C2=A0 =C2=A0=
40957686 =C2=A0 83 =C2=A0Linux
> Partition table entries are not in disk order
> ---------------------------------------------------------------------=
------------------------------------------
> For help in comprehending this, here is an image from gparted:
> http://img833.imageshack.us/i/gpartedd.png/
>
> Apart from the hideous numbering and arrangement - I used gparted, an=
d
> made it up gradually, as and when I needed partitions.
> In short for sda9, it is a logical partition inside an extended
> partion (sda1), and has approximately 85GB of unpartioned space
> (inside the extended partition) following it, into which I would like
> to resize it.
> Thanks.
> -Ali
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =C2=A0http://vger.kernel.org/majordomo-info.ht=
ml
>
btrfs resizing (like resize2fs) does not manipulate the size of partiti=
ons.
=46irst, you need to expand the partition using fdisk or gparted.
Afterwards you can use "btrfs filesystem resize max ~/.wine/drive_c"
to grow the filesystem to the size of the partition.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-12 22:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 22:15 Unable to perform online resize Ali Lown
2011-04-12 22:41 ` Jan Steffens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).