Hi All,
Fairly new user to FreeNAS and semi novice linux user here who has made a terrible mistake - out of my own stupidity I've managed to wipe one of the disks in my zpool - long story but basically I made a mistake...
The most important data was backed up however there is other data which would be nice to recover if possible.
I'm using FreeNAS-9.1.1-RELEASE-x64 (a752d35), reading from similar issues on this forum I believe you'll want the below data.
So, what are my chances of recovering my data?
gpart list
gpart show
zpool import
smartctl -a -q noserial /dev/ada1
camcontrol devlist
glabel status
Fairly new user to FreeNAS and semi novice linux user here who has made a terrible mistake - out of my own stupidity I've managed to wipe one of the disks in my zpool - long story but basically I made a mistake...
The most important data was backed up however there is other data which would be nice to recover if possible.
I'm using FreeNAS-9.1.1-RELEASE-x64 (a752d35), reading from similar issues on this forum I believe you'll want the below data.
So, what are my chances of recovering my data?
gpart list
Code:
[root@fileserver] ~# gpart list Geom name: ada0 modified: false state: OK fwheads: 16 fwsectors: 63 last: 488397167 first: 63 entries: 4 scheme: MBR Providers: 1. Name: ada0s1 Mediasize: 254803968 (243M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1048576 Mode: r0w0e0 attrib: active rawtype: 131 length: 254803968 offset: 1048576 type: linux-data index: 1 end: 499711 start: 2048 2. Name: ada0s2 Mediasize: 249802261504 (232G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 256900096 Mode: r0w0e0 rawtype: 5 length: 249802261504 offset: 256900096 type: ebr index: 2 end: 488396799 start: 501758 Consumers: 1. Name: ada0 Mediasize: 250059350016 (232G) Sectorsize: 512 Mode: r0w0e0 Geom name: ada1 modified: false state: OK fwheads: 16 fwsectors: 63 last: 1953525134 first: 34 entries: 128 scheme: GPT Providers: 1. Name: ada1p1 Mediasize: 2147483648 (2.0G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 65536 Mode: r1w1e1 rawuuid: e45f0c0b-354c-11e3-81c0-009c02a7f4d2 rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b label: (null) length: 2147483648 offset: 65536 type: freebsd-swap index: 1 end: 4194431 start: 128 2. Name: ada1p2 Mediasize: 998057319936 (929G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 2147549184 Mode: r0w0e0 rawuuid: e474d040-354c-11e3-81c0-009c02a7f4d2 rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: (null) length: 998057319936 offset: 2147549184 type: freebsd-zfs index: 2 end: 1953525134 start: 4194432 Consumers: 1. Name: ada1 Mediasize: 1000204886016 (931G) Sectorsize: 512 Mode: r1w1e2 Geom name: ada2 modified: false state: OK fwheads: 16 fwsectors: 63 last: 1953525167 first: 63 entries: 4 scheme: MBR Providers: 1. Name: ada2s1 Mediasize: 209715200 (200M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1048576 Mode: r0w0e0 attrib: active rawtype: 131 length: 209715200 offset: 1048576 type: linux-data index: 1 end: 411647 start: 2048 2. Name: ada2s2 Mediasize: 4060086272 (3.8G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 210763776 Mode: r0w0e0 rawtype: 131 length: 4060086272 offset: 210763776 type: linux-data index: 2 end: 8341503 start: 411648 3. Name: ada2s3 Mediasize: 995933290496 (927G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 4270850048 Mode: r0w0e0 rawtype: 131 length: 995933290496 offset: 4270850048 type: linux-data index: 3 end: 1953523711 start: 8341504 Consumers: 1. Name: ada2 Mediasize: 1000204886016 (931G) Sectorsize: 512 Mode: r0w0e0 Geom name: ada3 modified: false state: OK fwheads: 16 fwsectors: 63 last: 1953525167 first: 63 entries: 4 scheme: MBR Providers: 1. Name: ada3s1 Mediasize: 1000202241024 (931G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 32256 Mode: r0w0e0 rawtype: 66 length: 1000202241024 offset: 32256 type: ms-ldm-data index: 1 end: 1953520064 start: 63 Consumers: 1. Name: ada3 Mediasize: 1000204886016 (931G) Sectorsize: 512 Mode: r0w0e0 Geom name: da0 modified: false state: OK fwheads: 255 fwsectors: 63 last: 7831551 first: 63 entries: 4 scheme: MBR Providers: 1. Name: da0s1 Mediasize: 988291584 (942M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 32256 Mode: r1w0e1 attrib: active rawtype: 165 length: 988291584 offset: 32256 type: freebsd index: 1 end: 1930319 start: 63 2. Name: da0s2 Mediasize: 988291584 (942M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 988356096 Mode: r0w0e0 rawtype: 165 length: 988291584 offset: 988356096 type: freebsd index: 2 end: 3860639 start: 1930383 3. Name: da0s3 Mediasize: 1548288 (1.5M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1976647680 Mode: r0w0e0 rawtype: 165 length: 1548288 offset: 1976647680 type: freebsd index: 3 end: 3863663 start: 3860640 4. Name: da0s4 Mediasize: 21159936 (20M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1978195968 Mode: r1w1e2 rawtype: 165 length: 21159936 offset: 1978195968 type: freebsd index: 4 end: 3904991 start: 3863664 Consumers: 1. Name: da0 Mediasize: 4009754624 (3.8G) Sectorsize: 512 Mode: r2w1e4 Geom name: ada0s2 modified: false state: OK fwheads: 16 fwsectors: 63 last: 487895041 first: 0 entries: 7744365 scheme: EBR Providers: 1. Name: ada0s5 Mediasize: 249802260480 (232G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 256901120 Mode: r0w0e0 rawtype: 142 length: 249802260480 offset: 1024 type: linux-lvm index: 1 end: 487895041 start: 0 Consumers: 1. Name: ada0s2 Mediasize: 249802261504 (232G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 256900096 Mode: r0w0e0 Geom name: da0s1 modified: false state: OK fwheads: 255 fwsectors: 63 last: 1930256 first: 0 entries: 8 scheme: BSD Providers: 1. Name: da0s1a Mediasize: 988283392 (942M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 40448 Mode: r1w0e1 rawtype: 0 length: 988283392 offset: 8192 type: !0 index: 1 end: 1930256 start: 16 Consumers: 1. Name: da0s1 Mediasize: 988291584 (942M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 32256 Mode: r1w0e1
gpart show
Code:
[root@fileserver] ~# gpart show
=> 63 488397105 ada0 MBR (232G)
63 1985 - free - (992k)
2048 497664 1 linux-data [active] (243M)
499712 2046 - free - (1M)
501758 487895042 2 ebr (232G)
488396800 368 - free - (184k)
=> 34 1953525101 ada1 GPT (931G)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 1949330703 2 freebsd-zfs (929G)
=> 63 1953525105 ada2 MBR (931G)
63 1985 - free - (992k)
2048 409600 1 linux-data [active] (200M)
411648 7929856 2 linux-data (3.8G)
8341504 1945182208 3 linux-data (927G)
1953523712 1456 - free - (728k)
=> 63 1953525105 ada3 MBR (931G)
63 1953520002 1 ms-ldm-data (931G)
1953520065 5103 - free - (2.5M)
=> 63 7831489 da0 MBR (3.8G)
63 1930257 1 freebsd [active] (942M)
1930320 63 - free - (31k)
1930383 1930257 2 freebsd (942M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 3926560 - free - (1.9G)
=> 0 487895042 ada0s2 EBR (232G)
0 487895042 1 linux-lvm (232G)
=> 0 1930257 da0s1 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)
zpool import
Code:
[root@fileserver] ~# zpool import
pool: media
id: 2662049366547094454
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-6X
config:
media UNAVAIL missing device
gptid/e474d040-354c-11e3-81c0-009c02a7f4d2 ONLINE
Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.
[root@fileserver] ~#
smartctl -a -q noserial /dev/ada1
Code:
[root@fileserver] ~# smartctl -a -q noserial /dev/ada1
smartctl 6.1 2013-03-16 r3800 [FreeBSD 9.1-STABLE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: SAMSUNG SpinPoint F3
Device Model: SAMSUNG HD103SJ
Firmware Version: 1AJ10001
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Thu Jan 30 18:23:30 2014 EST
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: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 9060) 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: ( 151) minutes.
SCT capabilities: (0x003f) 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 100 100 051 Pre-fail Always - 0
2 Throughput_Performance 0x0026 252 252 000 Old_age Always - 0
3 Spin_Up_Time 0x0023 071 069 025 Pre-fail Always - 8985
4 Start_Stop_Count 0x0032 074 074 000 Old_age Always - 27258
5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 252 252 051 Old_age Always - 0
8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 4566
10 Spin_Retry_Count 0x0032 252 252 051 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 252 252 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 577
191 G-Sense_Error_Rate 0x0022 100 100 000 Old_age Always - 4
192 Power-Off_Retract_Count 0x0022 252 252 000 Old_age Always - 0
194 Temperature_Celsius 0x0002 064 055 000 Old_age Always - 33 (Min/Max 14/45)
195 Hardware_ECC_Recovered 0x003a 100 100 000 Old_age Always - 0
196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 252 252 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 252 252 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0036 100 100 000 Old_age Always - 1
200 Multi_Zone_Error_Rate 0x002a 100 100 000 Old_age Always - 1
223 Load_Retry_Count 0x0032 252 252 000 Old_age Always - 0
225 Load_Cycle_Count 0x0032 072 072 000 Old_age Always - 283825
SMART Error Log Version: 1
ATA Error Count: 1
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 1 occurred at disk power-on lifetime: 536 hours (22 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 de 00 a4 00 e0 Error: ICRC, ABRT 222 sectors at LBA = 0x0000a400 = 41984
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 00 de a4 d7 ec 00 00:20:27.392 READ DMA
c8 00 00 de a3 d7 ec 00 00:20:27.392 READ DMA
c8 00 00 de a2 d7 ec 00 00:20:27.392 READ DMA
c8 00 00 de a1 d7 ec 00 00:20:27.392 READ DMA
c8 00 00 de a0 d7 ec 00 00:20:27.392 READ DMA
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Completed [00% left] (0-65535)
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.
[root@fileserver] ~#
camcontrol devlist
Code:
[root@fileserver] ~# camcontrol devlist <VB0250EAVER HPG7> at scbus0 target 0 lun 0 (ada0,pass0) <SAMSUNG HD103SJ 1AJ10001> at scbus1 target 0 lun 0 (ada1,pass1) <Hitachi HDT721010SLA360 ST6OA31B> at scbus2 target 0 lun 0 (ada2,pass2) <ST31000528AS CC35> at scbus3 target 0 lun 0 (ada3,pass3) <ASUS DRW-2014L1T 1.00> at scbus4 target 1 lun 0 (pass4,cd0) <SMI USB DISK 3000> at scbus6 target 0 lun 0 (da0,pass5) [root@fileserver] ~#
glabel status
Code:
[root@fileserver] ~# glabel status
Name Status Components
gptid/e474d040-354c-11e3-81c0-009c02a7f4d2 N/A ada1p2
ntfs/media N/A ada3s1
ufs/FreeNASs3 N/A da0s3
ufs/FreeNASs4 N/A da0s4
ufs/FreeNASs1a N/A da0s1a