Unable to replace failed drive via gui in FreeNAS-11.3-U1

Breeze247

Cadet
Joined
Sep 11, 2015
Messages
6
I get the following error when trying to replace the failed disk in the gui:
Error: [EFAULT] Failed to wipe disk ada0: [EFAULT] Command dd if=/dev/zero of=/dev/ada0p2 bs=1m count=32 failed (code 1): dd: /dev/ada0p2: Input/output error 1+0 records in 0+0 records out 0 bytes transferred in 0.470937 secs (0 bytes/sec)

Granted the replacement disk has been previously formatted, I can't even wipe the disk from the "Disk" menu. Here is the error i get
[EFAULT] Command dd if=/dev/zero of=/dev/ada0p2 bs=1m count=32 failed (code 1): dd: /dev/ada0p2: Input/output error 1+0 records in 0+0 records out 0 bytes transferred in 0.844846 secs (0 bytes/sec)

Any help will be greatly appreciated.
 
Joined
Apr 30, 2016
Messages
26
Hello,

I have similar issue. I try to relocate mu bad sector, but get the same error:
root@nas0[~]# smartctl -x /dev/ada5

=== START OF INFORMATION SECTION ===
Model Family: Seagate NAS HDD
Device Model: ST4000VN000-2AH166
Serial Number: WDH07E9R
LU WWN Device Id: 5 000c50 09c62c6dc
Firmware Version: SC60
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5980 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Wed Mar 4 14:53:57 2020 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Unavailable
APM feature is: Disabled
Rd look-ahead is: Enabled
Write cache is: Enabled
DSN feature is: Unavailable
ATA Security is: Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Enabled

....skipped....

SMART Extended Comprehensive Error Log Version: 1 (5 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed: read failure 40% 27392 5467065232

then I try to fix it, and unsuccessful.


root@nas0[~]# dd if=/dev/zero of=/dev/ada5 bs=4096 count=1 seek=5467065232 conv=noerror,sync
dd: /dev/ada5: Operation not permitted

root@nas0[~]# sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
root@nas0[~]# dd if=/dev/zero of=/dev/ada5 bs=4096 count=1 seek=5467065232 conv=noerror,sync
dd: /dev/ada5: Input/output error
1+0 records in
0+0 records out
0 bytes transferred in 0.000090 secs (0 bytes/sec)

Ed
 

JaimieV

Guru
Joined
Oct 12, 2012
Messages
742
Looks like @Breeze247 has a disk with bad surface in the first few sectors, and @Edvard Filistovic has a disk that has bad surface starting at 5467065232. Both disks are failing, and also failing to compensate for the bad sectors. Replace the disks with fresh.

Edvard, note that your offline error says "LBA_of_first_error", not "only error". You also skipped the part of the SMART report that would tell you how many bad sectors have already been detected. Look at your output again, particularly for
5 Reallocated_Sector_Ct
196 Reallocated_Event_Count
198 Offline_Uncorrectable
 
Joined
Apr 30, 2016
Messages
26
Hello,

5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 16
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 16

So, my assumption I should try to relocate sector.

Edward
 

JaimieV

Guru
Joined
Oct 12, 2012
Messages
742
With numbers like that you should replace the disk.
 
Joined
Apr 30, 2016
Messages
26
Hello,

Ok I change it, but still, the problem exist? how I can run command line below?

root@nas0[~]# dd if=/dev/zero of=/dev/ada5 bs=4096 count=1 seek=5467065232 conv=noerror,sync
dd: /dev/ada5: Operation not permitted

root@nas0[~]# sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
root@nas0[~]# dd if=/dev/zero of=/dev/ada5 bs=4096 count=1 seek=5467065232 conv=noerror,sync
dd: /dev/ada5: Input/output error
1+0 records in
0+0 records out
0 bytes transferred in 0.000090 secs (0 bytes/sec)

Ed
 

Breeze247

Cadet
Joined
Sep 11, 2015
Messages
6
Finally got a new drive (WD Red 6TB) and here is what happened:
- Installed new drive and started resilvering process.
- Resilvering process finishes with no errors and I shut down FreeNAS to secure the drive in the bay.
- Power on boot FreeNAS and I get an error about the pool is degraded. Its the new drive that I installed that faulted.
- Here is what I get from smartctl
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 100 253 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 100 253 021 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 2
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 100 100 000 Old_age Always - 20
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 - 2
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 0
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 2
194 Temperature_Celsius 0x0022 127 123 000 Old_age Always - 23
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 100 253 000 Old_age Offline - 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% 10 -


I even ran a smartctl short test with no errors. I also get the same error as before when trying the wipe the disk. I'm just about out of ideas. Would it be worth recreating the pool?
 
Top