Code: Select all
service thebrig troubleshoot
Code: Select all
service thebrig troubleshoot
It has halped - I had created wrong rules for fstab (mountfs)alexey123 wrote:check command
CODE: SELECT ALL
service thebrig troubleshoot

Helloalexey123 wrote:You can upgrade over webgui -Thebrig manager







Code: Select all
root@nas:/etc/rc.d# service thebrig troubleshoot
jls: jail "main" not found
Can not find problem. May be jail created with id= ??
root@nas:/etc/rc.d# service thebrig start main
Starting jails: security.jail.enforce_statfs: 2 -> 2
main main already exists
root@nas:/etc/rc.d# jls
JID IP Address Hostname Path
root@nas:/etc/rc.d# jexec main
jexec: jail "main" not found
Code: Select all
fetch https://raw.githubusercontent.com/fsbruva/thebrig/alcatraz/thebrig_install.sh
sh thebrig_install.sh /PATH/TO/BRIG/FOLDER
Thank you!alexey123 wrote: bocman
Probably inside your jail fault present and it cannot be start as regular
In this case file /var/run/jail_main.id not remove and prevent to start your jail next time.
Remove this file manually

Hello,alexey123 wrote:Done https://github.com/fsbruva/thebrig/comm ... 40ca716626
You can update from gui





Code: Select all
# cat thebrig.conf
101plex01 {
path = "/tank0/Data/Jail/101plex01";
persist;
host.hostname ="101plex01.localnet";
enforce_statfs =;
devfs_ruleset=101;
mount.fstab="/tank0/Data/Jail/conf/jails/fstab.101plex01";
ip4.addr = "em0|192.168.42.220";
;
exec.start ="/bin/sh /etc/rc";
exec.stop ="/bin/sh /etc/rc.shutdown";
}
news {
path = "/tank0/Data/Jail/news";
persist;
host.hostname ="news.localnet";
enforce_statfs =;
devfs_ruleset=102;
mount.fstab="/tank0/Data/Jail/conf/jails/fstab.news";
ip6.addr = "";
;
mount.devfs;
exec.start ="/bin/sh /etc/rc";
exec.stop ="/bin/sh /etc/rc.shutdown";
}
sickrage {
path = "/tank0/Data/Jail/sickrage";
persist;
host.hostname ="sickrage.localnet";
enforce_statfs =;
devfs_ruleset=103;
mount.fstab="/tank0/Data/Jail/conf/jails/fstab.sickrage";
ip6.addr = "";
;
mount.devfs;
exec.start ="/bin/sh /etc/rc";
exec.stop ="/bin/sh /etc/rc.shutdown";
}
shell {
path = "/tank0/Data/Jail/shell";
persist;
host.hostname ="shell.localnet";
enforce_statfs =;
devfs_ruleset=104;
mount.fstab="/tank0/Data/Jail/conf/jails/fstab.shell";
ip6.addr = "";
;
mount.devfs;
exec.start ="/bin/sh /etc/rc";
exec.stop ="/bin/sh /etc/rc.shutdown";
}
test {
path = "/tank0/Data/Jail/test";
persist;
host.hostname ="test.localnet";
enforce_statfs =2;
devfs_ruleset=105;
mount.fstab="/tank0/Data/Jail/conf/jails/fstab.test";
ip4.addr = "em0|192.168.42.225/24";
allow.mount;
allow.mount.devfs;
allow.mount.procfs;
mount.devfs;
exec.start ="/bin/sh /etc/rc";
exec.stop ="/bin/sh /etc/rc.shutdown";
}Code: Select all
# cat devfs.rules
##Thebrig rulesets##
[devfsrules_jail_101plex01=101]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
[devfsrules_jail_news=102]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
[devfsrules_jail_sickrage=103]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
[devfsrules_jail_shell=104]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
[devfsrules_jail_test=105]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
Code: Select all
enforce_statfs =;Code: Select all
ip4.addr = "em0|192.168.42.220";



whole procedure could be simple or complex, depending of your sw configerico.bettoni wrote:the proper way to upgrade

My jails are very simple with software installed via pkg.MikeMac wrote:whole procedure could be simple or complex, depending of your sw configerico.bettoni wrote:the proper way to upgrade
for whole procedure I've written a manual. It is in Russian, but hope Google translation will be understandable
By the way, all screenshots are from English interface
https://translate.google.ru/translate?s ... edit-text=

Yep, that was it.erico.bettoni wrote: My jails are very simple with software installed via pkg.
What I understood from the guide is that in this case simply using TheBrig update feature would bring them from 10.2 to 10.3?
I though something like freebsd-upgrade was necessary...
I will try with a test jail and see how it goes.

Code: Select all
cloud {
path = "/mnt/master/extensions/thebrig/cloud";
persist;
host.hostname ="cloud.local";
enforce_statfs =0;
devfs_ruleset=101;
mount.fstab="/mnt/master/extensions/thebrig/conf/jails/fstab.cloud";
ip4.addr = "igb0|192.168.xxx.zzz/24";
allow.mount;
allow.mount.devfs;
allow.mount.zfs;
allow.mount.procfs;
mount.devfs;
exec.prestart ="/bin/sh /mnt/master/extensions/thebrig/conf/jails/prestart.cloud";
exec.start ="/bin/sh /etc/rc";
exec.poststart ="/bin/sh /mnt/master/extensions/thebrig/conf/jails/poststart.cloud";
exec.prestop ="/bin/sh /mnt/master/extensions/thebrig/conf/jails/prestop.cloud";
exec.stop ="/bin/sh /etc/rc.shutdown";
exec.poststop ="/bin/sh /mnt/master/extensions/thebrig/conf/jails/poststop.cloud";
}Code: Select all
/mnt/master/documents /mnt/master/extensions/thebrig/cloud/usr/local/www/owncloud/data/champagne/files/documents nullfs rw 0 0Code: Select all
zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
master 1.09T 392G 720G - 16% 35% 1.00x ONLINE -
pool1 7.25T 3.53T 3.72T - 8% 48% 1.00x ONLINE -
nas4free1: ~# cd /mnt
nas4free1: /mnt# cd master
nas4free1: master# ls
admin download musiques vbox
apple extensions photos video_pers



Code: Select all
nas4free: ~# fetch -o /tmp/thebrig_install.sh https://github.com/fsbruva/thebrig/raw/working/thebrig_install.sh
/tmp/thebrig_install.sh 100% of 3839 B 11 MBps 00m00s
nas4free: ~# chmod a+x /tmp/thebrig_install.sh
nas4free: ~# /bin/sh /tmp/thebrig_install.sh /mnt/pool1/jail 2
fetch: https://github.com/fsbruva/thebrig/archive/alcatraz.zip: size of remote file is not known
alcatraz.zip 145 kB 301 kBps 00m00s
Unpacking the tarball...
Done!
Warning: file(/var/tmp/install_stage/conf/ext/thebrig/lang.inc): failed to open stream: No such file or directory in /root/temporary/conf/bin/change_ver.php on line 49
Hello, we will begin installing TheBrig now
/tmp/thebrig_install.sh: 81: Syntax error: "fi" unexpected (expecting "then")
nas4free: ~#
