From: Shehbaz Jaffer <shehbazjaffer007@gmail.com>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: "Marián Mlčoch" <marian@prima.pis.sk>, linux-btrfs@vger.kernel.org
Subject: Re: BTRFS RESTORE issue
Date: Sat, 24 Feb 2018 20:48:47 -0500 [thread overview]
Message-ID: <CAPLK-i_60dsLiwUdd5yP5WHvutn77xa0JwoR3m+FhH7GNNwk7g@mail.gmail.com> (raw)
In-Reply-To: <a7984d0a-15e0-a087-1616-1eb21f5ab60e@gmx.com>
> If you want checksum and your fs can stand normal RO mount, go RO mount,
> and do normal cp, you will get csum error in kernel message if there is any.
Also, try btrfsck and btrfs scrub. both help in identifying (and
sometimes correcting) csum errors.
They would give both logs on console and dmesg for csum error
detection and correction.
Thanks
On Sat, Feb 24, 2018 at 8:36 PM, Qu Wenruo <quwenruo.btrfs@gmx.com> wrote:
>
>
> On 2018年02月24日 19:13, Marián Mlčoch wrote:
>> Hello,
>> i requst IRC , but nobody helps.
>> My primary question is , how mark restored files with ignored errors.
>>
>> btrfs restore –iv /vol /restorage
>>
>> this command restores files like charm but no marker for ok and bad
>> files (bad crc , bad ...). WHY?
>> This file system isnt newbie , i mean this is urgent feature.
>
> From btrfs-restore(8):
>
> btrfs-restore - try to restore files from a *damaged* btrfs filesystem image
>
> Unless your filesystem is really damaged, you shouldn't use btrfs-restore.
> It's used to *salvage* data, no wonder it will bypass all checksum checking.
>
> If you want checksum and your fs can stand normal RO mount, go RO mount,
> and do normal cp, you will get csum error in kernel message if there is any.
>
>>
>> I restore terabytes miloins files , how after this check bad files ???
>>
>> Please send me info around this , and add this feature ifnt exist.
>>
>> I see one way use dump restore filter but how?
>>
>> btrfs restore –ivD /vol /restorage | grep ??? for bad files
>>
>> Second question is when files is restored with switch –iv , exist way to
>> update metadata in next restore without overwrite?
>
> What did you mean update metadata?
>
> Thanks,
> Qu
>
>> This is for restore
>> next urgent feature.
>>
>> Thanks for info Marian.
>> --
>> 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
>
prev parent reply other threads:[~2018-02-25 1:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-24 11:13 BTRFS RESTORE issue Marián Mlčoch
2018-02-25 1:36 ` Qu Wenruo
2018-02-25 1:48 ` Shehbaz Jaffer [this message]
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=CAPLK-i_60dsLiwUdd5yP5WHvutn77xa0JwoR3m+FhH7GNNwk7g@mail.gmail.com \
--to=shehbazjaffer007@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=marian@prima.pis.sk \
--cc=quwenruo.btrfs@gmx.com \
/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).