Robert Trevellyan
Pony Wrangler
- Joined
- May 16, 2014
- Messages
- 3,778
I imagine that's fairly unusual, and the fact that the log shows a failed test should be grounds for RMA, regardless of the values of the various SMART attributes.
Looks like something is writing to the pool, which is no surprise (e.g. FreeNAS does frequent small writes to whichever pool houses the syslog). This will make it very hard to interpret the results of backblocks, so you're probably best off killing this run, detaching the pool, and starting over.
They do look wrong, but maybe conveyance is shorter for some drives. Seems unlikely tho...Also the times for smartctl -t short and smartctl -t conveyance are the wrong way around?
Is a warning about detaching the pool really necessary?
- The thread title is "Hard Drive Burn-In Testing", which should be a pretty good clue that you don't run it on a live pool.
- The 1st post says, "THIS TEST WILL DESTROY ANY DATA ON THE DISK SO ONLY RUN THIS ON A NEW DISK WITHOUT DATA ON IT OR BACK UP ANY DATA FIRST".
For that matter, you can run the non-destructive badblocks test if you want. Contrary to the badblocks man page and the information in this thread, it's actually faster than the (default) destructive test, though arguably not quite as thorough.you can do this test with a live pool and not lose your pool data. Say you have 5 disks in RAIDZ2, detach pool, test 1 HDD, connect pool, FreeNAS will say system is degraded, 'replace / reconnect' the degraded HDD (the one you tested) and FreeNAS will rebuild your pool.
Is a warning about detaching the pool really necessary?
- The thread title is "Hard Drive Burn-In Testing", which should be a pretty good clue that you don't run it on a live pool.
- The 1st post says, "THIS TEST WILL DESTROY ANY DATA ON THE DISK SO ONLY RUN THIS ON A NEW DISK WITHOUT DATA ON IT OR BACK UP ANY DATA FIRST".
They do look wrong, but maybe conveyance is shorter for some drives. Seems unlikely tho...
sysctl kern.geom.debugflags=0x10
There are areas of a disk that are protected and you are not allowed to write to directly. When using the device the way badblocks does it needs direct disk access so it can write to every sector. For testing reasons there really isn't any risk involved. It just means you will overwrite any data on the disk and there are no safety checks.I'm just about to setup my first FreeNAS server and I'm currently in the process of testing my disks. So far I've ran the Short, Conveyance and Long S.M.A.R.T. tests and my 8x 3TB Red's all passed with flying colours. I'm at the stage where the next step is to enable the debug flags before running badblocks. I have a couple of questions first though.
1. Is it recommended that I use FreeNAS to perform the badblocks tests / is the code below FreeNAS and BSD based OS's only or will it work on Linux based OS's (i.e. can I use my Ubuntu system to run the tests)?
2. What does the code below actually do? Am I right in saying that it enables you to read/write and thus test areas of the disk that are normally off limits?
3. What are the risks involved? I keep on reading that enable the user to "Shoot themselves in the foot".
Code:sysctl kern.geom.debugflags=0x10
Sorry if these are somewhat basic questions. I just want to make sure that I'm doing everything right and understanding as much of what I'm doing as I can.
0x10 (allow foot shooting) Allow writing to Rank 1 providers. This would, for example, allow the super-user to overwrite the MBR on the root disk or write random sectors elsewhere to a mounted disk. The implications are obvious.
Yes, you can, and it's what I did because I have an Ubuntu box available.can I use my Ubuntu system to run the tests
There are areas of a disk that are protected and you are not allowed to write to directly. When using the device the way badblocks does it needs direct disk access so it can write to every sector. For testing reasons there really isn't any risk involved. It just means you will overwrite any data on the disk and there are no safety checks.
Code:0x10 (allow foot shooting) Allow writing to Rank 1 providers. This would, for example, allow the super-user to overwrite the MBR on the root disk or write random sectors elsewhere to a mounted disk. The implications are obvious.
Yes, you can, and it's what I did because I have an Ubuntu box available.
...
This was also asked earlier and I didn't see it addressed so just figured I would bring it up again, upon initializing the badblocks test I get this message reported:
Code:Testing with pattern 0xaa: set_o_direct: Inappropriate ioctl for device
As a new user, and shame on me for not reading all the way to the bottom of the thread before running the test, it would be nice to move some of these improvements such as the -b 4096 option into the main guide.
sysctl kern.geom.debugflags=0x10
Without that switch you won't be badblocking boot sector.
http://unix.stackexchange.com/quest...rpose-of-flag-kern-geom-debugflags-in-freebsd
I feel your pain, 3 days to badblock 3TB greens. Although I didn't use -b 4096 switch.
Very good question(s), I would assume that the mbr/first sector would be skipped regardless. Question is, can badblocks be configured to test just the first sector ?