Introduction + New Build: plans, questions and more!

All the questions mentioned in the thread!

  • RAIDZ1 (3 data drives, one parity drive and one hot spare)

    Votes: 0 0.0%
  • RAIDZ2 (3 data drives, 2 parity drives)

    Votes: 6 100.0%
  • Truenas Core ("dont experiment with the OS, silly!")

    Votes: 5 83.3%
  • Truenas Scale (Risk OS bricking, but "should" be safe)

    Votes: 0 0.0%
  • Onboard SATA's -> Do not use!

    Votes: 0 0.0%
  • Onboard SATA's -> use, but.... (please explain :) )

    Votes: 6 100.0%
  • System Specs -> OK

    Votes: 5 83.3%
  • System Specs -> Er.. Not okay?

    Votes: 0 0.0%

  • Total voters
    6
  • Poll closed .

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
The WebGUI console is really crappy. There is no going back and forth like what it appears you attempted. You lost the shell session.

You are better off using SSH to get into the machine. From Windows, which offers a native ssh client now, or PuTTY, you can just leave the session open.

You can also hop on the VGA console if you like.

In both cases, you have the option to use "screen" (or "tmux") which create virtual sessions which you can later reattach to.

Depending on what exactly happened and what default settings do these days, it may be that tests are still running in the background. I suggest a reboot as the easiest way to guarantee that these stop, but you can also use "ps agxuww | grep solnet" to look for the master process, kill it, and then kill any dd processes running too.
I got it running through SSH and Putty.
Also got "screen" cmd running, did some fooling around, and testing is continuing as expected!

Can't wait for the results, but with 16TB drives, i imagine to receive sometime next week :eek:
 

Etorix

Wizard
Joined
Dec 30, 2020
Messages
2,134
…which is handy if you do intend to spend this time reading through the complete works (15k messages, and counting) of the Resident Grinch :wink:
 

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
Initial results:

Disk Disk Size MB/sec MB/sec Serial
------- ---------- ------ ------ ------
ada0 476940MB 466 524 112 ++FAST++
ada1 476940MB 467 524 112 ++FAST++
da0 15259648MB 258 253 98
da1 15259648MB 254 261 103
da2 15259648MB 266 259 97
da3 15259648MB 253 254 100
da4 15259648MB 267 261 98

:cool:

HDD temps 33--34°C, max reported value 37°C. CPU around 38°C, but i expect it to settle down once the paste settles down.
Maybe i can tweak the fans to make it less noisy, or set a fan curve/temp setting in the bios, as the temps appear to be well in check.

In windows i use HWINFO to get all the things i need, or want to monitor. I'll have to look into it if there is such a thing for Truenas.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
Update to the build:

I'd figured it's also worth noting that all temps are well under control after a day of running @jgreco 's torture test :wink::

1644666418742.png


1644665635132.png

1644665652239.png

1644665595827.png


This means that the node 804's doing a good job cooling the HDD's and system.
While generating some noise with its supplied fans, its not very loud. Might even swap those generic fans for more premiums, but that's a 'nice to have'. (ML's, Silent Wings, ...)

Didn't connect to the onboard fan controller either, because i figure that i'd be better connecting them all straight to the mobo.

The eagle eye'd persons will notice the I/O dropping (only 1 screen, but its the same for all disks), but make sense for mechanical drives i'f i'm correct. Thats the head going from start to end, so from the outer side of the platters to the inner side.

I've yet to finish the first solnet array test pass, but see that it seems to get the temps up at the start of the run and then drops slightly. So that will come in handy to tweak the fans to make it ultra quiet afterwards. :wink:
 

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
Hi All!

After doing a little work on the plex side, noticed i put a space in the name of the data pool.. :rolleyes:
This while trying to work out how to run scripts through the cron job stuff..

So, went ahead to delete the pool (rename didn't work), to start all over, as i had some weird issues with the name and locations...

However i still can't wrap my head around the new updated script..
https://www.truenas.com/community/resources/multi_report-sh-versions-for-core-and-scale.179/updates#resource-update-454

So, i'm sure the script is there, here's the output:

Code:
Welcome to TrueNAS
truenas% ls
HDDREPORT.sh                            multi_report_v1.4c_200313 - kopie.txt
HDDREPORT2.sh                           multi_report_v1.4c_200313.sh
Multi_Report_Instructions.pdf           solnet-array-test-v2.sh
multi_report_v1.4c_200313 - kopie.sh
truenas% pwd
/mnt/BIGDATA/Prive/mbaert
truenas%


And as root:

1647382481430.png

(couldn't copy paste..., also not through ctrl and shift - insert?.. , Putty says "wrong password" so had to use the webgui..)

Note that i:
- renamed the file to "HDDREPORT2.sh"
- Edited the mail adress (and only this)

i tried running the script as root, and as me as a seperate user
1647382930732.png


Code:
truenas% chmod +x HDDREPORT2.sh
truenas%


Don't know if my next steps are right.. but hey were experimenting...

Cron jobs:

1647383759591.png


for both users i sent a report with
Code:
ls -al
to verify that everything is there.

Ran the scripts prequisites, but still no report...

Rebooted the NAS, maybe several instances ran.., but no

am i interpreting this wrong?:
1647384210162.png


Any help would be greatly appreciated.

Thank you!
 

Attachments

  • 1647383337764.png
    1647383337764.png
    246.9 KB · Views: 114

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Any help would be greatly appreciated.
Check out the Script Basics section at the end of the Bidule0hm resource for instructions on how to run the script from a cron job (once made executable with chmod +x HDDREPORT2.sh <CR>) - the path is important.

To run from the command line, once you have made the script executable with chmod +x HDDREPORT2.sh <CR>
(which I see you have done here
1647382930732.png
), just enter ./HDDREPORT2.sh <CR> at the prompt.
 

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
Check out the Script Basics section at the end of the Bidule0hm resource for instructions on how to run the script from a cron job (once made executable with chmod +x HDDREPORT2.sh <CR>) - the path is important.

To run from the command line, once you have made the script executable with chmod +x HDDREPORT2.sh <CR>
(which I see you have done here
1647382930732.png
), just enter ./HDDREPORT2.sh <CR> at the prompt.
Hi Redcoat!

Thanks for the info/guides.

However, after trying to get it running still no success...

I created a script folder under my user as the guide suggests, followed all the steps, but still get nothing when i try the cron job. (root + user)

1647429234086.png


One other issue is that i cant seem to get root user to connect with the script folder from my user.. But i copied the files etc.. Verified its there.. and ran bot root and user.

When i type a mistake, the mail comes in fine from the system, but with "no such file/dir" warning. So i know that both users mail settings are correct. But when executing the script, with chmod stuff + full directory, nothing happpens, not even a system mail.

I tried running the script as is, this shows up:

1647429133999.png


probably not the intended use, but i fail to make progress...

Time for a cup of coffee...
 

JohnK

Patron
Joined
Nov 7, 2013
Messages
256
just enter "./HDDREPORT2.sh " at the prompt.
Just to confirm, you typed the above command as Redcoat mentioned? Dot-dash?
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
H
Just to confirm, you typed the above command as Redcoat mentioned? Dot-dash?
Same question from me - BTW, don't use the quotes ""..""!

You have already made it executable as far as I can tell - no need to keep running changemod, that's a "one time".
 

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
H

Same question from me - BTW, don't use the quotes ""..""!

You have already made it executable as far as I can tell - no need to keep running changemod, that's a "one time".
Ah, i see..
Now it works.

I thought i needed to run chmod every time.

Code:
chmod +x ./scripts/HDDREPORT3.sh


Now understanding chmod, i ran this as root:
Code:
./HDDREPORT2.sh


Some elves got to work, and the output mail came in perfectly:

1647435626372.png



Perfectly meaning i appareantly need some investigation to where that UDMA CRC error is from, but progress is made goddammit! :cool:

Sorry for the quotes, and unfortuntely dont quite follow.. o_O
Still trying to understand the language, and how to write/read and communicate with it :tongue:

Thanks a million!
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Sorry for the quotes, and unfortuntely dont quite follow..
That was a reference to the "..." that appeared in the paste below (somehow..?) but, as you now know, should not be used here.
1647437269154.png


Glad you finally got it!
 

JohnK

Patron
Joined
Nov 7, 2013
Messages
256
That was a reference to the "..." that appeared in the paste below (somehow..?) but, as you now know, should not be used here. View attachment 54105

Glad you finally got it!
sorry, tried to quote only the code and ended up quoting inside a quote :)
never a good idea to post without your glasses on.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Still trying to understand the language, and how to write/read and communicate with it
Me, too. I keep Bidule0hm's Script Basics ready for quick reference...
 

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
Getting to run everything is quite painful i find..

Especially cron jobs.. :frown:

My goal: run the jobs/scripts, from a user directory as root.
Somehow those three things combined don't work :eek:

Ok, lets start from the top..

-> it's recommended to create a directory for scripts i read, so i did create one for root user as wel as my user:

1647439460604.png


and

1647439534534.png


The reason i created both, is that the scripts usually need root/su permissions to run, as i got "premission denied" trying to run it from std user.

So.. when using the root user and cron job task like this, it works:
1647439768566.png


but this doesn't:

1647439798321.png


so that's

Code:
./HDDREPORT2.sh


vs

Code:
./root/scripts/HDDREPORT2.sh


which outputs in my email:

Code:
/bin/sh: ./root/scripts/HDDREPORT2.sh: not found


1647440025817.png


Tried another script and renamed it to HDDREPORT3.sh for ease of use, using following command:

Code:
./HDDREPORT3.sh


(which is exactly the same as HDDREPORT2.sh, and yes, i did the chmod thing)

Mail output:

Code:
/bin/sh: ./HDDREPORT3.sh: not found


To be clear, i did verify its there in the root folder and script folder i created under both root and std user...:

1647440501492.png



my logic is as follows:

-> run script from root, script in root location => works => yeay

*scripts in root location not recommended, recommended to put under a user and specific location

-> let's create a folder for that => run as std user, user location => permission denied (i get that)
-> let's get root to that => "no such file/location" -> verify with pwd, ls, ... => dot dash => nothing works

For my "root with user location" command i've gotten to this:

Code:
./mnt/BIGDATA/Prive/mbaert/scripts/HDDREPORT2.sh


which outputs suprisingly:
Code:
/bin/sh: ./mnt/BIGDATA/Prive/mbaert/scripts/HDDREPORT2.sh: not found


So yeah, alotta things i don't quite understand or make any sense to me...
And yes, i understand duplicating it 4 times is not ok, but yeah.. i'm trying it all as the one thing that works, is not recommended..?

Could we have a GUI for Cron jobs? Or a selector like the one for 'init/shutdown scripts'
1647442000709.png


Would make it alot easier i think..
 

Attachments

  • 1647441964481.png
    1647441964481.png
    27.9 KB · Views: 102

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Try the CRON job with full path to script file but without the leading "."
 

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
Try the CRON job with full path to script file but without the leading "."
You did it again! :cool:
(concerning the script through root user, and the user location)

As for the 'HDDREPORT3.sh', still not found, so i don't quite understand it yet there.
Will try some more things, as the script is from a different author, i might have to do other stuff.
 

Matthias

Explorer
Joined
Mar 7, 2014
Messages
81
https://www.truenas.com/community/t...d-identification-and-backup-the-config.27365/

(copied with notepad to HDDREPORT3.sh and HDDREPORT6.sh, tried different files.
This one doesn't seem to do anything for me.

Code:
/bin/sh: /mnt/BIGDATA/Prive/mbaert/scripts/HDDREPORT6.sh: not found

Code:
/bin/sh: /mnt/BIGDATA/Prive/mbaert/scripts/HDDREPORT3.sh: not found


The first line of the script is different from that other script:
Code:
#!/bin/sh

vs
Code:
!/bin/bash


Tried changing this, no result.

So strange that i can't run that particular script, even though it is there.

1647445251754.png


Also can't make it run from console/root, 3 is original but email changed, 6 is modified start + mail:

1647445346954.png
 
Top