All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean Greenslade <sean@seangreenslade.com>
To: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
Cc: Sanidhya Solanki <lkml.page@gmail.com>,
	Alexandru Guzu <alexguzu@gmail.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>,
	Qu Wenruo <quwenruo@cn.fujitsu.com>
Subject: Re: BTRFS converted from EXT4 becomes read-only after reboot
Date: Mon, 8 May 2017 13:01:07 -0400	[thread overview]
Message-ID: <20170508170106.GA1699@fox> (raw)
In-Reply-To: <4aedf23f-2bc4-ce18-d5b0-13fa51496feb@gmail.com>

On Mon, May 08, 2017 at 12:41:11PM -0400, Austin S. Hemmelgarn wrote:
> Send/receive is not likely to transfer the problem unless it has something
> to do with how things are reflinked.  Receive operates by recreating the
> sent subvolume from userspace using regular commands and the clone ioctls,
> so it won't replicate any low-level structural issues in the filesystem
> unless they directly involve the way extents are being shared (or are a side
> effect of that).  On top of that, if there is an issue on the sending side,
> send itself will probably not send that data, so it's actually only
> marginally more dangerous than using something like rsync to copy the data.

True, but my goal was to eliminate as many btrfs variables as I could.
To answer the original question, I used rsync to copy the data and
attributes (something like rsync -aHXp --numeric-ids) from a live CD to
an external hard drive (formatted ext4), then ran mkfs.btrfs on the
original partition, then re-ran the rsync in the opposite direction. It
worked quite well for me, and the problem hasn't resurfaced.

--Sean


  reply	other threads:[~2017-05-08 17:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-03 20:28 BTRFS converted from EXT4 becomes read-only after reboot Alexandru Guzu
2017-05-03 22:18 ` Chris Murphy
2017-05-04  3:55   ` Duncan
2017-05-23 17:00     ` Marc MERLIN
2017-05-23 21:38       ` Chris Murphy
2017-05-23 21:49         ` Marc MERLIN
2017-05-23 21:51           ` Chris Murphy
2017-05-23 21:53             ` Marc MERLIN
2017-05-23 22:02               ` Marc MERLIN
2017-05-23 21:51           ` Hugo Mills
2017-05-24  4:03           ` Andrei Borzenkov
     [not found]   ` <CAPktuGtqt-tVNvbxkdaEB7PshWVpDHsxfHYMujOkAvOP9aiJ6w@mail.gmail.com>
2017-05-05 15:40     ` Chris Murphy
     [not found]       ` <CAPktuGtTVMFcrh1QRgnXXiS9HvrKDEYK9kAumUGToY+ycaMoCA@mail.gmail.com>
2017-05-05 21:26         ` Chris Murphy
2017-05-07 17:32 ` Sean Greenslade
2017-05-08 14:16   ` Alexandru Guzu
2017-05-08 15:28     ` Sanidhya Solanki
2017-05-08 16:22       ` Sean Greenslade
2017-05-08 16:41         ` Austin S. Hemmelgarn
2017-05-08 17:01           ` Sean Greenslade [this message]
2017-05-08 18:22             ` Alexandru Guzu
2017-05-08 19:02               ` Sean Greenslade
2017-05-08 19:15                 ` Alexandru Guzu
2017-05-08 19:30                   ` Chris Murphy
2017-05-08 19:09               ` Chris Murphy
2017-05-08 19:05     ` 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=20170508170106.GA1699@fox \
    --to=sean@seangreenslade.com \
    --cc=ahferroin7@gmail.com \
    --cc=alexguzu@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lkml.page@gmail.com \
    --cc=quwenruo@cn.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.