Maurizio wrote: ↑
21 Apr 2020 16:00
JoseMR wrote: ↑
20 Apr 2020 20:59
Note: If the variable "ZFS_BE_MANAGER" is not defined, the utility will default to the `bectl` as the Boot Environments management utility.
Thank you for your support, as usual.
I am testing the version
I must always define the variable "ZFS_BE_MANAGER", my /usr/local/etc/bemanager.conf
Hi Maurizio, thanks for the info, just to let you know, you can remove the "xz
" from the compression options as the xz
command is hardcoded into the `bemanager` utility to use XZ by default since very stable and can achieve very robust compression ratios.
In my case, my config has that "ZFS_BE_MANAGER" empty and it sets the default `bectl` command which is included in the FreeBSD base by default.
However I will install a fresh XigmaNAS RootOnZFS latest version to see what is going on there.
Tested the latest `bemanager` 0.8.5 with most defaults on Fresh XigmaNAS 18.104.22.168 - 7542(No `beadm`, just default `bectl`) and seems working here while testing:
Code: Select all
xigmanas: ~# cat /usr/local/etc/bemanager.conf | grep 'ZFS_BE_MANAGER'
xigmanas: ~# bemanager -v
xigmanas: ~# bemanager -h
Usage: bemanager [option] [beName | beName@snap | fileName] | [local | remote]
-a Activate Boot Environment.
-c Create Boot Environment.
-m Mount Boot Environment.
-u Unmount Boot Environment.
-n Rename Boot Environment.
-b Backup Boot Environment.
-r Restore Boot Environment.
-s Snapshot Boot Environment.
-d Destroy Boot Environment.
-v Display version and exit.
-h Display this help message.
The tested configuration was as follow(for reference):
Code: Select all
# Run-time configuration file for bemanager.
# Auto-generated file from bemanager.
# Set the preferred zfs boot environments management utility, e.g. "beadm".
# Path where to save boot environments backup files, e.g. "/mnt/tank/zfsbackups".
# Path to use for mounting boot environments, e.g. "/mnt".
# Skip backup mode dialog, set between "local" or "remote" backup modes.
# Set zfs send extra parameters, e.g. "-v" default empty.
# Set zfs receive extra parameters, e.g. "-v" default empty.
# Set SSH parameters, e.g. "firstname.lastname@example.org".
# Set custom compression method, e.g. "-9 -v --threads=0", empty for defaults.
XZ_COMPRESS_OPTIONS="-9 -v --threads=0"
# Set custom decompression method, e.g. "-c -d -v --threads=0", empty for defaults.
XZ_DECOMPRESS_OPTIONS="-c -d -v"
# Display boot environments only and always take a recent snapshot before backup, empty to disable.
I will provide more variable checks and fall back to defaults, and possibly built it as a package when proper documentation gets done for convenience.
Also testes latest Boot Environments Manager Extension(WebGUI) v0.3.0, which will create a `beadm` symlink to point to `bectl` in new installs, this is to let the previous version users with a working extension.