Need to reinstall TrueNAS Scale because of bad boot drive - what do I need to know

scotrod

Dabbler
Joined
Apr 30, 2021
Messages
42
Hi. Sorry if this has been asked countless times and please redirect me if there is such guide already.
I need to reinstall (((OR migrate?))) my TrueNAS Scale installation because of bad boot drive. I got the following error:
```

Device: /dev/sdd [SAT], 1 Currently unreadable (pending) sectors.​

2023-04-25 01:40:40 (Europe/Sofia)
```
sdd is my 120gb ssd boot drive - a single one, so no RAID.

The way i see it, I can either:
- save my config (already did that), plug another 120GB ssd > dublicate my boot drive/create RAIDZ1
- remove the bad drive > add another drive to its place > install TrueNAS Scale > import my config > import my pools

Is there anything important I should know? I'm using this software for ~2 months – I have no mission-critical info on it, but still wouldn't want to start from scratch as my Blu-ray collection is already on it.

Thanks!
 
Last edited:

scotrod

Dabbler
Joined
Apr 30, 2021
Messages
42
I have a task scheduled to run LONG S.M.A.R.T. test every Sunday night, and here is what I get from running smartctl -a /dev/sdsd:

smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.79+truenas] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: ADATA SU700
Serial Number: 2H2420086505
LU WWN Device Id: 5 707c18 100521a25
Firmware Version: L170203b
User Capacity: 120,034,123,776 bytes [120 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
TRIM Command: Available, deterministic, zeroed
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Tue Apr 25 17:33:20 2023 EEST
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: ( 249) Self-test routine in progress...
90% of test remaining.
Total time to complete Offline
data collection: ( 33) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
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: ( 1) minutes.
Conveyance self-test routine
recommended polling time: ( 1) minutes.
SCT capabilities: (0x0039) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 0
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
9 Power_On_Hours 0x0012 100 100 000 Old_age Always - 23398
12 Power_Cycle_Count 0x0012 100 100 000 Old_age Always - 511
167 Unknown_Attribute 0x0022 100 100 000 Old_age Always - 0
168 Unknown_Attribute 0x0012 100 100 000 Old_age Always - 0
169 Unknown_Attribute 0x0013 100 100 010 Pre-fail Always - 0
173 Unknown_Attribute 0x0012 200 200 000 Old_age Always - 8613265636
175 Program_Fail_Count_Chip 0x0013 100 100 010 Pre-fail Always - 0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0033 100 100 020 Pre-fail Always - 256
192 Power-Off_Retract_Count 0x0012 100 100 000 Old_age Always - 0
194 Temperature_Celsius 0x0022 066 066 030 Old_age Always - 34 (Min/Max 27/40)
231 Unknown_SSD_Attribute 0x0033 093 093 005 Pre-fail Always - 7
233 Media_Wearout_Indicator 0x0032 100 100 000 Old_age Always - 47441613952
234 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 23748241424384
241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 32438661200
242 Total_LBAs_Read 0x0032 100 100 000 Old_age Always - 14181316402

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.
 

Etorix

Wizard
Joined
Dec 30, 2020
Messages
2,134
Plan 2:
- remove the bad drive > add another drive to its place > install TrueNAS Scale > import my config > import my pools
Done!
 

scotrod

Dabbler
Joined
Apr 30, 2021
Messages
42
Plan 2:

Done!
I'm taking that exporting and importing the config is idiot-proof and will even recognize my pools/import all of my settings? Meaning I will not have to do any additional settings, like import SSH keys and so on?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
SSH keys is the one thing not captured in the config, so manually take that and put it back after.
 

scotrod

Dabbler
Joined
Apr 30, 2021
Messages
42
SSH keys is the one thing not captured in the config, so manually take that and put it back after.
Sweet, thanks. Will confirm here if everything went smoothly - just exporting and importing the config looks too good to be true.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You can find hundreds of "it went really well" posts on the forum, so hopefully this will now add to that list.
 

scotrod

Dabbler
Joined
Apr 30, 2021
Messages
42
You can find hundreds of "it went really well" posts on the forum, so hopefully this will now add to that list.
Yeah, it went really well. A lot of thanks to the developers who implemented such an easy process!
 
Last edited:
Top