Re: IO errors when building RAID1.... ?

2018-09-03 Thread Chris Murphy
On Mon, Sep 3, 2018 at 4:23 AM, Adam Borowski wrote: > On Sun, Sep 02, 2018 at 09:15:25PM -0600, Chris Murphy wrote: >> For > 10 years drive firmware handles bad sector remapping internally. >> It remaps the sector logical address to a reserve physical sector. >> >> NTFS and ext[234] have a means

Re: IO errors when building RAID1.... ?

2018-09-03 Thread Adam Borowski
On Sun, Sep 02, 2018 at 09:15:25PM -0600, Chris Murphy wrote: > For > 10 years drive firmware handles bad sector remapping internally. > It remaps the sector logical address to a reserve physical sector. > > NTFS and ext[234] have a means of accepting a list of bad sectors, and > will avoid using

Re: IO errors when building RAID1.... ?

2018-09-03 Thread Pierre Couderc
On 09/03/2018 05:15 AM, Chris Murphy wrote: On Sat, Sep 1, 2018 at 1:03 AM, Pierre Couderc wrote: On 08/31/2018 08:52 PM, Chris Murphy wrote: Bad sector which is failing write. This is fatal, there isn't anything the block layer or Btrfs (or ext4 or XFS) can do about it. Well, ext234 do

Re: IO errors when building RAID1.... ?

2018-09-02 Thread Chris Murphy
On Sat, Sep 1, 2018 at 1:03 AM, Pierre Couderc wrote: > > > On 08/31/2018 08:52 PM, Chris Murphy wrote: >> >> >> Bad sector which is failing write. This is fatal, there isn't anything >> the block layer or Btrfs (or ext4 or XFS) can do about it. Well, >> ext234 do have an option to scan for bad

Re: IO errors when building RAID1.... ?

2018-09-01 Thread Pierre Couderc
On 09/01/2018 03:35 AM, Duncan wrote: Chris Murphy posted on Fri, 31 Aug 2018 13:02:16 -0600 as excerpted: If you want you can post the output from 'sudo smartctl -x /dev/sda' which will contain more information... but this is in some sense superfluous. The problem is very clearly a bad

Re: IO errors when building RAID1.... ?

2018-09-01 Thread Pierre Couderc
On 08/31/2018 08:52 PM, Chris Murphy wrote: Bad sector which is failing write. This is fatal, there isn't anything the block layer or Btrfs (or ext4 or XFS) can do about it. Well, ext234 do have an option to scan for bad sectors and create a bad sector map which then can be used at mkfs

Re: IO errors when building RAID1.... ?

2018-08-31 Thread Duncan
Chris Murphy posted on Fri, 31 Aug 2018 13:02:16 -0600 as excerpted: > If you want you can post the output from 'sudo smartctl -x /dev/sda' > which will contain more information... but this is in some sense > superfluous. The problem is very clearly a bad drive, the drive > explicitly report to

Re: IO errors when building RAID1.... ?

2018-08-31 Thread Chris Murphy
If you want you can post the output from 'sudo smartctl -x /dev/sda' which will contain more information... but this is in some sense superfluous. The problem is very clearly a bad drive, the drive explicitly report to libata a write error, and included the sector LBA affected, and only the drive

Re: IO errors when building RAID1.... ?

2018-08-31 Thread Chris Murphy
On Fri, Aug 31, 2018 at 10:35 AM, Pierre Couderc wrote: > > Aug 31 17:34:55 server su[559]: Successful su for root by nous > Aug 31 17:34:55 server su[559]: + /dev/pts/1 nous:root > Aug 31 17:34:55 server su[559]: pam_unix(su:session): session opened for > user root by nous(uid=1000) > Aug 31

IO errors when building RAID1.... ?

2018-08-31 Thread Pierre Couderc
When trying to build a RAID1 on main fs. After  normal debian stretch install : root@server:/home/nous# btrfs device add /dev/sdb1 / root@server:/home/nous# btrfs fi show Label: none  uuid: ef0b9dad-c0eb-4a3b-9b41-e5e249363abc     Total devices 2 FS bytes used 824.60MiB     devid    1