Re: Strange behavior when replacing device on BTRFS RAID 5 array.

2016-06-27 Thread Steven Haigh
On 28/06/16 03:46, Chris Murphy wrote: > On Mon, Jun 27, 2016 at 11:29 AM, Chris Murphy > wrote: > >> >> Next is to decide to what degree you want to salvage this volume and >> keep using Btrfs raid56 despite the risks > > Forgot to complete this thought. So if you get

Re: Strange behavior when replacing device on BTRFS RAID 5 array.

2016-06-27 Thread Duncan
Nick Austin posted on Sun, 26 Jun 2016 20:57:32 -0700 as excerpted: > I have a 4 device BTRFS RAID 5 filesystem. > > One of the device members of this file system (sdr) had badblocks, so I > decided to replace it. While the others answered the direct question, there's something potentially

Re: Strange behavior when replacing device on BTRFS RAID 5 array.

2016-06-27 Thread Chris Murphy
On Mon, Jun 27, 2016 at 11:29 AM, Chris Murphy wrote: > > Next is to decide to what degree you want to salvage this volume and > keep using Btrfs raid56 despite the risks Forgot to complete this thought. So if you get a backup, and decide you want to fix it, I would see

Re: Strange behavior when replacing device on BTRFS RAID 5 array.

2016-06-27 Thread Austin S. Hemmelgarn
On 2016-06-27 13:29, Chris Murphy wrote: On Sun, Jun 26, 2016 at 10:02 PM, Nick Austin wrote: On Sun, Jun 26, 2016 at 8:57 PM, Nick Austin wrote: sudo btrfs fi show /mnt/newdata Label: '/var/data' uuid: e4a2eb77-956e-447a-875e-4f6595a5d3ec

Re: Strange behavior when replacing device on BTRFS RAID 5 array.

2016-06-27 Thread Chris Murphy
On Sun, Jun 26, 2016 at 10:02 PM, Nick Austin wrote: > On Sun, Jun 26, 2016 at 8:57 PM, Nick Austin wrote: >> sudo btrfs fi show /mnt/newdata >> Label: '/var/data' uuid: e4a2eb77-956e-447a-875e-4f6595a5d3ec >> Total devices 4 FS bytes used

Re: Strange behavior when replacing device on BTRFS RAID 5 array.

2016-06-26 Thread Nick Austin
On Sun, Jun 26, 2016 at 8:57 PM, Nick Austin wrote: > sudo btrfs fi show /mnt/newdata > Label: '/var/data' uuid: e4a2eb77-956e-447a-875e-4f6595a5d3ec > Total devices 4 FS bytes used 8.07TiB > devid1 size 5.46TiB used 2.70TiB path /dev/sdg > devid

Strange behavior when replacing device on BTRFS RAID 5 array.

2016-06-26 Thread Nick Austin
I have a 4 device BTRFS RAID 5 filesystem. One of the device members of this file system (sdr) had badblocks, so I decided to replace it. (I don't have a copy of fi show from before the replace. :-/ ) I ran this command: sudo btrfs replace start 4 /dev/sdw /mnt/newdata I had to shrink /dev/sdr