Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-07-02 Thread Andrea Gelmini
On Mon, Jun 24, 2019 at 11:31:35AM -0600, Chris Murphy wrote: > Right. The questions I have: should Btrfs (or any file system) be able > to detect such devices and still protect the data? i.e. for the file I have more than 600 industrial machine all around the world. After a few fs corruption (ext

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-25 Thread Zygo Blaxell
On Mon, Jun 24, 2019 at 11:31:35AM -0600, Chris Murphy wrote: > On Sun, Jun 23, 2019 at 7:52 PM Qu Wenruo wrote: > > > > > > > > On 2019/6/24 上午4:45, Zygo Blaxell wrote: > > > I first observed these correlations back in 2016. We had a lot of WD > > > Green and Black drives in service at the time-

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-24 Thread Chris Murphy
On Sun, Jun 23, 2019 at 7:52 PM Qu Wenruo wrote: > > > > On 2019/6/24 上午4:45, Zygo Blaxell wrote: > > I first observed these correlations back in 2016. We had a lot of WD > > Green and Black drives in service at the time--too many to replace or > > upgrade them all early--so I looked for a workar

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-23 Thread Qu Wenruo
On 2019/6/24 下午12:29, Zygo Blaxell wrote: [...] > >> Btrfs is relying more the hardware to implement barrier/flush properly, >> or CoW can be easily ruined. >> If the firmware is only tested (if tested) against such fs, it may be >> the problem of the vendor. > [...] >>> WD Green and Black are l

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-23 Thread Zygo Blaxell
On Mon, Jun 24, 2019 at 12:37:51AM -0400, Zygo Blaxell wrote: > On Sun, Jun 23, 2019 at 10:45:50PM -0400, Remi Gauvin wrote: > > On 2019-06-23 4:45 p.m., Zygo Blaxell wrote: > > > > > Model Family: Western Digital Green Device Model: WDC WD20EZRX-00DC0B0 > > > Firmware Version: 80.00A80 > > >

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-23 Thread Zygo Blaxell
On Sun, Jun 23, 2019 at 10:45:50PM -0400, Remi Gauvin wrote: > On 2019-06-23 4:45 p.m., Zygo Blaxell wrote: > > > Model Family: Western Digital Green Device Model: WDC WD20EZRX-00DC0B0 > > Firmware Version: 80.00A80 > > > > Change the query to 1-30 power cycles, and we get another model with

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-23 Thread Zygo Blaxell
On Mon, Jun 24, 2019 at 08:46:06AM +0800, Qu Wenruo wrote: > On 2019/6/24 上午4:45, Zygo Blaxell wrote: > > On Thu, Jun 20, 2019 at 01:00:50PM +0800, Qu Wenruo wrote: > >> On 2019/6/20 上午7:45, Zygo Blaxell wrote: [...] > So the worst scenario really happens in real world, badly implemented > flush/fu

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-23 Thread Remi Gauvin
On 2019-06-23 4:45 p.m., Zygo Blaxell wrote: > Model Family: Western Digital Green Device Model: WDC WD20EZRX-00DC0B0 > Firmware Version: 80.00A80 > > Change the query to 1-30 power cycles, and we get another model with > the same firmware version string: > > Model Family: Western D

Re: btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-23 Thread Qu Wenruo
On 2019/6/24 上午4:45, Zygo Blaxell wrote: > On Thu, Jun 20, 2019 at 01:00:50PM +0800, Qu Wenruo wrote: >> On 2019/6/20 上午7:45, Zygo Blaxell wrote: >>> On Sun, Jun 16, 2019 at 12:05:21AM +0200, Claudius Winkel wrote: What should I do now ... to use btrfs safely? Should i not use it with D

btrfs vs write caching firmware bugs (was: Re: BTRFS recovery not possible)

2019-06-23 Thread Zygo Blaxell
On Thu, Jun 20, 2019 at 01:00:50PM +0800, Qu Wenruo wrote: > On 2019/6/20 上午7:45, Zygo Blaxell wrote: > > On Sun, Jun 16, 2019 at 12:05:21AM +0200, Claudius Winkel wrote: > >> What should I do now ... to use btrfs safely? Should i not use it with > >> DM-crypt > > > > You might need to disable wri