From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Liu Bo <obuil.liubo@gmail.com>
Cc: Mike Stevens <michael.stevens@bayer.com>,
"waxhead@dirtcellar.net" <waxhead@dirtcellar.net>,
"kreijack@inwind.it" <kreijack@inwind.it>,
David Sterba <dsterba@suse.cz>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: Crashes running btrfs scrub
Date: Thu, 22 Mar 2018 08:08:52 +0800 [thread overview]
Message-ID: <26da33fc-9a0c-5d73-a570-4f7ec84b69ff@gmx.com> (raw)
In-Reply-To: <CANQeFDCR7skUgeY4esN5G4-y2Ry30fjFOyy7p8ayc6W1OtwxKw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2706 bytes --]
On 2018年03月22日 01:13, Liu Bo wrote:
> On Tue, Mar 20, 2018 at 7:01 PM, Qu Wenruo <quwenruo.btrfs@gmx.com> wrote:
>>
>>
>> On 2018年03月21日 01:44, Mike Stevens wrote:
>>>
>>>>> 30 devices is really not that much, heck you get 90 disks top load JBOD
>>>>> storage chassis these days and BTRFS does sound like an attractive choice
>>>>> for things like that.
>>>
>>>> So Mike's case is, that both metadata and data are configured as
>>>> raid6, and the operations, balance and scrub, that he tried, need to
>>>> set the existing block group as readonly (in order to avoid any
>>>> further changes being applied during operations are running), then we
>>>> got into the place where another system chunk is needed.
>>>
>>>> However, I think it'd be better to have some warnings about this when
>>>> doing a) mkfs.btrfs -mraid6, b) btrfs device add.
>>>
>>>> David, any idea?
>>>
>>> I'll certainly vote for a warning, I would have set this up differently had I been aware.
>>>
>>> My filesystem check seems to have returned successfully:
>>>
>>> [root@auswscs9903] ~ # btrfs check --readonly /dev/sdb
>>> Checking filesystem on /dev/sdb
>>> UUID: 77afc2bb-f7a8-4ce9-9047-c031f7571150
>>> checking extents
>>> checking free space cache
>>> checking fs roots
>>> checking csums
>>> checking root refs
>>> found 97926270238720 bytes used err is 0
>>> total csum bytes: 95395030288
>>> total tree bytes: 201223503872
>>> total fs tree bytes: 84484636672
>>> total extent tree bytes: 7195869184
>>> btree space waste bytes: 29627784154
>>> file data blocks allocated: 97756261568512
>>>
>>> I've remounted the filesystem and I can at least touch a file. I'm restarting the rsync that was running when it originally went read only.
>>> What is the next step if it drops back to r/o?
>>
>> As already mentioned, if you're using tons of disks and RAID0/10/5/6 as
>> metadata profile, you can just convert your metadata (or just system) to
>> RAID1/DUP.
>>
>> Then there will be more than enough space for system chunk array.
>>
>
> It's chicken & egg, balance seems to be the only way to switch raid
> profiles however users are stuck here because balance is aborted due
> to failing to allocate an extra system chunk.
Skip_balance to abort current balance and do the new convert.
Since convert will allocate new chunk in new profile, raid1 sys chunk
should be able to fit into superblock.
Thanks,
Qu
>
> thanks,
> liubo
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]
next prev parent reply other threads:[~2018-03-22 0:09 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-15 18:58 Crashes running btrfs scrub Mike Stevens
2018-03-15 20:32 ` waxhead
2018-03-15 21:07 ` Mike Stevens
2018-03-15 21:22 ` Chris Murphy
[not found] ` <6b4f2b33edb44f1ea8cef47ae68960af@MOXDE7.na.bayer.cnb>
2018-03-16 16:00 ` Chris Murphy
2018-03-16 16:17 ` Mike Stevens
2018-03-16 16:44 ` Chris Murphy
2018-03-16 18:53 ` Mike Stevens
2018-03-18 2:23 ` Qu Wenruo
2018-03-16 21:39 ` Liu Bo
2018-03-16 21:46 ` Mike Stevens
2018-03-18 0:26 ` Liu Bo
2018-03-18 6:41 ` Liu Bo
2018-03-18 7:57 ` Goffredo Baroncelli
2018-03-18 14:46 ` Goffredo Baroncelli
2018-03-18 22:52 ` waxhead
2018-03-19 1:51 ` Qu Wenruo
2018-03-19 18:06 ` Liu Bo
2018-03-20 17:44 ` Mike Stevens
2018-03-21 2:01 ` Qu Wenruo
2018-03-21 17:13 ` Liu Bo
2018-03-22 0:08 ` Qu Wenruo [this message]
2018-03-20 20:04 ` Goffredo Baroncelli
2018-03-15 21:15 ` Chris Murphy
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=26da33fc-9a0c-5d73-a570-4f7ec84b69ff@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=dsterba@suse.cz \
--cc=kreijack@inwind.it \
--cc=linux-btrfs@vger.kernel.org \
--cc=michael.stevens@bayer.com \
--cc=obuil.liubo@gmail.com \
--cc=waxhead@dirtcellar.net \
/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).