linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: how to resize (grow) device partition of a multi-device BTRFS filesystem?
@ 2013-01-12  2:18 Rick Liu
  2013-01-12  2:28 ` Hugo Mills
  0 siblings, 1 reply; 8+ messages in thread
From: Rick Liu @ 2013-01-12  2:18 UTC (permalink / raw)
  To: Hugo Mills; +Cc: Joshua Schüler, linux-btrfs@vger.kernel.org

> 
>    You'll need to use something like fdisk or cfdisk to resize the
> partition first. With (c)fdisk, that involves deleting and recreating
> the partition with the same starting point. (fdisk gives you more
> control here). As with most low-level FS-resizing tools, btrfs fi
> resize doesn't attempt to change the size of the underlying device.
> 
>    Hugo.
[Rick Liu] 
I see.
So that means unlike ext4 filesystem,
which I can use resize2fs on line to grow partition without losing data,
BTRFS must re-create partition table (fdisk) and loss data.

I'll then use a workaround:
add new bigger virtual disk.

Thank for your help,

Rick


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: how to resize (grow) device partition of a multi-device BTRFS filesystem?
@ 2013-01-12  0:29 Rick Liu
  2013-01-12  1:50 ` Hugo Mills
  0 siblings, 1 reply; 8+ messages in thread
From: Rick Liu @ 2013-01-12  0:29 UTC (permalink / raw)
  To: Joshua Schüler, linux-btrfs@vger.kernel.org

> 
> Hi Rick,
> 
> use
> btrfs fi resize <devid>:max
> to make btrfs use all space of disk <devid>
> 
[Rick Liu] 
Hi,

I tried, but it seems no effect.
(dev/sdc was 300GB and now is 500GB, )
After resize,
/dev/sdc1 is still 300GB.


# btrfs filesystem show
Label: 'local'  uuid: 828bee8c-a28c-443f-b19a-8e65e3f94963
        Total devices 3 FS bytes used 372.22GB
        devid    3 size 500.00GB used 259.06GB path /dev/sde1
        devid    4 size 500.00GB used 260.06GB path /dev/sdd
        devid    5 size 300.00GB used 0.00 path /dev/sdc1
Btrfs v0.19+

# btrfs fi resize 5:max /local
Resize '/local' of '5:max'

# btrfs filesystem show
Label: 'local'  uuid: 828bee8c-a28c-443f-b19a-8e65e3f94963
        Total devices 3 FS bytes used 372.22GB
        devid    3 size 500.00GB used 259.06GB path /dev/sde1
        devid    4 size 500.00GB used 260.06GB path /dev/sdd
        devid    5 size 300.00GB used 0.00 path /dev/sdc1
Btrfs v0.19+


^ permalink raw reply	[flat|nested] 8+ messages in thread
* how to resize (grow) device partition of a multi-device BTRFS filesystem?
@ 2013-01-11 23:39 Rick Liu
  2013-01-11 23:53 ` Joshua Schüler
  0 siblings, 1 reply; 8+ messages in thread
From: Rick Liu @ 2013-01-11 23:39 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

Hi,

I'm running OpenSUSE12.2 on VMware ESXi5.
I create /local using BTRFS file system with 3 devices (sdc, sdd, sde).
These 3 devices are VMware's virtual disk (vmdk files).

Instead of adding another new virtual disk,
ESXi allows to increase Virtual Disk size,
so I increase the size for 3 devices (sdc, sdd, sde) from 300GB to 500GB for each.

In EXT4 file system,
I can resize (grow) partition directly.
How to do this on BTRFS partition?



Thanks,

Rick


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-12 11:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-12  2:18 how to resize (grow) device partition of a multi-device BTRFS filesystem? Rick Liu
2013-01-12  2:28 ` Hugo Mills
2013-01-12  3:11   ` Chris Murphy
2013-01-12 11:06   ` Roman Mamedov
  -- strict thread matches above, loose matches on Subject: below --
2013-01-12  0:29 Rick Liu
2013-01-12  1:50 ` Hugo Mills
2013-01-11 23:39 Rick Liu
2013-01-11 23:53 ` Joshua Schüler

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).