Ok, I have a FreeNas media server that has 5 hard drives in it, lets say they are numbered by the OS as sda1, sda2, sda3, sda4, and sda5, Freenas is reporting errors on sda3 and I have a replacement drive, but I want to pull the server from the rack, locate the drive, replace the drive and let ZFS rebuild the pool, my problem is this......
Once I pull the server out of the rack and open it up how do I determine which drive is sda3? all are identical 3tb WD red drives, is there a easy way to figure this out?
Sorry if this is a stupid question or if the answer is easy.....thanks in advance.
Hard drives have unique Serial Numbers, printed on the drive. In linux you can get them with tools like hdparm etc. There probably is something similar in BSD. A quick google do suggest getting the serial is already build in to freenas, as expected.
I thought about that but renaming them will probably destroy the drive pool since it is set up with the names it has, I really can't do that since there is over 5tb of data stored on the NAS.
So what you want to do is from the Freenas GUI, click storage, then highlight the top of the storage 'tree' - whatever line item is on top. Then click View Disks, on this page freenas will list the serial numbers.
Here's the message I'm getting....now it looks like it's two drives failing and the pool degraded.
Checking status of zfs pools:
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
freenas-boot 7.19G 1.91G 5.27G - - 26% 1.00x ONLINE -
zfs 13.6T 10.7T 2.93T - 15% 78% 1.00x DEGRADED /mnt
pool: zfs
state: DEGRADED
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://illumos.org/msg/ZFS-8000-9P
scan: scrub repaired 0 in 10h1m with 0 errors on Sun Nov 22 10:01:31 2015
config:
NAME STATE READ WRITE CKSUM
zfs DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
gptid/cdf947be-b3a6-11e4-8801-d05099478e38 ONLINE 0 0 0
gptid/ce620209-b3a6-11e4-8801-d05099478e38 DEGRADED 0 0 32.3K too many errors
gptid/cecdb7a1-b3a6-11e4-8801-d05099478e38 DEGRADED 0 0 32.3K too many errors
gptid/cf3544cc-b3a6-11e4-8801-d05099478e38 ONLINE 0 0 0
gptid/cfa2402b-b3a6-11e4-8801-d05099478e38 ONLINE 0 0 0
errors: No known data errors
-- End of daily output --
This is from the daily email I get....I'm at work so I can't check it, looks like I need two drives.
Thank you....with you guys help I figured it out, just got to get another drive and replace both of them.....I did find the serial numbers and again thanks for the help it's much appreciated.