|
From: Cristian K. <cr...@ne...> - 2007-04-01 08:37:02
|
Hi, Please include the following information somewhere on your site. It describes how to solve 'Current Pending Offline' problems on FreeBSD. If I had this information sooner, it would have saved me a lot of trouble. The following was tested on a FreeBSD 5.4, but should work on any FreeBSD > 5. Thank you very much, Cristi. --- cut here --- Suppose /dev/ad2 is failing a sector $x$. Do the following: root# sysctl kern.geom.debugflags=16 root# dd if=/dev/zero of=/dev/ad2 bs=512 count=1 oseek=$x$ root# sysctl kern.geom.debugflags=0 The first command enables writing directly to GEOM providers (your disk in this case). The second command overwrites the 'sick' sector with zeroes. The third command disables writing directly to GEOM providers (better be safe than sorry). --- and here --- |