Hi, I just upgraded to TrueNAS-SCALE-23.10.2 from truenas 11.3. I have 2 pools each is Raidz1 and has 3x4TB drives and a spare. In one pool, one of the drives sdc is showing faulted with 17 errors. The spare drive sdb is on-line. I am trying to follow the instructions to replace the drive. When I select the errored drive sdc and try to take it offline I do not get any confirmation. My understanding is that with a spare drive the system should bring sdb into the pool once the bad drive is offline however the bad drive remains in a faulted status. I have waited several hours since selecting to take the drive offline. Any suggestions please?
We need a bit more information. Please supply;
- Output of
zpool status
- Output
lsblk
- Output of
smartctl -a X
, which X is the failing disk - How are the disks wired to the computer, system board SATA?
Other information may also be needed.
If a ZFS pool has a Hot Spare attached to it, on failure of the data disk, the Hot Spare will automatically take over. No off-lining of failing disk needed.
It is possible to make the active Hot Spare a permanent part of the data vDev by permanently removing the failing disk, instead of replacing it. If that is done, the active Hot Spare is removed from being a Hot Spare. At some future date, a new Hot Spare can be added.
Note that Hot Spares, when not active, can be removed from a pool. Further, Hot Spares are the only devices, (at present), that can be shared between pools. From the zpoolconcepts
manual page:
Spares can be shared across multiple pools
Thanks for responding, I am attaching the output:
pool: New
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use ‘zpool clear’ to mark the device
repaired.
scan: scrub repaired 0B in 08:24:45 with 0 errors on Mon Dec 30 03:32:15 2024
config:
NAME STATE READ WRITE CKSUM
New DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
sdh2 ONLINE 0 0 0
sdg2 ONLINE 0 0 0
ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E2ULR04L-part2 FAULTED 17 0 0 too many errors
spares
sdb2 AVAIL
errors: No known data errors
root@truenas[~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 512K 0 part
├─sda2 8:2 0 216.9G 0 part
└─sda3 8:3 0 16G 0 part
└─sda3 253:0 0 16G 0 crypt [SWAP]
sdb 8:16 0 3.6T 0 disk
├─sdb1 8:17 0 2G 0 part
└─sdb2 8:18 0 3.6T 0 part
sdc 8:32 0 3.6T 0 disk
├─sdc1 8:33 0 2G 0 part
└─sdc2 8:34 0 3.6T 0 part
sdd 8:48 1 3.6T 0 disk
├─sdd1 8:49 1 2G 0 part
└─sdd2 8:50 1 3.6T 0 part
sde 8:64 1 3.6T 0 disk
├─sde1 8:65 1 2G 0 part
└─sde2 8:66 1 3.6T 0 part
sdf 8:80 0 3.6T 0 disk
├─sdf1 8:81 0 2G 0 part
└─sdf2 8:82 0 3.6T 0 part
sdg 8:96 0 3.6T 0 disk
├─sdg1 8:97 0 2G 0 part
└─sdg2 8:98 0 3.6T 0 part
sdh 8:112 0 3.6T 0 disk
├─sdh1 8:113 0 2G 0 part
└─sdh2 8:114 0 3.6T 0 part
zd0 230:0 0 500G 0 disk
root@truenas[~]# smartctl -a /dev/sdc
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.74-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Red
Device Model: WDC WD40EFRX-68WT0N0
Serial Number: WD-WCC4E2ULR04L
LU WWN Device Id: 5 0014ee 2631cb335
Firmware Version: 82.00A82
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database 7.3/5528
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Dec 30 03:49:05 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 121) The previous self-test completed having
the read element of the test failed.
Total time to complete Offline
data collection: (52680) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 527) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x703d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 1
3 Spin_Up_Time 0x0027 189 182 021 Pre-fail Always - 7541
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 69
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 016 016 000 Old_age Always - 61466
10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 69
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 39
193 Load_Cycle_Count 0x0032 182 182 000 Old_age Always - 54300
194 Temperature_Celsius 0x0022 122 113 000 Old_age Always - 30
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 1
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
1 Extended offline Completed: read failure 90% 61449 589028976
2 Short offline Completed without error 00% 61448 -
3 Short offline Completed without error 00% 61142 -
4 Short offline Completed without error 00% 61118 -
5 Short offline Completed without error 00% 61094 -
6 Short offline Completed without error 00% 61070 -
7 Short offline Completed without error 00% 61046 -
8 Short offline Completed without error 00% 61022 -
9 Short offline Completed without error 00% 60998 -
#10 Short offline Completed without error 00% 60974 -
#11 Short offline Completed without error 00% 60950 -
#12 Short offline Completed without error 00% 60926 -
#13 Short offline Completed without error 00% 60902 -
#14 Short offline Completed without error 00% 60878 -
#15 Short offline Completed without error 00% 60854 -
#16 Short offline Completed without error 00% 60830 -
#17 Short offline Completed without error 00% 60806 -
#18 Short offline Completed without error 00% 60783 -
#19 Short offline Completed without error 00% 60759 -
#20 Short offline Completed without error 00% 60735 -
#21 Short offline Completed without error 00% 60711 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
The above only provides legacy SMART information - try ‘smartctl -x’ for more
The system is built around an AsRock Intel atom processor: 16GB RAM. SATA cables directly on motherboard.
Thanks,
Mike
Unfortunately your WD-WCC4E2ULR04L disk has started exhibiting serious issues, as shown above.
On a disk still under warranty this would typically let you RMA the drive and get a replacement.
Your drive is so old I expect that avenue no longer going to be available.
Either way I highly recommend getting a replacement as soon as possible.
Also, I am curious why your other two drives are referred to by zpool status by their short device names. Did you create this pool in the TrueNAS GUI or some other way? Device names can change on reboots.
The drive is probably a number of years old now. The system was originally built in 2015 with an earlier version of TrueNAS. I expect with the GUI at the time. I am trying to get advice on swapping the drive out. I have a hot spare available and also a newer drive available external to the system but am having difficulty taking the failed drive offline and getting the spare drive to take its place.
This depends a bit on what you mean by “hot spare” but if it’s just a drive in the system currently not assigned to a pool you can just select the failed drive in the UI and click Replace, choosing your hot spare as the replacement.
You do so by going to Storage → Manage Devices (on the relevant pool) → Expand your Data VDEV and select the drive you want to replace → Doublecheck that it’s the right drive → Select Replace at the bottom right.
Disclaimer: This is how it’s done on Dragonfish, but it should be similar in Cobia.
It is showing as a spare in the pool, but if I try and take the faulted drive sdc offline I get no indication that this has happened. When I click on Replace for sdc I get a pop up asking me to enter the member disk. Entering sdb though does not enable the replace disk button. Do I have a naming problem that it is not recognizing?
Device Name, Status, Capacity, Errors, Data VDEVs
RAIDZ1 DEGRADED No Errors
sdc FAULTED. 3.64 TiB. 17 Errors
sdg ONLINE. 3.64 TiB No Errors
sdh. ONLINE. 3.64 TiB. No Errors
Spare
sdb. ONLINE. 3.64 TiB No Errors
Yes, the failing drive is old enough, (7 years), that replacement is the next step.
Not sure why the Hot Spare has not taken over for the failing disk. And yes, you have the Hot Spare as part of the pool, and it is available to take over. The only thing I can think of, it that the “sdb2” partition is slightly smaller than the “sdc2” partition of the failing disk. If that is the case, their are ways around it.
The easiest course of action is to de-configure the Hot Spare from the pool, and then use it to replace the failing disk. Whence it is synced up, you can physically remove the failing disk.
Later, you can add another Hot Spare, either same size or larger.
Thanks for the help. New drive added and was able to replace the bad one.