So, today I needed to replace a HDD in my FreeNAS server. This is a first for me, I’ve never had any issues in the several years I’ve been running these. I wanted to dredge up more info about the disk before I replaced it. I found a command that would access S.M.A.R.T features of the drive and give me information such as the model and manufacturer part number which was nice. I could then look up the warranty information on these other drive and begin replacing any that are out of warranty.
smartctr -I /dev/[name_of_device]
Useful notes and commands
zpool status – this command will report all storage pool statuses you can also specify a specific storage pool by throwing its name at the end of the command.
Best Practice – when using FreeNAS or really this could be used for any situation, its a good idea to keep a log of hard drives. This company never did that and they probably have enterprise drives that have been in service for 8+ years! So in a spread sheet, I started a log of when drives were purchased and from what source. I include the manufacturer, model number, and serial number. From that point I begin bench testing the drives making sure they are functional at a most basic level and then move on to S.M.A.R.T tests. I log all the results in the log so I have a detailed overview of inventory and performance.