Hi All
I recently started receiving the following alerts for one of my disks:
-------------------------------------------------------------------------------------
TrueNAS @ truenas
Current alerts:
Ask:
Based on my research this seems to be a potential bad sector developing on my drive and will only be re-allocated on an attempted write. I am looking at performing the following steps on my drive, please could someone validate if this is correct and/or there is a better way of addressing this issue:
1. Offline the disk in the GUI
2. sysctl kern.geom.debugflags=0x10 (To enable raw write mode to the disk)
3. dd if=/dev/sdc of=/dev/sdc bs=1m
4. sysctl kern.geom.debugflags=0x00
5. Online disk in the GUI
6. Run a scrub in from the GUI
I have a hot spare, would it make more sense to rather just swop this disk out with the hot spare and then swop it back when done? And if so, if I swop a 8TB disk in the existing 4TB disk space would I be able to swop back to the 4TB (Since my video would not have expanded?
Below is some additional info of my configuration:
-------------------------------------------------------------------------------------
Thanks in advance!
I recently started receiving the following alerts for one of my disks:
-------------------------------------------------------------------------------------
TrueNAS @ truenas
Current alerts:
- Device: /dev/sdc [SAT], 1 Currently unreadable (pending) sectors
Ask:
Based on my research this seems to be a potential bad sector developing on my drive and will only be re-allocated on an attempted write. I am looking at performing the following steps on my drive, please could someone validate if this is correct and/or there is a better way of addressing this issue:
1. Offline the disk in the GUI
2. sysctl kern.geom.debugflags=0x10 (To enable raw write mode to the disk)
3. dd if=/dev/sdc of=/dev/sdc bs=1m
4. sysctl kern.geom.debugflags=0x00
5. Online disk in the GUI
6. Run a scrub in from the GUI
I have a hot spare, would it make more sense to rather just swop this disk out with the hot spare and then swop it back when done? And if so, if I swop a 8TB disk in the existing 4TB disk space would I be able to swop back to the 4TB (Since my video would not have expanded?
Below is some additional info of my configuration:
-------------------------------------------------------------------------------------
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.131+truenas] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Gold
Device Model: WDC WD4002FYYZ-01B7CB1
Serial Number: K7J03P7T
LU WWN Device Id: 5 000cca 269dc3cd7
Firmware Version: 01.01M03
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Wed Aug 31 14:23:23 2022 SAST
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: (0x80) Offline data collection activity
was never started.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 113) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 571) minutes.
SCT capabilities: (0x003d) 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 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 136 136 054 Pre-fail Offline - 108
3 Spin_Up_Time 0x0007 100 100 024 Pre-fail Always - 0
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 3493
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 140 140 020 Pre-fail Offline - 15
9 Power_On_Hours 0x0012 096 096 000 Old_age Always - 30819
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 256
192 Power-Off_Retract_Count 0x0032 094 094 000 Old_age Always - 7586
193 Load_Cycle_Count 0x0012 094 094 000 Old_age Always - 7586
194 Temperature_Celsius 0x0002 133 133 000 Old_age Always - 45 (Min/Max 14/55)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 1
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0
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 Short offline Completed without error 00% 30805 -
# 2 Short offline Completed without error 00% 30782 -
# 3 Short offline Completed without error 00% 30758 -
# 4 Short offline Completed without error 00% 30734 -
# 5 Short offline Completed without error 00% 30710 -
# 6 Short offline Completed without error 00% 30686 -
# 7 Short offline Completed without error 00% 30662 -
# 8 Short offline Completed without error 00% 30638 -
# 9 Short offline Completed without error 00% 30614 -
#10 Extended offline Completed without error 00% 30603 -
#11 Short offline Completed without error 00% 30590 -
#12 Short offline Completed without error 00% 30566 -
#13 Short offline Completed without error 00% 30542 -
#14 Short offline Completed without error 00% 30518 -
#15 Short offline Completed without error 00% 30494 -
#16 Short offline Completed without error 00% 30470 -
#17 Short offline Completed without error 00% 30446 -
#18 Short offline Completed without error 00% 30422 -
#19 Short offline Completed without error 00% 30398 -
#20 Short offline Completed without error 00% 30374 -
#21 Short offline Completed without error 00% 30350 -
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):
-------------------------------------------------------------------------------------
pool: Pool-01
state: ONLINE
scan: resilvered 13.4M in 00:00:02 with 0 errors on Wed Aug 31 13:37:43 2022
config:
NAME STATE READ WRITE CKSUM
Pool-01 ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
b839e106-e667-447e-885a-8f3775bd88ed ONLINE 0 0 0
1623e5ee-f85c-4476-bf91-0450c8f7064b ONLINE 0 0 0
301af189-a436-4119-90ea-e6d07933c9fe ONLINE 0 0 0
a045e608-5d1d-4c90-9128-6fb0dbb0518d ONLINE 0 0 0
6031d723-49bc-4ec7-bf24-88330c616d70 ONLINE 0 0 0
raidz1-1 ONLINE 0 0 0
cdd682e4-34f8-48de-b5da-db9829a5474f ONLINE 0 0 0
f3adac58-f47b-4ec3-ad39-0651fa9cfadf ONLINE 0 0 0
8239d2e9-8895-4331-aecb-20cdfbc29190 ONLINE 0 0 0
d3298cc5-e30d-40c8-8166-ec23e21b24fc ONLINE 0 0 0
043fa47b-fb66-45af-9f72-ed79287a2237 ONLINE 0 0 0
raidz1-2 ONLINE 0 0 0
1843c3b6-6afd-4a20-bf0d-11b092c780f0 ONLINE 0 0 0
326f2178-3d80-46e2-979e-5c665b56e493 ONLINE 0 0 0
c35614f3-d614-4ff4-b3b0-8d447ae1395b ONLINE 0 0 0
66aff8ba-24f3-44ab-bebd-9521e8db8a6a ONLINE 0 0 0
999426ca-24c9-4179-9645-a2b1a66dee06 ONLINE 0 0 0
cache
464b2a29-9fa3-44a1-8560-8719e08d7360 ONLINE 0 0 0
spares
b09d9cb1-4b7d-45c6-b4e8-ca029b4b2920 AVAIL
errors: No known data errors
-------------------------------------------------------------------------------------Thanks in advance!
Last edited by a moderator: