From: "Helmut Hullen" <Hullen@t-online.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: migrating drives (device delete)
Date: 10 Nov 2010 12:31:00 +0100 [thread overview]
Message-ID: <B$bHV4Xy1uB@helmut.hullen.de> (raw)
In-Reply-To: <1289387076.20690.28.camel@jeezo>
Hallo, Oliver,
Du meintest am 10.11.10:
> # sudo btrfs filesystem show
> Label: none uuid: cd4fd4c1-0632-4cbe-bf3b-ba7a9acda1e0
> Total devices 2 FS bytes used 291.62GB
> devid 2 size 696.77GB used 146.63GB path /dev/sdb2
> devid 1 size 147.19GB used 146.64GB path /dev/sda2
What tells "df": about 300 GByte in use?
> Now I want to remove the smaller drive:
> # mount -t btrfs -o remount,degraded /dev/sda2 /
> # mount | grep /dev/sda2
> /dev/sda2 on / type btrfs (rw,degraded)
> # btrfs device delete /dev/sda2 /
> ERROR: error removing the device '/dev/sda2'
I've tried (with the above device names)
btrfs device delete /dev/sda2 /
btrfs filesystem balance /
Ok - I don't try these commands under "/" ...
And I haven't told the system to make a "raid0". I've created the first
btrfs partition only with
mkfs.btrfs /dev/sdxn
And I haven't used "degraded" after balancing the 2 partitions.
The "balance" command may take a long time; I've just seen about 2 days
for 1.5 TByte.
As long as "balance" works it throws messages into "/var/log/messages"
and can be watched with "top".
When "balance" has finished:
btrfs filesystem show 2>/dev/null
shouldn't show the "deleted" partition.
Viele Gruesse!
Helmut
next prev parent reply other threads:[~2010-11-10 11:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-10 11:04 migrating drives (device delete) Oliver Večernik
2010-11-10 11:31 ` Helmut Hullen [this message]
2010-11-10 12:15 ` Oliver Večernik
[not found] ` <20101110123403.GA11460@vlad.carfax.org.uk>
2010-11-10 14:40 ` Oliver Večernik
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='B$bHV4Xy1uB@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).