Hi Stefan,

Am 15.09.2026 um 17:26 schrieb Stefan G. Weichinger via Bacula-users:

I am perfectly aware that mounting NFS via Wireguard VPN is out of scope here!

Probably a topic nobody wants to have on scope :-)

But I'd like to ask how to configure the Storage device in Bacula(ris) to at least get rid of errors there, maybe.

As far as I understand Bacula-SD is able to trigger the mounting of a filesystem before accessing the storage device.

Personally, i'd try to avoid that.

Have you tried automounting?

Also, I'd probably run a dedicated SD process for such unreliable mounts, so it's less disruptive if there's a long timeout (NFS should be "hard" mounted IMO) which could block the SD thread and in consequence cause issues for other devices, too.

So I assume this relates to the "user" option of nfs filesystems in fstab ?

Yes. Combined with extra configuration which I would try to avoid.

My issue: I see loads of this in my logs:

nfs: server 10.1.0.24 not responding, still trying

and the mount hangs.

I fiddle with options, soft vs hard mount, timeouts, packet sizes etc

(didn't yet touch the wireguard site to site vpn because it works for many other uses very well)

Right now I try:

## fstab

10.1.0.24:/volume1/BaculaBackup /mnt/nas_office nfs defaults,user,noatime,rw,_netdev,timeo=100,user,rsize=1024,wsize=1024,tcp 0 0

Explicitly setting rsize and wsize is most of the time counterproductive IMO.

It mounts, I have permissions.

In bacula-sd.conf:

Device {
   Name = "FileStorage_NAS_Office"
   Description = "storage auf NAS in Office"
   MediaType = "File1"
   ArchiveDevice = "/mnt/nas_office"
   RemovableMedia = no
   RandomAccess = yes
   AutomaticMount = yes
   LabelMedia = yes
   RequiresMount = no # maybe "yes" to actually mount it (again)
   ReadOnly = no
   MaximumConcurrentJobs = 5
   SpoolDirectory = "/srv/bacula-spool"
   MaximumSpoolSize = 16000000000
   MaximumJobSpoolSize = 10000000000
}

If you use RequiresMount, you probably also need the related configuration to define the actual commands to use. But, as stated, I'd suggest to avoid it.


Bacula is able to create volumes there, starts writing but hangs somehow etc etc

Does anyone of you bacula-users do something similar, with success? ;-)

Any obvious mistakes in my config above?

The kernel also tells me:

INFO: task bacula-sd:2295 blocked for more than 120 seconds.

The nfs-mount seems to hang, this blocks the bacula-sd .. etc

Maybe nfs isn't the right protocol here.

I suppose so. Something inherently resilient against timeouts and unreliable connections would be more useful. File systems usually are *not* designed for that use case.

You could try using an S3 endpoint, but Bacula's native S3 object storage support will still require considerable local storage as it decouples backup and final object upload.


Hopefully this gives you ideas at least -- a simple, reliable solution is probably a bit unrealistic for your scenario :-)

Cheers,

Arno

--
Arno Lehmann

IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück



_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to