Date: Tue, 16 Feb 2021 16:05:03 +0300 From: Artem Kuchin <artem@artem.ru> To: Alan Somers <asomers@freebsd.org> Cc: freebsd-fs <freebsd-fs@freebsd.org> Subject: Re: Simulating bad sectors on file based storage device. How? Message-ID: <46b52475-385f-5931-f425-fd546dd5b377@artem.ru> In-Reply-To: <CAOtMX2jqR6zY8jhx0nN9NTRcG2XDbO-h0xPNVNzuDC8bFtaRYw@mail.gmail.com> References: <1c372ed8-f5fb-0637-9cce-e892cb38ed28@artem.ru> <CAOtMX2jqR6zY8jhx0nN9NTRcG2XDbO-h0xPNVNzuDC8bFtaRYw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
gnope only allows to set probability, but i need an exact block in an exact place. 15.02.2021 20:44, Alan Somers пишет: > 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@artem.ru > <mailto:artem@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@freebsd.org <mailto:freebsd-fs@freebsd.org> mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > <https://lists.freebsd.org/mailman/listinfo/freebsd-fs> > To unsubscribe, send any mail to > "freebsd-fs-unsubscribe@freebsd.org > <mailto:freebsd-fs-unsubscribe@freebsd.org>" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46b52475-385f-5931-f425-fd546dd5b377>