BackupExec linux agent success installation case

For anyone interested in installing backupexec on truenas scale.

First of all to inform you that point out that backup exec is not compatible with truenas. However due to the fact that I had a huge amount of data from the previous installation I had which was on a windows server I had to find a way to backup / restore to truenas.
To be more specific: I replaced all my storage (about 0,7 PB) from 2 independent windows cluster to 2 independent truenas. Before I decided to do it I had to make sure first that I could restore from the backup exec files that I had backed up when my windows storage was in truenas. I also needed to make sure that I would be able to quickly and reliably backup my new truenas.
To make a long story short even though there is no compatibility highlighted I finally managed to have backupexec linux agent (Ralus) on truenas and it works fast and reliably.
The installation has 2-3 tips and a note to which you should pay attention. The tips are trivial and if anyone is interested I will answer in detail. The remark has to do with the peculiarity of truenas when it restarts to remove what it doesn’t like. So here too when it restarts it completely removes the agent installation. But in 2 minutes you install it again and everything works perfectly again.
Also note that if you have a fiber optic or SAS tape drive it can be connected directly to truenas and work perfectly as NDMP so you can manage your backup from the backupexec console but backup/restore is done directly in truenas on the tapes avoiding the use of the network completely.

1 Like

Hello :slight_smile:

could you tell us more about it please ? TY :slight_smile:

Jeff

I’m just writing the help document about… So I’ll return back in a while.

Step 1
First you need the official backupExec linux agent installer (included at Backupexec media installation media) : RALUS_RMALS-1188.2496.tar.gz
Unzip it to a temporary folder in truenas :

tar xvfz RALUS_RMALS-1188.2496.tar.gz

Step 2
From the truenas web interface you create a group named beoper
Then you make the root user a member of the group

Step 3
At ssh terminal session run:
mount -o remount,rw /usr
mount -o remount,rw /opt
chmod +x /usr/bin/dpkg

Step 4
Edit with vi (or nano) /etc/services
Search 10000
There you need to change webmin to ndmp so that it becomes as below
ndmp 10000/tcp
Then save it

Step 5
Run the installer in the same folder (unzipped at step 1)
./installrmal

You follow the installer’s instructions by answering “yes” (default) to all of them
Done.

Now you are ready to add this truenas server at the backupexec.

OPTIONAL 1
There is 3 more patch installer from the initial revision. It’s good to running one by one after done install the initial installer
Patch 1: ralus1188.2718SP.tar.gz
Patch 2: ralus1188.2728HF525537.tar.gz
Patch 3: ralus1188.2734HF298543.tar.gz
Unzip (tar xvfz) and install them one by one.


Step 6 (Now at the BackupExec windows console)

Add a “File server or NDMP data server"

Check "Allow Backup exec to establish a trust with the server”
Fill the IP address or the resolved name server.
Use “root” username (you must have already added it to the backupexec user list)
Done.

Now you can back up all your data at the server at the /mnt

Optional
If your tape drive or robotic library is direct connected to truenas you can add a storage tape library by using the ip of truenas (or resolved name server )

Step 7
Return back the file system at the original read-only mode:

mount -o remount,ro /usr
mount -o remount,ro /opt

In case restart the server you must repeat the steps 1 until 5 Plus Optional 1


Finally :

Screenshot for remote tape library (NDMP storage) :

2 Likes

Adding some two cents here, I was able to configure a service to auto-install upon reboot.

I really hacked this together so I cannot guarantee it’ll work now or in the future, but I was able to accomplish the following;

The RMAL Setup produces a “response” file upon first configuration. Once you’re finished installing RMAL for the first time (or if you have it installed, after a reboot and running the reinstall instructions) you are given a log output like so:

The response file is saved at:

/var/tmp/vxif/installrmal1206185330/installrmal1206185330.response

The installrmal log is saved at:

/var/tmp/vxif/installrmal1206185330/installrmal.log

This .response file will be essential to the next steps. The installrmal file accepts the following arguments

[ -installonly ]
[ -configure ]
[ -responsefile <response_file> ]
[ -forcelocal ]
[ -logdir <log-and-response-file-directory> ]
[ -logfile <log-file-location-and-name> ]
[ -tmppath <tmp_path> ]

We can plug in /var/tmp/vxif/installrmal1206185330/installrmal1206185330.response into the argument -responsefile and it will run through the entire setup as you intended (as long as your intended configuration doesn’t change). I personally put the RALUS installer folder at /opt and copied the response file to that folder as well, naming it installrmal.response

Once we have our response file set up with the desired install, we can begin creating the service that will run on boot. We can create the service file at /etc/systemd/system/rmal-install.service

For this service, your “installrmal” will be located at /opt/RALUS_Install/RALUS

#File Located at /etc/systemd/system/rmal-install.service

Description=Install RMAL Agent on Boot (Silent Mode)
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
WorkingDirectory=/opt/RALUS_Install/RALUS

#1) Run the ‘silent’ installer (this runs FIRST)

ExecStart=/bin/sh -c ‘./installrmal -responsefile /opt/RALUS_Install/RALUS/installrmal.response’

#Optional: treat exit code 1 as success so the unit doesn’t “fail”

SuccessExitStatus=0 1

#2) After the silent install finishes, reload systemd

ExecStartPost=/bin/sh -c ‘systemctl daemon-reload’

#3) After daemon-reload, restart the RMAL agent service

ExecStartPost=/bin/systemctl restart VRTSralus.init.service

RemainAfterExit=no

[Install]
WantedBy=multi-user.target

After closing out your text editor, reload the service list and enable the service.

sudo systemctl daemon-reload
sudo systemctl enable rmal-install.service

After this, we can run the service within the normal CLI

systemctl start rmal-install.service

Your CLI will halt for a few seconds, give it a moment until the service exits.
Then, confirm there is beremote listening on port 10000

ss -lntp | grep 10000

You should receive the following output.

LISTEN 0 128 0.0.0.0:10000 0.0.0.0:* users:((“beremote”,pid=35026,fd=4))
LISTEN 0 128 [::]:10000 [::]:* users:((“beremote”,pid=35026,fd=5))

Congrats! You now no longer have to manually reinstall beremote every time your server restarts!

As of the time of writing I was running TrueNAS Scale Fangtooth 25.04.1. I had some pending updates and switched trains and updated to TrueNAS Scale Goldeneye 25.10. It immediately kernel panicked so in Grub I booted using the old 25.04.1. Tried the 25.04.2.6 and the same problem happened.

Loading Linux 6.12.15-production+truenas …
Loading Initial ramdisk …
error: checksumverification failed

Press Any key to Continue.

Not quite sure if RALUS is responsible for this, but I can’t guarantee if RALUS completely breaks your upgradability. I’m not surprised considering that this was stupid to install to TrueNAS.

If you upgrade the version you can easily roll back by

  1. Use zfs list -r boot-pool/ROOT to see your boot pools.
  2. Use zfs destroy -r boot-pool/ROOT/<version> to remove old environments, ensuring you don’t touch the active one.