Hello,
I was maitaining my system and unintentionally unplug 1 power cord on 1 of my disks.
When the system boot the pool was degraded, I notice that the cable wasn't plugued and turned off the system and then proced to plug the cable.
Now the disk have power and is being recognised on the freebsd but is not recognised on freenas.
Tried to make the drive online
Disk being recognised
How can I fix this?
Thank you!
I was maitaining my system and unintentionally unplug 1 power cord on 1 of my disks.
When the system boot the pool was degraded, I notice that the cable wasn't plugued and turned off the system and then proced to plug the cable.
Now the disk have power and is being recognised on the freebsd but is not recognised on freenas.
Code:
root@freenas[~]# zpool status -v pool: freenas-boot state: ONLINE scan: scrub repaired 0 in 0 days 00:01:30 with 0 errors on Thu Feb 13 03:46:30 2020 config: NAME STATE READ WRITE CKSUM freenas-boot ONLINE 0 0 0 ada0p2 ONLINE 0 0 0 errors: No known data errors pool: vault state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://illumos.org/msg/ZFS-8000-2Q scan: scrub repaired 0 in 0 days 02:33:19 with 0 errors on Sat Feb 1 02:33:19 2020 config: NAME STATE READ WRITE CKSUM vault DEGRADED 0 0 0 mirror-0 DEGRADED 0 0 0 gptid/6f88fe5d-28c7-11e9-ae80-e03f49b305e4.eli ONLINE 0 0 0 468245421987963022 UNAVAIL 0 0 0 was /dev/gptid/7002d707-28c7-11e9-ae80-e03f49b305e4.eli
Code:
root@freenas[~]# smartctl -a /dev/ada2 smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Red Pro Device Model: WDC WD4003FFBX-68MU3N0 Serial Number: V6GLU62R LU WWN Device Id: 5 000cca 097c88d43 Firmware Version: 83.00A83 User Capacity: 4,000,787,030,016 bytes [4.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes 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.2, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Sat Feb 15 18:02:28 2020 WET 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: ( 87) 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: ( 452) 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 0x0004 132 132 054 Old_age Offline - 96 3 Spin_Up_Time 0x0007 146 146 024 Pre-fail Always - 309 (Average 272) 4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 144 5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0 7 Seek_Error_Rate 0x000a 100 100 067 Old_age Always - 0 8 Seek_Time_Performance 0x0004 128 128 020 Old_age Offline - 18 9 Power_On_Hours 0x0012 100 100 000 Old_age Always - 6659 10 Spin_Retry_Count 0x0012 100 100 060 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 144 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 411 193 Load_Cycle_Count 0x0012 100 100 000 Old_age Always - 411 194 Temperature_Celsius 0x0002 206 206 000 Old_age Always - 29 (Min/Max 14/41) 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0 197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0 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 Extended offline Completed without error 00% 6650 - # 2 Short offline Completed without error 00% 6570 - # 3 Short offline Completed without error 00% 6402 - # 4 Extended offline Completed without error 00% 6267 - # 5 Short offline Completed without error 00% 6234 - # 6 Short offline Completed without error 00% 6069 - # 7 Extended offline Completed without error 00% 5909 - # 8 Short offline Completed without error 00% 5901 - # 9 Short offline Completed without error 00% 5740 - #10 Extended offline Completed without error 00% 5584 - #11 Short offline Completed without error 00% 5456 - #12 Short offline Completed without error 00% 5290 - #13 Extended offline Completed without error 00% 5226 - #14 Short offline Completed without error 00% 5123 - #15 Short offline Completed without error 00% 4955 - #16 Extended offline Completed without error 00% 4867 - #17 Short offline Completed without error 00% 4793 - #18 Short offline Completed without error 00% 4739 - #19 Extended offline Completed without error 00% 4644 - #20 Short offline Completed without error 00% 4587 - #21 Short offline Completed without error 00% 4422 - 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.
Tried to make the drive online
Code:
root@freenas[~]# zpool online 468245421987963022 missing device name usage: online [-e] <pool> <device> ... root@freenas[~]# zpool online vault 468245421987963022 warning: device '468245421987963022' onlined, but remains in faulted state use 'zpool replace' to replace devices that are no longer present </code> <code> root@freenas[~]# zpool replace vault ada2 cannot replace ada2 with ada2: no such device in pool root@freenas[~]# zpool replace vault gptid/7002d707-28c7-11e9-ae80-e03f49b305e4 cannot replace gptid/7002d707-28c7-11e9-ae80-e03f49b305e4 with gptid/7002d707-28c7-11e9-ae80-e03f49b305e4: no such device in pool root@freenas[~]# root@freenas[~]# zpool replace vault 468245421987963022 cannot open '468245421987963022': no such GEOM provider must be a full path or shorthand device name
Disk being recognised
Code:
root@freenas[~]# zpool replace vault ada2 cannot replace ada2 with ada2: no such device in pool root@freenas[~]# gpart show ada2 => 40 7814037088 ada2 GPT (3.6T) 40 88 - free - (44K) 128 4194304 1 freebsd-swap (2.0G) 4194432 7809842696 2 freebsd-zfs (3.6T) Geom name: ada1 Providers: 1. Name: ada1 Mediasize: 4000787030016 (3.6T) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r2w2e5 descr: WDC WD4003FFBX-68MU3N0 lunid: 5000cca097cb677f ident: V6GU2RDR rotationrate: 7200 fwsectors: 63 fwheads: 16 Geom name: ada2 Providers: 1. Name: ada2 Mediasize: 4000787030016 (3.6T) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e2 descr: WDC WD4003FFBX-68MU3N0 lunid: 5000cca097c88d43 ident: V6GLU62R rotationrate: 7200 fwsectors: 63 fwheads: 16
How can I fix this?
Thank you!