Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Andrei Borzenkov
24.05.2017 00:49, Marc MERLIN пишет: > On Tue, May 23, 2017 at 03:38:01PM -0600, Chris Murphy wrote: >>> I've tried an ext4 to btrfs conversion 3 times in the last 3 years, it >>> never worked properly any of those times, sadly. >> >> Since the 4.6 total rewrite? There are also recent bug fixes

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Marc MERLIN
On Tue, May 23, 2017 at 02:53:21PM -0700, Marc MERLIN wrote: > On Tue, May 23, 2017 at 03:51:43PM -0600, Chris Murphy wrote: > > On Tue, May 23, 2017 at 3:49 PM, Marc MERLIN wrote: > > > On Tue, May 23, 2017 at 03:38:01PM -0600, Chris Murphy wrote: > > >> > I've tried an ext4 to

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Marc MERLIN
On Tue, May 23, 2017 at 03:51:43PM -0600, Chris Murphy wrote: > On Tue, May 23, 2017 at 3:49 PM, Marc MERLIN wrote: > > On Tue, May 23, 2017 at 03:38:01PM -0600, Chris Murphy wrote: > >> > I've tried an ext4 to btrfs conversion 3 times in the last 3 years, it > >> > never worked

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Hugo Mills
On Tue, May 23, 2017 at 02:49:43PM -0700, Marc MERLIN wrote: > On Tue, May 23, 2017 at 03:38:01PM -0600, Chris Murphy wrote: > > > I've tried an ext4 to btrfs conversion 3 times in the last 3 years, it > > > never worked properly any of those times, sadly. > > > > Since the 4.6 total rewrite?

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Chris Murphy
On Tue, May 23, 2017 at 3:49 PM, Marc MERLIN wrote: > On Tue, May 23, 2017 at 03:38:01PM -0600, Chris Murphy wrote: >> > I've tried an ext4 to btrfs conversion 3 times in the last 3 years, it >> > never worked properly any of those times, sadly. >> >> Since the 4.6 total

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Marc MERLIN
On Tue, May 23, 2017 at 03:38:01PM -0600, Chris Murphy wrote: > > I've tried an ext4 to btrfs conversion 3 times in the last 3 years, it > > never worked properly any of those times, sadly. > > Since the 4.6 total rewrite? There are also recent bug fixes related > to convert in the changelog, it

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Chris Murphy
On Tue, May 23, 2017 at 11:00 AM, Marc MERLIN wrote: > On Thu, May 04, 2017 at 03:55:28AM +, Duncan wrote: >> > But that alone may not fix it, I think you need a newer kernel... >> >> Well, while the 4.4 LTS kernel series /is/ getting a bit long in the >> tooth by now, it's

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-23 Thread Marc MERLIN
On Thu, May 04, 2017 at 03:55:28AM +, Duncan wrote: > > But that alone may not fix it, I think you need a newer kernel... > > Well, while the 4.4 LTS kernel series /is/ getting a bit long in the > tooth by now, it's still the second newest LTS series available, 4.9 > being the newest. > >

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Chris Murphy
On Mon, May 8, 2017 at 1:15 PM, Alexandru Guzu wrote: > Also I was unable to find a way to send-receive a snapshot to the root > subvolume of a different disk. Is this possible? btrfs send /mnt/brick1/root.20170508 | btrfs receive /mnt/brick2 You need to snapshot it again

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Alexandru Guzu
My setup is a single disk, single btrfs subvolume (/) without a separate boot partition. I resolved the issue like this from a Live CD: 1 - take a (read-only) snapshot of the current problematic root system and use send-receive to another BTRFS disk 2 - re-format the original partition as btrfs

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Chris Murphy
On Mon, May 8, 2017 at 12:22 PM, Alexandru Guzu wrote: > Getting a bit off-topic here, but were you able to boot from that fs > with grub after a simple rsync? I've done it with rsync as well as send/receive and both result in bootable systems. I use rsync -pogAXtlHrDx

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Chris Murphy
On Mon, May 8, 2017 at 8:16 AM, Alexandru Guzu wrote: > Deleting the Firefox cache with the LiveCD resolved the issue where > the FS would become read-only when opening Firefox, however, the > lowmem check still reports errors. There are probably some other files > that would

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Alexandru Guzu
Getting a bit off-topic here, but were you able to boot from that fs with grub after a simple rsync? On Mon, May 8, 2017 at 1:01 PM, Sean Greenslade wrote: > On Mon, May 08, 2017 at 12:41:11PM -0400, Austin S. Hemmelgarn wrote: >> Send/receive is not likely to transfer

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Sean Greenslade
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,

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Austin S. Hemmelgarn
On 2017-05-08 12:22, Sean Greenslade wrote: On May 8, 2017 11:28:42 AM EDT, Sanidhya Solanki wrote: On Mon, 8 May 2017 10:16:44 -0400 Alexandru Guzu wrote: Sean, how would you approach the copy of the data back and forth if the OS is on it? Would a

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Sean Greenslade
On May 8, 2017 11:28:42 AM EDT, Sanidhya Solanki wrote: >On Mon, 8 May 2017 10:16:44 -0400 >Alexandru Guzu wrote: > >> Sean, how would you approach the copy of the data back and forth if >> the OS is on it? Would a Send-receive and then back work? > >You

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Sanidhya Solanki
On Mon, 8 May 2017 10:16:44 -0400 Alexandru Guzu wrote: > Sean, how would you approach the copy of the data back and forth if > the OS is on it? Would a Send-receive and then back work? You could use a Live-USB and then just dd it to remote or attached storage, if you want

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-08 Thread Alexandru Guzu
Deleting the Firefox cache with the LiveCD resolved the issue where the FS would become read-only when opening Firefox, however, the lowmem check still reports errors. There are probably some other files that would cause the FS to become read-only again, but I'm not sure how to find them. I took a

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-07 Thread Sean Greenslade
On May 3, 2017 4:28:11 PM EDT, Alexandru Guzu wrote: >Hi all, > >In a VirtualBox VM, I converted a EXT4 fs to BTRFS that is now running >on Ubuntu 16.04 (Kernel 4.4.0-72). I was able to use the system for >several weeks. I even did kernel updates, compression, deduplication

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-05 Thread Chris Murphy
Please reply to all. You keep dropping Qu and the Btrfs list off your responses. On Fri, May 5, 2017 at 2:22 PM, Alexandru Guzu wrote: > I booted a Live CD with btrfs-progs 4.10.2 and ran a check on the > partition, the regular btrfs check did not find any errors, but the >

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-05 Thread Chris Murphy
On Fri, May 5, 2017 at 8:56 AM, Alexandru Guzu wrote: > btrfs-progs is 4.4 That's before the rewrite of convert. > I upgraded the kernel to 4.8.0-51 and the issue persists. > However, I noticed that the issue is triggered when I start Firefox. I > think Firefox starts

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-03 Thread Duncan
Chris Murphy posted on Wed, 03 May 2017 16:18:34 -0600 as excerpted: > On Wed, May 3, 2017 at 2:28 PM, Alexandru Guzu > wrote: > >> In a VirtualBox VM, I converted a EXT4 fs to BTRFS that is now running >> on Ubuntu 16.04 (Kernel 4.4.0-72). I was able to use the system for

Re: BTRFS converted from EXT4 becomes read-only after reboot

2017-05-03 Thread Chris Murphy
On Wed, May 3, 2017 at 2:28 PM, Alexandru Guzu wrote: > In a VirtualBox VM, I converted a EXT4 fs to BTRFS that is now running > on Ubuntu 16.04 (Kernel 4.4.0-72). I was able to use the system for > several weeks. I even did kernel updates, compression, deduplication >

BTRFS converted from EXT4 becomes read-only after reboot

2017-05-03 Thread Alexandru Guzu
Hi all, In a VirtualBox VM, I converted a EXT4 fs to BTRFS that is now running on Ubuntu 16.04 (Kernel 4.4.0-72). I was able to use the system for several weeks. I even did kernel updates, compression, deduplication without issues. Since today, a little while after booting (usually when I start