State: FAULTED - Por favor, me ajudem...

Status
Not open for further replies.

Pedro Uva

Cadet
Joined
Jul 7, 2015
Messages
2
Olá pessoal. Eu realmente preciso de ajuda de vocês. Acredito que perdi todos os meus dados. Eu preciso saber se é possível recuperá-los.

Tenho um FreeNAS rodando em um ambiente virtual com Proxmox. Decidi removê-lo do ambiente. Coloquei o disco rígido externo que estava ligado ao FreeNAS em um servidor Linux Ubuntu para acessar os dados enquanto eu migrava o FreeNAS, mas dei o comando errado. Era para montar o disco rígido externo como ZFS, e eu criei um novo pool... com os comandos:

zpool create pool sdb
zfs create pool

Abri um tópico em inglês também: https://forums.freenas.org/index.php?threads/state-faulted-help-please.35357/


A saída dos comandos são estas:

[root@freenas] /# gpart list
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 10485759
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada0s1
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: ada0s2
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: ada0s3
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: ada0s4
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: ada0
Mediasize: 5368709120 (5.0G)
Sectorsize: 512
Mode: r2w1e4

Geom name: ada0s1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada0s1a
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: ada0s1
Mediasize: 988291584 (942M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 32256
Mode: r1w0e1

Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 488378639
first: 6
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
Mediasize: 2000322297856 (1.8T)
Sectorsize: 4096
Stripesize: 0
Stripeoffset: 8388608
Mode: r0w0e0
rawuuid: 28c75617-625a-2340-a63a-80b978c0d508
rawtype: 6a898cc3-1dd2-11b2-99a6-080020736631
label: zfs
length: 2000322297856
offset: 8388608
type: !6a898cc3-1dd2-11b2-99a6-080020736631
index: 1
end: 488361983
start: 2048
2. Name: da0p9
Mediasize: 67108864 (64M)
Sectorsize: 4096
Stripesize: 0
Stripeoffset: 3170893824
Mode: r0w0e0
rawuuid: 9b131a90-9bb4-7944-a229-f1ce28b53307
rawtype: 6a945a3b-1dd2-11b2-99a6-080020736631
label: (null)
length: 67108864
offset: 2000330686464
type: !6a945a3b-1dd2-11b2-99a6-080020736631
index: 9
end: 488378367
start: 488361984
Consumers:
1. Name: da0
Mediasize: 2000398929920 (1.8T)
Sectorsize: 4096
Mode: r0w0e0

[root@freenas] /#

[root@freenas] /# gpart show
=> 63 10485697 ada0 MBR (5.0G)
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 6580768 - free - (3.1G)

=> 0 1930257 ada0s1 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)

=> 6 488378634 da0 GPT (1.8T)
6 2042 - free - (8M)
2048 488359936 1 !6a898cc3-1dd2-11b2-99a6-080020736631 (1.8T)
488361984 16384 9 !6a945a3b-1dd2-11b2-99a6-080020736631 (64M)
488378368 272 - free - (1.1M)

[root@freenas] /#

[root@freenas] /# zpool import
pool: stg2tb
id: 11005941252584662664
state: FAULTED
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
The pool may be active on another system, but can be imported using
the '-f' flag.
see: http://illumos.org/msg/ZFS-8000-5E
config:

stg2tb FAULTED corrupted data
16792522702376110269 UNAVAIL corrupted data

pool: pool
id: 13588859748624719699
state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
see: http://illumos.org/msg/ZFS-8000-EY
config:

pool UNAVAIL unsupported feature(s)
da0p1 ONLINE
[root@freenas] /#

[root@freenas] /# smartctl -a -q noserial /dev/da0
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p15 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST2000DM001-1E6164
Firmware Version: SC48
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Wed Jul 8 00:50:45 2015 BRT

==> WARNING: A firmware update for this drive may be available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/223651en

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
See vendor-specific Attribute list for marginal Attributes.

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: ( 584) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 236) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x3081) SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 114 099 006 Pre-fail Always - 59972472
3 Spin_Up_Time 0x0003 096 095 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 89
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 056 051 030 Pre-fail Always - 575580337002
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 5202
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 79
183 Runtime_Bad_Block 0x0032 099 099 000 Old_age Always - 1
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 0 0
189 High_Fly_Writes 0x003a 088 088 000 Old_age Always - 12
190 Airflow_Temperature_Cel 0x0022 062 042 045 Old_age Always In_the_past 38 (1 119 41 35 0)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 68
193 Load_Cycle_Count 0x0032 056 056 000 Old_age Always - 88544
194 Temperature_Celsius 0x0022 038 058 000 Old_age Always - 38 (0 18 0 0 0)
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 4195h+40m+53.661s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 6040122680
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 9732618856

SMART Error Log Version: 1
No Errors Logged

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 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.

[root@freenas] /#

[root@freenas] /# camcontrol devlist
<QEMU HARDDISK 2.1.0> at scbus2 target 0 lun 0 (pass0,ada0)
<Seagate Expansion Desk 0712> at scbus9 target 0 lun 0 (pass1,da0)
[root@freenas] /#

[root@freenas] /# glabel status
Name Status Components
ufs/FreeNASs3 N/A ada0s3
ufs/FreeNASs4 N/A ada0s4
ufs/FreeNASs1a N/A ada0s1a
gpt/zfs N/A da0p1
gptid/28c75617-625a-2340-a63a-80b978c0d508 N/A da0p1
gptid/9b131a90-9bb4-7944-a229-f1ce28b53307 N/A da0p9
[root@freenas] /#

Existe a possibilidade de recuperar meus dados no disco rígido externo?

O nome do volume foi stg2tb.

Aprecio muito a ajuda de alguém disposto a me ajudar. As fotos dos meus filhinhos desde o nascimento estavam lá ... Não preciso dizer que este era o meu backup.

Obrigado desde já.

Pedro.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Deixando de parte o facto que guardar a única cópia de dados importantes num disco externo manhoso sem redundância é a melhor maneira de perder dados importantes...

Tenho um FreeNAS rodando em um ambiente virtual com Proxmox.
Péssima ideia.

Coloquei o disco rígido externo que estava ligado ao FreeNAS em um servidor Linux Ubuntu para acessar os dados enquanto eu migrava o FreeNAS, mas dei o comando errado. Era para montar o disco rígido externo como ZFS, e eu criei um novo pool...
Para começar, o ZFS on Linux provavelemente não consegue abrir pools do FreeBSD/FreeNAS 9.3.

Se o disco foi de facto formatado, não há nada que possamos fazer. Isso agora é com empresas especializadas em recuperação de dados e que saibam lidar com ZFS. Escusado será dizer que é coisa para milhares de euros, no mínimo caso realista.

E o disco em si também já começa a dar problemas...
 
Status
Not open for further replies.
Top