On Tue, Jun 3, 2025 at 11:26 AM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote: > > On Tue, Jun 03, 2025 at 11:21:46AM +0800, Yafang Shao wrote: > > On Tue, Jun 3, 2025 at 11:13 AM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote: > > > > > > On Tue, Jun 03, 2025 at 11:03:40AM +0800, Yafang Shao wrote: > > > > We want to preserve disk functionality despite a few bad sectors. The > > > > option A fails by declaring the entire disk unusable upon > > > > encountering bad blocks—an overly restrictive policy that wastes > > > > healthy storage capacity. > > > > > > What kind of awful 1980s quality storage are you using that doesn't > > > remap bad sectors on write? > > > > Could you please explain why a writeback error still occurred if the > > bad sector remapping function is working properly? > > It wouldn't. Unless you're using something ancient or really really > cheap, The drive in question is a Western Digital HGST Ultrastar HUH721212ALE600 12TB HDD. The price information is unavailable to me;-) > getting a writeback error means that the bad block remapping > area is full. We have confirmed there are still available remapping sectors, but the reallocation operation still failed. > You should be able to use SMART (or similar) to retire > hardware before it gets to that state. > We are always using SMART to do this kind of check. -- Regards Yafang