This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

loader.conf

For "upgrading" from FreeNAS/NAS4Free Legacy to XigmaNAS and upgrading XigmaNAS to newer builds.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

loader.conf

Post by kkd »

Hi

anyone could tell me the easierst way to keep my loader.conf after firmware upgrade?

Thanks
Daniel
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: loader.conf

Post by raulfg3 »

copy to your data disk and execute a postinit script to copy fron data disk to boot disk every time you restart.

PD: better if you do not do changes in loader.conf , normally changes can be done using auxiliary parameters on WEBGUI and saved on config.xml so is persistant and do not lose in upgrades.

Post your changes to guide to best way to insert in webGUI
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: loader.conf

Post by kkd »

raulfg3 wrote: PD: better if you do not do changes in loader.conf , normally changes can be done using auxiliary parameters on WEBGUI and saved on config.xml so is persistant and do not lose in upgrades.
thank raulfg3

where is an input box for auxiliary parameters of loader.conf on WEBGUI?
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: loader.conf

Post by kkd »

raulfg3 wrote:copy to your data disk and execute a postinit script to copy fron data disk to boot disk every time you restart.
u have to reboot once again (after firmware upgrade first reboot) because it's a postinit script don't u?
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: loader.conf

Post by raulfg3 »

try preinit instead ( you must write a scrip that control if need to be updated, some version control must be done)
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: loader.conf

Post by kkd »

raulfg3 wrote: PD: better if you do not do changes in loader.conf , normally changes can be done using auxiliary parameters on WEBGUI and saved on config.xml so is persistant and do not lose in upgrades.
thank raulfg3

where is an input box for auxiliary parameters of loader.conf on WEBGUI?
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: loader.conf

Post by raulfg3 »

you are right , there are not auxiliary parameters in web GUI, a see your suggest to add one tab in System|Advanced viewtopic.php?f=56&t=4136

But add auxiliary parameters to ZFSkerntune is a good Idea too ( ZFSkerntune apply changes to loader.conf):

thsi is a example of my loader.conf after apply 8GB RAM in zfskerntune:

Code: Select all

kernel="kernel"
bootfile="kernel"
kernel_options=""
kern.hz="100"
hw.est.msr_info="0"
hw.hptrr.attach_generic="0"
kern.maxfiles="65536"
kern.maxfilesperproc="50000"
kern.cam.boot_delay="8000"
autoboot_delay="5"
isboot_load="YES"
zfs_load="YES"
# ZFS kernel tune
vm.kmem_size="6656M"
vfs.zfs.arc_min="5120M"
vfs.zfs.arc_max="5120M"
vfs.zfs.prefetch_disable="0"
vfs.zfs.txg.timeout="5"
vfs.zfs.vdev.max_pending="10"
vfs.zfs.vdev.min_pending="4"
vfs.zfs.write_limit_override="0"
vfs.zfs.no_write_throttle="0"
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: loader.conf

Post by kkd »

raulfg3 wrote:you are right , there are not auxiliary parameters in web GUI, a see your suggest to add one tab in System|Advanced viewtopic.php?f=56&t=4136

But add auxiliary parameters to ZFSkerntune is a good Idea too ( ZFSkerntune apply changes to loader.conf):

thsi is a example of my loader.conf after apply 8GB RAM in zfskerntune:

Code: Select all

kernel="kernel"
bootfile="kernel"
kernel_options=""
kern.hz="100"
hw.est.msr_info="0"
hw.hptrr.attach_generic="0"
kern.maxfiles="65536"
kern.maxfilesperproc="50000"
kern.cam.boot_delay="8000"
autoboot_delay="5"
isboot_load="YES".
zfs_load="YES"
# ZFS kernel tune
vm.kmem_size="6656M"
vfs.zfs.arc_min="5120M"
vfs.zfs.arc_max="5120M"
vfs.zfs.prefetch_disable="0"
vfs.zfs.txg.timeout="5"
vfs.zfs.vdev.max_pending="10"
vfs.zfs.vdev.min_pending="4"
vfs.zfs.write_limit_override="0"
vfs.zfs.no_write_throttle="0"
According to my best knowledge FreeBSD 9.x includes new event timers subsystem: eventtimers(4). Eventtimers(4) adds support for one-shot timer operation mode, when interrupts generated only when there is some work to do. That allows to not reduce kern.hz variable, so if u you use >=FreeBSD 9.x no need kern.hz="100". It's a FreeBSD 8.x heritage.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: loader.conf

Post by raulfg3 »

kkd wrote:That allows to not reduce kern.hz variable, so if u you use >=FreeBSD 9.x no need kern.hz="100". It's a FreeBSD 8.x heritage.
Thanks.

I pass this info to developers.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
zoon01
Developer
Developer
Posts: 724
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: loader.conf

Post by zoon01 »

Thanks raulfg3,

if kern.eventtimer.periodic: 1 than kern.hz= can be used.

So indeed kern.hz can be removed!
With a tickless kernel kern.hz should have no effect all the time. (dynamic tick mode also called tickless mode)
I have no complains so far that there seem to be problems using tickless VMs over longer periods of time on on VMware ESX 5.0.

Regards,
zoon01
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: loader.conf

Post by raulfg3 »

add the ability to edit / add loaders in loader.conf if latest r814 https://sourceforge.net/p/nas4free/code/814
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

RedAntz
experienced User
experienced User
Posts: 125
Joined: 11 Jul 2012 07:46
Location: Sydney, Australia
Status: Offline

Re: loader.conf

Post by RedAntz »

User edited variables and settings will be saved to loader.conf.local. loader.conf will remain unchanged.

These settings will be backup/restore via usual backup of config.xml (if you add these settings vig WebGUI of course)

A restore to Factory defaults will also wipe off these settings.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: loader.conf

Post by raulfg3 »

RedAntz wrote:User edited variables and settings will be saved to loader.conf.local. loader.conf will remain unchanged.

These settings will be backup/restore via usual backup of config.xml (if you add these settings vig WebGUI of course)

A restore to Factory defaults will also wipe off these settings.
Not sure if you test latest r814 or latter.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “Upgrade XigmaNAS”