- Joined
- Jul 12, 2022
- Messages
- 3,222
Motherboard: Supermicro X11SSL-F
CPU: Intel Pentium G4560
RAM: 1x16GB Hynix DDR4 2666MHz Unbuffered ECC
PSU: LC-Power 560W GOLD
Boot: 1x 32GB MLC USB (TS32GJF780)
VMs/Jails: 1x Seagate IronWolf 250GB SATA SSD (ZA250NM1A002)
Storage: 2x Seagate IronWolf 3TB CMR HDD (ST3000VN007)
I'm trying a MLC USB as boot drive, I know it's not reccommended but I want to test its endurance; I have weekly config backups, don't worry.
I know stripes are dangerous, but I want to experiment; all my important data is in the HDD mirror and backups.
CPU: Intel Pentium G4560
RAM: 1x16GB Hynix DDR4 2666MHz Unbuffered ECC
PSU: LC-Power 560W GOLD
Boot: 1x 32GB MLC USB (TS32GJF780)
VMs/Jails: 1x Seagate IronWolf 250GB SATA SSD (ZA250NM1A002)
Storage: 2x Seagate IronWolf 3TB CMR HDD (ST3000VN007)
I'm trying a MLC USB as boot drive, I know it's not reccommended but I want to test its endurance; I have weekly config backups, don't worry.
I know stripes are dangerous, but I want to experiment; all my important data is in the HDD mirror and backups.
Anyway, google bringed me to this guide. I set up the jail following its instructions with the exception of using DHCP for the network interface; I succesfully created the Jail (as Clone Jail btw, I don't know if there are benfits using Basejail), used putty to ssh into TrueNAS then used
iocage console jailname
(why the heck can't I directly ssh into the jail as root is beyond my understanding) to get to my jail terminal (thanks to the official documentation I dodged the WebUI Shell).I install pkg, nano, qbittorrent-nox; I am able to reach qbittorrent-nox GUI from my_jail_ip:8080, I add the
qbitscript_enable=”YES”
line to the /etc/rc.conf file using nano file using nano, I create the /etc/rc.d/qbitscript file using nano, copy the script by stealing it from this thread (why did the author of that guide think that a screenshot was a good idea?! thanks @joeschmuck , you saved me 5 minutes of pain!) and modifying it to match the guide formatting (see below), and finally I run chmod 775 /etc/rc.d/qbitscript
.Code:
#!/bin/sh # File name 'qbitscript' # Place this file into /etc/rc.d # Edit /etc/rc.conf to include qbitscript_enable="YES" . /etc/rc.subr name="qbitscript" rcvar=qbitscript_enable PATH="$PATH:/usr/local/bin" start_cmd="${name}_start" stop_cmd=":" load_rc_config $name eval "${rcvar}=\${${rcvar}:-'NO'}" qbitscript_start() { qbittorrent-nox -d } run_rc_command "$1"
I reboot the jail (from the WebUI this time, in my true first attempt I just sent
reboot
thinking it would be fine since I was into the jail, silly me) and qbittorrent isn't active in the background (checked with top). I then tried a chmod +x /etc/rc.d/qbitscript
since the 775 looked hella suspicious to me, but still nothing.Now, my questions are the following:
- Where the hell can I look for some basic understanding of Jails? The FreeBSD documentation wasn't really helpful (being in the middle of the night might be the reason though, but it's likely that I'm trying to chew something too big for me).
- Is what I envisioned possible, or do I need to continue following that guide and mounting things who knows where, going around with groups and permissions (they are so easier in the truenas interface)?
- Are there any good practices about jails that I really should know and follow? I recall a post of @sretalla about properly setting up bridges for the IP addresses; also, should I stick with the Clone Jail or go for the BaseJail? Google bringed me different opinions, I don't think I will update it much (if it works, don't break it) but I will certanly upgrade TrueNAS versions to later 13-Us and maybe 14 in the future.
- Finally, the mother of all questions: why the heck didn't qbittorrent-nex run at startup? Not finding any answer to this question I tried to look into how to setup a cronjob since I love them in TrueNAS, but at that point I was (am) really tired and decided to seek help.
Please point me to any useful resource or documentation, I am willing to put the effort to learn but I did find myself a bit stuck. I deleted the jail for now with the intention to muster my attack after a good sleep.
Also, please forgive me since this isn't strictly a TrueNAS issue but more a collection of FreeBSD and networking ignorance.
EDIT: used lastest release for the jail and my system runs 13-U3.1
Also, please forgive me since this isn't strictly a TrueNAS issue but more a collection of FreeBSD and networking ignorance.
EDIT: used lastest release for the jail and my system runs 13-U3.1
Last edited: