Mooglestiltzkin's Build Log: Truenas build recommendation am5 2024?

Guide is a bit old & had some info that may not be relevant to scale. From my old notes on this:

Force badblocks *expect at least 4 days for 8TB drives

  1. Open tmux which will allow a new console per disk
    • tmux
  2. run badblocks per disk; following sets –c for multiple blocks tested at once (it won’t go past what drives allows but may use more ram & gives some speed benefits over default). –b for blocksize of the disk (4096 >2TB, don’t use for for <2TB, high volume at like 20tb could be higher)
    • badblocks -c 2048 -b 4096 -wvs /dev/adaX
  3. new tmux windows by “ctrl+b” then push the quotation mark “
  4. repeat as needed
  5. to view in things like Truenas go ‘tmux attach’

Backblocks will write on every possible sector of the HDD then read to confirm it did so successfully in several passes using different write patterns (think of it like memtest, but for your crazy slow HDDs). This’ll assure that every possible block of your HDD is actually proven to work prior to putting your precious data on it; good practice.

DO NOT USE BADBLOCKS ON ANY DRIVE THAT YOU ALREADY HAVE ON A POOL. DO NOT USE IT ON ANY DRIVE WITH DATA YOU WISH TO KEEP (though there are non-descrutive read-only ways of using it, I feel that they kinda defeat the purpose of badblocks entirely). BE VERY CAREFUL RUNNING BADBLOCKS ON ANY SYSTEM THAT HAS ANY DATA YOU WANT TO KEEP (you never know when your system random decides that ‘sda’ should be ‘sdb’ instead after a reboot & your badblocks command hits the wrong drive).

This will take a considerable amount of time (you quoted 2 weeks earlier; depending on the size of the drive doing smart long, full badblocks, then another smart long; it is entirely possible to take 2 weeks).

2 Likes

thats insanely long.

my purchase order will auto release payment way before then :sweat_smile:

to my understanding if u use usb and plug into truenas, and take it out, that could affect the order of the hdd/ssd name e.g. sda, sdb etc.

badblocks -c 2048 -b 4096 -wvs /dev/adaX

the drives i want to test are sde and sdd

tmux? uh… *googles :smiling_face_with_tear:

:exploding_head:

i think its better i run long test for now. its gonna take that long for me to figure this badblocks out :cry:

https://www.reddit.com/r/truenas/comments/zq769h/do_you_do_badblocks_checks_before_utilizing_new/

Nope - it can do so completely random after a reboot. Do not ever assume sda will continue to be the same drive. Always validate smartctl -a /dev/whatever confirms it is the relevant serial# that you want to work on.

then

badblocks -c 2048 -b 4096 -wvs /dev/sde
badblocks -c 2048 -b 4096 -wvs /dev/sdd

…once again; AFTER you’ve validated that sde & sdd are the drives you think they are.

1 Like

i just dont know how to use termux to get where i need to go to input the code :grimacing:

truenas ui has shell. do i enter the code from there?

:eyes:

Use one of the Scripts. @dak180 is present on the forums :wink:

2 Likes

read the script but even it says to use it using termux. though i dont know how to install that on truenas :grimacing:

i get termux is required since truenas will timeout, but termux lets it continue to run for a long time until its done in the background. just dont know how to install it.

:thinking:

Just type in ‘tmux’ into the truenas shell. No need to install anything.

tmux will stay running (or multiple instances of it) with your commands in the background. To get back into your existing tmux sessions if Truenas logs you go or you close your web browser:

tmux attach

Instructions for opening multiple tmux windows are in my previous posts. I leave figuring out how to cycle between tmux windows to you.

Oh - also don’t use badblocks on ssds or nvmes! Complete waste of drive cycles! HDDs only!

1 Like

This looks nice.

Seems like the Silverstone, but with room.

image

1 Like

price?

Also in regard to my silverstone

I got this case, and everything inside was fabulous; the SATA bays, the backplane, the internal wiring, and I didn’t have the space issues others have reported. The problem is with the rails, or the lack thereof. The RMS06-22 rails that are compatible with this case are relatively expensive, but the bigger issue is they are utterly unavailable. I ordered a set only to be told they were on backorder without a delivery date, and searching and calling for a week only yielded retailers willing to call me back when they get some in. Even eBay was a dry hole – I couldn’t confirm that any of these rails had ever been produced. I even tried an afternoon in the lab trying different Supermicro and Dell rails, but none have compatible screw spacings.

so no rails for me :grimacing: or at least wait for ebay or something for someone trying to dump these for cheap :rofl:

:thinking:

finished smart short and long on one drive. passed. 1 other is almost done. 2 more to go.

The SMART surface test is almost certainly a single, and certainly non-destructive, read pass. As has been pointed out it is also internal to the drive; with the possible exception of minor control data, no data is being passed to or from the host during the test.

On the other hand, badblocks -w makes four passes over the drive, each with one write and one read. That alone accounts for an 8× difference in time taken for the test, plus rotational latency. Since it’s software running on the host, all that data needs to be shuffled through the disk interface to RAM and handled by the software (badblocks, in our case).

If we take a worst-case rotational latency of 1× (the disk needs to make one full revolution after writing the data in order to read it back, which is pretty much what you’ll see if you like badblocks does first fill the whole disk and then read it all back, rather than doing I/O one physical track at a time which with LBA is nigh impossible), we end up with a worst case (1+1) × 8× = 16× as long needed to complete the operation. 16 × 2.5h = 40h, which is certainly in line with your numbers and still assumes we are dealing with only data storage on the drive and that it is happening as fast as the drive can sustain sequential I/O.

:thinking:

with the info posted previously i can figure out running badblocks. gonna try that.

that said i may have to just be content with a short then long test first. because i have to release funds to seller soon. its better than nothing.

i can then do the badblock scan after and if anything comes up then i can make any claims for replacement. not ideal but what to do…

2 drives short and long tested ok.

the torn esd bag covering the drive when i opened the box, it’s not fully torn. just a small tear where the power and sata connector is. i think seller made that to test, but i can’t say for sure. But i cant imagine people using it normally in that condition with it still in the esd bag. so i do think its brand new but i cant say for sure :sweat_smile: but thats what the product description said.

now im testing the other 2.

TrueNAS includes tmux, no need to install.

For my script not things to worry about, it will detect ssds and not run badblocks on them. Also, it can automatically launch tmux sesions for each disk you tell it to burnin.

2 Likes

@Fleshmauler

@dak180

i will do this and report back, ty every1

ps: bad news. seems the 3 ssds got cancelled by seller (no idea y cauz payment went through fine). So i dont have a storage to install truenas into. gonna have to sort that out. all the other parts though paid for and being shipped or already arrived.

i received the 4u case, 4x 12tb hard drives, 1x m.2 nvme heatsink so far.

this m.2 nvme heatsink looks very nice. haven’t installed yet sadly :blush: the one i ordered, though same brand is the Coolleo CL-SSD-V2. it’s grey color. could not find video for install so i use this other one as a rough reference. there is a paper instruction that came in the box.

for the NOCTUA NH-D12L CPU air cooler i went with the standard non black color


i think the black looks cool, but the standard classic color simply shouts noctua a mile away. never had a noctua so i may as well go the classic look for my first and get to experience that :blush: *not sure if id like or hate it not, guess ill find out.

paid a little extra to ship by plane. no slow boat which i checked would take until december to be delivered :grimacing:

1 Like

Hint: You won’t see it once the case is closed…

i realize that ty ^^; i just like building it thats all. regardless i still need a cooler xd.

my desktop fractal torrent has a window. just want a frame of reference since i never had one before. then i would know for next time if i should get that color for my desktop separately. bequiet was also another good candidate, never tried that :cry:

nub question.

the case for connections says 15pin and 7pin. what is that and where do i plug into the psu

seasonic focus gx750 (NON 3.0atx) is what i ordered
https://seasonic.com/focus-gx/


not sure where to plug them in psu :grimacing:

*update

hm

SATA Data Connectors
A SATA data connector has 7 horizontal pins, four pins arranged in two pairs for data and 3 ground pins. One end (the end that connects to a storage device) may be angled to save space.

A small form factor version of the SATA data connector, known as mini-SATA or mSATA connector is designed for use with smaller, power-constrained devices such as laptops and tablets.

SATA Power Connectors
The SATA power connector has 15 pins and supplies +3.3V DC, +5V DC and +12V DC. SATA power cables are often paired with a 4-pin Molex LP4 connector, which connects to a computer’s power supply.

Why does a SATA power connector have so many pins?
The 15-pin SATA power connector replaced the 4-pin Molex connector. Why the much greater pin count?

Support for three voltages (3.3V, 5V and 12V).
Avoids confusion with the 7-pin SATA data connector.
Additional ground pins to support device hot-swapping.
Advanced features such as delayed spin-up for mechanical drives.

:thinking:

1 year old video

if you are looking for a case for your diy nas.

early on i did look at jonsbo but didnt like the hdd tray (looked awful).

also i wanted a rack case (i got a rack server open air case, so i want something for that, cauz its kewl and convenient).

if u r looking for 4 hdd bay 1-2u rack, saw some deals on aliexpress. though u have to check shipping costs as well. but the good value ones tend not to have hot swap. but that might not matter to some people.

so yeah the silverstone was a bit costly. i wouldnt quite recommend it to others cauz its probably not good value :sweat_smile: but it fit my requirement so…

my motherboard, cpu and ram arrived.

is it safe to install cpu to motherboard first? the cpu cooler hasnt arrived yet. can the cpu safely be left in the am5 socket clipped in without the cpu cooler added ontop of it? or should i wait?