From: Roman Mamedov <rm@romanrm.net>
To: "Wulfhorst, Heiner" <Heiner.Wulfhorst@claas.com>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: Why doesn't btrfs find additional space after (VMware) disk extension?
Date: Fri, 26 Mar 2021 13:44:21 +0500 [thread overview]
Message-ID: <20210326134421.24cd109a@natsu> (raw)
In-Reply-To: <f50ee91d04c94feda3a6ce413332e83d@claas.com>
On Fri, 26 Mar 2021 08:09:50 +0000
"Wulfhorst, Heiner" <Heiner.Wulfhorst@claas.com> wrote:
> > You got the right lead there, but I believe it's
> >
> > btrfs filesystem resize 3:max /
> >
> > --
> > With respect,
> > Roman
>
> Thanks a lot, you got me one step further (but directly stuck again).
> Unfortunately it now just shows that new space as Unallocated
That's OK
> I also tried to add a new subvol hoping that one would be able to profit
> from that new space (it didn't).
>
> I assume I must add that unallocated space to any subvol, but have no clue
> how to do so.
No, you don't need to, the free space is FS-wide, it does not belong to
subvolumes.
> Again - no documentation found was helping.
> Any Idea what I am missing?
> # btrfs filesystem show
> Label: none uuid: 26c2b9c2-7ef7-476c-825d-9931b6344c37
> Total devices 3 FS bytes used 125.09GiB
> devid 1 size 47.51GiB used 47.51GiB path /dev/sdb2
> devid 2 size 32.00GiB used 32.00GiB path /dev/sdc
> devid 3 size 500.00GiB used 47.52GiB path /dev/sdd
>
>
> # btrfs filesystem usage /
> Overall:
> Device size: 579.51GiB
> Device allocated: 127.02GiB
> Device unallocated: 452.49GiB
> Device missing: 0.00B
> Used: 125.42GiB
> Free (estimated): 452.73GiB (min: 226.49GiB)
> Data ratio: 1.00
> Metadata ratio: 2.00
> Global reserve: 24.00MiB (used: 0.00B)
>
> Data,RAID0: Size:125.01GiB, Used:124.76GiB
> /dev/sdb2 46.51GiB
> /dev/sdc 31.99GiB
> /dev/sdd 46.51GiB
>
> Metadata,RAID1: Size:1.00GiB, Used:333.56MiB
> /dev/sdb2 1.00GiB
> /dev/sdd 1.00GiB
>
> System,RAID1: Size:8.00MiB, Used:16.00KiB
> /dev/sdc 8.00MiB
> /dev/sdd 8.00MiB
>
> Unallocated:
> /dev/sdb2 1.00MiB
> /dev/sdc 1.00MiB
> /dev/sdd 452.48GiB
>
> # btrfs balance /
> WARNING:
>
> Full balance without filters requested. This operation is very
> intense and takes potentially very long. It is recommended to
> use the balance filters to narrow down the scope of balance.
> Use 'btrfs balance start --full-balance' option to skip this
> warning. The operation will start in 10 seconds.
> Use Ctrl-C to stop it.
> 10 9 8 7 6 5 4 3 2 1
> Starting balance without any filters.
> ERROR: error during balancing '/': No space left on device
My guess is that you ask FS to store data and metadata as RAID0 and RAID1,
i.e. each requiring *two* devices either for striping or mirroring, but you do
not actually have two devices with free space to write new data to, only one
(sdd).
With such setup of 47 + 32 + 500 GB, you will be able to store only about 160
GB of data on the FS. Or with 47 and 32 being already filled on the addition of
500GB, even less.
If you want to fully use all the disk space at cost of some performance (at
least for now), you can convert your data to "single":
btrfs balance start -dconvert=single /
It might not be necessary to convert all of it, just some will be enough to
give it a little room and also make all new block groups also "single".
So, at first try adding "-dlimit=10" to the above line.
--
With respect,
Roman
next prev parent reply other threads:[~2021-03-26 8:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 15:47 Why doesn't btrfs find additional space after (VMware) disk extension? Wulfhorst, Heiner
2021-03-25 15:58 ` Roman Mamedov
2021-03-26 8:09 ` AW: " Wulfhorst, Heiner
2021-03-26 8:44 ` Roman Mamedov [this message]
2021-03-26 9:42 ` Wulfhorst, Heiner
2021-03-26 10:14 ` Forza
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210326134421.24cd109a@natsu \
--to=rm@romanrm.net \
--cc=Heiner.Wulfhorst@claas.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox