rslocalhost
Dabbler
- Joined
- Jan 1, 2018
- Messages
- 29
I've two new disks I'm trying to burn-in/test before putting them in production. My FreeNAS server has multiple hot swap bays. (This is a 4U system from ix systems.) I put the two new drives into the empty bays. System sees them and gives them da21/da0 and da42/da43 dev numbers (dual channel system, so each drive has two da's). But when I went to do a badblocks test,
I get
If I remove the w from the badblocks command, making the command read-only, it works just fine. Smart tests also work. So it appears FreeNAS (FreeNAS-9.10.2-U6) is making the disks read-only for some reason. These are new disks, not part of any pool, and they should be blank.
dd commands also give the same error.
I did find another thread with almost the same problem (https://forums.freenas.org/index.php?threads/badblocks-testing-not-working-properly.49854/), but no solution. Another thread mentioned running
Anyone have any ideas?
Code:
badblocks -svw -b 4096 /dev/da0
I get
Operation not permitted while trying to open /dev/da__
. I get this with all the numbers.If I remove the w from the badblocks command, making the command read-only, it works just fine. Smart tests also work. So it appears FreeNAS (FreeNAS-9.10.2-U6) is making the disks read-only for some reason. These are new disks, not part of any pool, and they should be blank.
dd commands also give the same error.
I did find another thread with almost the same problem (https://forums.freenas.org/index.php?threads/badblocks-testing-not-working-properly.49854/), but no solution. Another thread mentioned running
sysctl kern.geom.debugflags=0x10
makes things work temporarily, but I'd (a) prefer a permanent solution, and (b) this is a production NAS, so I don't want to run commands I don't understand. The solution in that thread, gmirror, doesn't seem applicable to me and didn't work anyway on the drives.Anyone have any ideas?
Last edited by a moderator: