On Wed, Nov 02, 2016 at 09:58:41AM +0100, Christian Völker wrote:
> Hi all,
> 
> I am using btrfs as follows:
> root@srv:/srv# btrfs filesystem show
> Label: none  uuid: c8f24351-ddc4-4866-843c-4e95fcb498d4
>         Total devices 2 FS bytes used 1005.37GB
>         devid    2 size 1.00TB used 1023.98GB path /dev/sdc
>         devid    1 size 1.46TB used 1.00TB path /dev/sdb
> 
> Btrfs Btrfs v0.19

   That's positively antique. If your kernel is anything close to the
same age, this experience with btrfs is probably going to be extremely
painful for you.

> It is running inside a virtual machines running on VMware ESXi. I
> increased both virtual disks to 1.5TB now. I did a scsi-rescan and fdisk
> -l tells me the new size:
> Disk /dev/sdb: 1610.6 GB, 1610612736000 bytes
> Disk /dev/sdc: 1610.6 GB, 1610612736000 bytes
> 
> There are no partitions created on the disks, just raw devices used for
> BTRFS. I found several sites where they resized a btrfs filesystem based
> on LVM and the new size was immediately recognized. But how to do on raw
> partitions?

   Than those sites are mistaken. :)

> How do I tell btrfs the devices have been resized?
> I did not find a rescan command. btrfs scan does not change anything. 
> Do I really have to reboot?

   btrfs fi resize <devid>:max /mountpoint

   btrfs dev scan is just used to tell the kernel which devices
contain [parts of] which btrfs filesystems.

   Hugo.

-- 
Hugo Mills             | In one respect at least, the Martians are a happy
hugo@... carfax.org.uk | people: they have no lawyers
http://carfax.org.uk/  |
PGP: E2AB1DE4          |                       John Carter, A Princess of Mars

Attachment: signature.asc
Description: Digital signature

Reply via email to