Balance conversion to metadata RAID1, data RAID1 leaves some metadata as DUP

2019-09-08 Thread Pete
I recently recovered created a fresh filesystem on one disk and recovered from backups with data as SINGLE and metadata as DUP. I added a second disk yesterday and ran a balance with -dconvert=raid1 -mconvert=raid1. I did reboot during the process for a couple of reasons, putting the sides on the

Re: Chasing IO errors. BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2907: errno=-5 IO failure

2019-09-08 Thread Pete
On 8/22/19 12:32 AM, Qu Wenruo wrote: >>> Then I'd recommend to do regular rescue procedure: >>> - Try that skip_bg patchset if possible >>> This provides the best salvage method so far, full subvolume >>> available, although needs out-of-tree patches. >>> https://patchwork.kernel.org/projec

Re: Balance conversion to metadata RAID1, data RAID1 leaves some metadata as DUP

2019-09-08 Thread Holger Hoffstätte
On 9/8/19 9:09 AM, Pete wrote: (snip) I presume running another balance will fix this, but surely all metadata should have been converted? Is there a way to only balance the DUP metadata? Adding "soft" to -mconvert should do exactly that; it will then skip any chunks that are already in the ta

Re: Balance conversion to metadata RAID1, data RAID1 leaves some metadata as DUP

2019-09-08 Thread Pete
On 9/8/19 8:57 AM, Holger Hoffstätte wrote: > On 9/8/19 9:09 AM, Pete wrote: > (snip) >> I presume running another balance will fix this, but surely all metadata >> should have been converted?  Is there a way to only balance the DUP >> metadata? > > Adding "soft" to -mconvert should do exactly tha

Re: Balance conversion to metadata RAID1, data RAID1 leaves some metadata as DUP

2019-09-08 Thread Holger Hoffstätte
On 9/8/19 11:18 AM, Pete wrote: On 9/8/19 8:57 AM, Holger Hoffstätte wrote: On 9/8/19 9:09 AM, Pete wrote: (snip) I presume running another balance will fix this, but surely all metadata should have been converted?  Is there a way to only balance the DUP metadata? Adding "soft" to -mconvert s

user_subvol_rm_allowed vs rmdir_subvol

2019-09-08 Thread Chris Murphy
Came across this podman issue yesterday https://github.com/containers/libpod/issues/3963 Question 1: For unprivileged use case, is it intentional that the user creates a subvolume/snapshot using 'btrfs sub create' and that the user delete it with 'rm -rf' ? And is the consequence of this perform

Feature requests: online backup - defrag - change RAID level

2019-09-08 Thread zedlryqc
Hello everyone! I have been programming for a long time (over 20 years), and I am quite interested in a lot of low-level stuff. But in reality I have never done anything related to kernels or filesystems. But I did a lot of assembly, C, OS stuff etc...   Looking at your project status page

Feature requests: online backup - defrag - change RAID level

2019-09-08 Thread webmaster
Hello everyone! I have been programming for a long time (over 20 years), and I am quite interested in a lot of low-level stuff. But in reality I have never done anything related to kernels or filesystems. But I did a lot of assembly, C, OS stuff etc... Looking at your project status pag

Re: Feature requests: online backup - defrag - change RAID level

2019-09-08 Thread Qu Wenruo
On 2019/9/9 上午10:55, zedlr...@server53.web-hosting.com wrote: > Hello everyone! > [...] >   > 1) Full online backup (or copy, whatever you want to call it) > btrfs backup [-f] > - backups a btrfs filesystem given by to a partition > (with all subvolumes). Why not just btrfs send? Or you wa