Simulating bad sectors on file based storage device. How?

Alan Somers asomers at freebsd.org
Mon Feb 15 17:44:24 UTC 2021


If you have SCSI disks, you can inject errors with `sysctl
kern.cam.da.0.error_inject`.  If not, you can use gnop(8) to simulate a
flaky disk.

On Mon, Feb 15, 2021 at 10:36 AM Artem Kuchin <artem at artem.ru> wrote:

> Hello!
>
> Is there a way to build a file base storage device (for example, file
> based zfs mirror) and then simulate a bad sector for one of the mirror
> sides?
>
> Artem
>
>
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>


More information about the freebsd-fs mailing list