From: Hullen@t-online.de (Helmut Hullen)
To: linux-btrfs@vger.kernel.org
Subject: Re: delete disk proceedure
Date: 05 Jun 2012 18:19:00 +0200 [thread overview]
Message-ID: <CAIin7n9CXB@helmut.hullen.de> (raw)
In-Reply-To: <4FCE19D3.4090908@webstarts.com>
Hallo, Jim,
Du meintest am 05.06.12:
> /dev/sda 11T 4.9T 6.0T 46% /btrfs
> [root@advanced ~]# btrfs fi show
> failed to read /dev/sr0
> Label: none uuid: c21f1221-a224-4ba4-92e5-cdea0fa6d0f9
> Total devices 12 FS bytes used 4.76TB
> devid 6 size 930.99GB used 429.32GB path /dev/sdf
> devid 5 size 930.99GB used 429.32GB path /dev/sde
> devid 8 size 930.99GB used 429.32GB path /dev/sdh
> devid 9 size 930.99GB used 429.32GB path /dev/sdi
> devid 4 size 930.99GB used 429.32GB path /dev/sdd
> devid 3 size 930.99GB used 429.32GB path /dev/sdc
> devid 11 size 930.99GB used 429.08GB path /dev/sdk
> devid 2 size 930.99GB used 429.32GB path /dev/sdb
> devid 10 size 930.99GB used 429.32GB path /dev/sdj
> devid 12 size 930.99GB used 429.33GB path /dev/sdl
> devid 7 size 930.99GB used 429.32GB path /dev/sdg
> devid 1 size 930.99GB used 429.09GB path /dev/sda
> Btrfs v0.19-35-g1b444cd
> df -h and btrfs fi show seem to be in good size agreement. Btrfs was
> created as raid1 metadata and raid0 data. I would like to delete the
> last 4 drives leaving 7T of space to hold 4.9T of data. My plan
> would be to remove /dev/sdi, j, k, l one at a time. After all are
> deleted run "btrfs fi balance /btrfs".
I'd prefer
btrfs device delete /dev/sdi
btrfs filesystem balance /btrfs
btrfs device delete /dev/sdj
btrfs filesystem balance /btrfs
etc. - after every "delete" its "balance" run.
That may take a lot of hours - I use the last lines of "dmesg" to
extrapolate the needed time (btrfs produces a message about every
minute).
And you can't use the console from where you have started the "balance"
command. Therefore I wrap this command:
echo 'btrfs filesystem balance /btrfs' | at now
Viele Gruesse!
Helmut
next prev parent reply other threads:[~2012-06-05 16:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 14:38 delete disk proceedure Jim
2012-06-05 15:47 ` Hugo Mills
[not found] ` <4FCE2B70.9020107@webstarts.com>
2012-06-05 16:00 ` Hugo Mills
2012-06-05 16:05 ` Jim
2012-06-05 16:19 ` Helmut Hullen [this message]
2012-06-05 17:04 ` Hugo Mills
2012-06-05 17:12 ` Jim
2012-06-05 17:18 ` Hugo Mills
2012-06-05 17:23 ` Helmut Hullen
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=CAIin7n9CXB@helmut.hullen.de \
--to=hullen@t-online.de \
--cc=helmut@hullen.de \
--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;
as well as URLs for NNTP newsgroup(s).