0
I just got a QNAP TS-251, an NAS that runs Linux plus the manufacturer's tools. One of the setup options is to run a bad block scan, but on a pair of 4 TB drives that might take a really long time to run, during which I can't start to use my new NAS.
So, is there a utility that I can run in the background once the device is fully functional? Obviously such a utility would take even longer than one that's running on new, empty drives, since it has to do its thing without destroying live data. But meanwhile the machine is functional and available.
Such a utility might also be useful as a periodic preventive maintenance tool, a few times a year, not just as a way to bring a new device into service sooner.
- Does such a utility exist for Linux in general?
- If so, does it run on a QNAP NAS?
- Or is there a QNAP specific utility for this purpose?
1
No a bad blocks search should be performed when the process can obtain exclusive access to the disk, so generally speaking, the disk should be unmounted at time of scan. This is because even when mounted as readonly, the process may cause kernel panics or damage the filesystem. see the notes on -f here: http://linux.die.net/man/8/badblocks
– Frank Thomas – 2016-02-26T02:16:11.4301Last time I built up a NAS, I did check the SMART data and performed a filesystem check with free-space testing on each of the disks before using them, and good think I did as disk 2 needed to be RMA'd. I use JBOD though, so I did the testing on another PC, and then installed each disk to the NAS as it became ready. even if you plug it into a windows system, format it NTFS and run chkdsk on it, you can always let the QNAS reformat it natively when you are sure the new disk is healthy. – Frank Thomas – 2016-02-26T02:19:37.977