Cant restore zfs volume.

esbleha

Dabbler
Joined
Feb 9, 2019
Messages
11
After updating to 11.1 U7 the server couldn't start the server, it would freeze on startup.
After that loaded in to older install i had from initially installing the server, then i deleted the updated boot option because i thought that i fixed the problem.
In fact the i have rolled back all the settings and my zfs volumes disappeared.

Is there a way to restore my zfs volumes after that and restoring the information?
 
D

dlavigne

Guest
Can you boot into the system? If so, what is the full output of zpool status ?
 

esbleha

Dabbler
Joined
Feb 9, 2019
Messages
11
Can you boot into the system? If so, what is the full output of zpool status ?

[root@freenas ~zpool status
pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:33 with 0 errors on Wed Jan 23 03:45:33 2019
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
da2p2 ONLINE 0 0 0

errors: No known data errors

pool: temp
state: ONLINE
scan: scrub repaired 0 in 0 days 00:02:15 with 0 errors on Sun Jan 6 00:02:15 2019
config:

NAME STATE READ WRITE CKSUM
temp ONLINE 0 0 0
gptid/89f97f7a-ad52-11e8-846c-bc305be5e5bd ONLINE 0 0 0

errors: No known data errors
[root@freenas ~]#
 
D

dlavigne

Guest
Which volumes were you expecting to see? The temp pool is online.
 
D

dlavigne

Guest
Were they all one disk pools with no redundancy? If so, it is possible those disks died (taking the data with them). Hard to tell without more info about your hardware and what caused the freeze.
 

esbleha

Dabbler
Joined
Feb 9, 2019
Messages
11
mai
Were they all one disk pools with no redundancy? If so, it is possible those disks died (taking the data with them). Hard to tell without more info about your hardware and what caused the freeze.

main was 3 2TB discs
torrent was 1 320 GB disc
 

rvassar

Guru
Joined
May 2, 2018
Messages
972
It probably has the pools marked as in use by another NAS. You may need to just run a "zpool import", but first check to see if the disks are attached.

Are you using an HBA, or motherboard SATA ports? Try seeing if the disks are even recognized by the kernel, ala:

ls -l /dev/ada*

or

ls -l /dev/da*

If you can locate those, you should be able to query the drives using "smartctl -a <dev>" and figure out if they've failed.
 

esbleha

Dabbler
Joined
Feb 9, 2019
Messages
11
It probably has the pools marked as in use by another NAS. You may need to just run a "zpool import", but first check to see if the disks are attached.

Are you using an HBA, or motherboard SATA ports? Try seeing if the disks are even recognized by the kernel, ala:

ls -l /dev/ada*

or

ls -l /dev/da*

If you can locate those, you should be able to query the drives using "smartctl -a <dev>" and figure out if they've failed.




I can see the drives. even in gui. the thing is that it apears as if i have fresh install of freenas. because i deleted the corupt boot option after bad update
 

Attachments

  • Capture.PNG
    Capture.PNG
    10.3 KB · Views: 262

rvassar

Guru
Joined
May 2, 2018
Messages
972
I can see the drives. even in gui. the thing is that it apears as if i have fresh install of freenas. because i deleted the corupt boot option after bad update

Any chance you have a saved copy of your config? You should be able to restore it and recover the old configuration. If not, you can still import the pools using "zpool import".
 

esbleha

Dabbler
Joined
Feb 9, 2019
Messages
11
Any chance you have a saved copy of your config? You should be able to restore it and recover the old configuration. If not, you can still import the pools using "zpool import".


zpool import does nothing. the fist time it let me import the temp only
 

rvassar

Guru
Joined
May 2, 2018
Messages
972
The pools are tagged as owned by the NAS instance you deleted. Try "zpool import -f".
 

rvassar

Guru
Joined
May 2, 2018
Messages
972

esbleha

Dabbler
Joined
Feb 9, 2019
Messages
11
I'm running short of ideas... Can you pull the smartctl info? "smartctl -a <dev>"

recommended polling time: ( 260) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x10bd) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table 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 118 099 006 Pre-fail Always - 173442712
3 Spin_Up_Time 0x0003 096 095 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 120
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 080 060 030 Pre-fail Always - 104060842
9 Power_On_Hours 0x0032 085 085 000 Old_age Always - 13741
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 120
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
189 High_Fly_Writes 0x003a 065 065 000 Old_age Always - 35
190 Airflow_Temperature_Cel 0x0022 073 063 045 Old_age Always - 27 (Min/Max 18/27)
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 - 105
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 141
194 Temperature_Celsius 0x0022 027 040 000 Old_age Always - 27 (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

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.
 

rvassar

Guru
Joined
May 2, 2018
Messages
972
You're going to need to run a self test on that disk. "smartctl -t short <dev>" and then wait the test time and pull those stats again. When you post the result, please wrap the pasted text in "code" tags. It makes it much easier to read here on the forums.
 

esbleha

Dabbler
Joined
Feb 9, 2019
Messages
11
You're going to need to run a self test on that disk. "smartctl -t short <dev>" and then wait the test time and pull those stats again. When you post the result, please wrap the pasted text in "code" tags. It makes it much easier to read here on the forums.

recommended polling time: ( 260) minutes. Conveyance self-test routine recommended polling time: ( 2) minutes. SCT capabilities: (0x10bd) SCT Status supported. SCT Error Recovery Control supported. SCT Feature Control supported. SCT Data Table 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 118 099 006 Pre-fail Always - 173475272 3 Spin_Up_Time 0x0003 096 095 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 121 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 080 060 030 Pre-fail Always - 104060854 9 Power_On_Hours 0x0032 085 085 000 Old_age Always - 13742 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 121 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 189 High_Fly_Writes 0x003a 065 065 000 Old_age Always - 35 190 Airflow_Temperature_Cel 0x0022 075 063 045 Old_age Always - 25 (Min/Max 19/25) 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 - 105 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 142 194 Temperature_Celsius 0x0022 025 040 000 Old_age Always - 25 (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 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.


This is what fits in terminal screen, i don't remember how to show all the output
 
Top