Hello,
I have a VMWare VM running RedHat Linux 9.7 and SQL Server 2022 CU 23.
SQL Server 2022 can successfully write database backups and the mssql agent job text log file to the Linux NFS share.
I successfully upgraded the VM to SQL Server 2025 CU2.
However, SQL Server 2025 CU 2 fails to write database backups to the Linux NFS Share.
Operating system error 5 (Access is denied.).
But the mssql agent job text log file is created on the Linux NFS Share.
BACKUP LOG agmgdbsql2
TO DISK = '/mnt/nfs/pssoldbunix/db_bkp_active_yes/mondblnxsql1/mssql_default/agmgdbsql22/agmgdbsql22_backup_2026_02_20_131756.trn'
WITH RETAINDAYS = 8, NOFORMAT, NOINIT,
NAME = 'agmgdbsql22_backup_2026_02_20_131756.trn',
SKIP, COMPRESSION,
ENCRYPTION(ALGORITHM = AES_256, SERVER CERTIFICATE = [mondblnxsql1_cert]), STATS = 10
GO
Msg 3201, Level 16, State 1, Line 1
Cannot open backup device '/mnt/nfs/pssoldbunix/db_bkp_active_yes/mondblnxsql1/mssql_default/agmgdbsql22/agmgdbsql22_backup_2026_02_20_131756.trn'.
Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
BACKUP LOG is terminating abnormally.
Note, the same works fine with SQL Server 2022 CU 23.
The SELINUX is set to permissive. I disabled it, rebooted the machine, but SQL Server 2025 still fails to write the backup to the Linux NFS Share.
I also tried these other two workarounds, but they did not resolve the problem.
WORKAROUND 1 - remount the linux nfs share
$ ps -eZ | grep -E 'sqlservr|sqlpal'
system_u:system_r:mssql_server_t:s0 17252 ? 00:00:00 sqlservr
system_u:system_r:mssql_server_t:s0 17266 ? 00:00:22 sqlservr
# umount /mnt/nfs/pssoldbunix
# df -kh
--recommended mssql_db_t per mssql2025 documentation
# mount -t nfs4 \
-o rw,context="system_u:object_r:mssql_db_t:s0" \
lasstrsvm18p03:/pssoldbunix \
/mnt/nfs/pssoldbunix
# df -kh
# ls -Zd /mnt/nfs/pssoldbunix
system_u:object_r:mssql_db_t:s0
systemctl restart mssql-server
# cat /etc/fstab
lasstrsvm18p03:/pssoldbunix /mnt/nfs/pssoldbunix nfs4 rw,context=system_u:object_r:mssql_db_t:s0 0 0
WORKAROUND 2: custom SELinux policy
# look for denies
# sudo ausearch -m avc -ts recent | tail -n 50
/*
----
time->Fri Feb 20 13:33:28 2026
type=PROCTITLE msg=audit(1771623208.141:1523): proctitle="/opt/mssql/bin/sqlservr"
type=SYSCALL msg=audit(1771623208.141:1523): arch=c000003e syscall=87 success=yes exit=0 a0=7f2eeda39000 a1=7f2eeda2c400 a2=7f2eedffd590 a3=80 items=0 ppid=14468 pid=14472 auid=4294967295 uid=980 gid=980 euid=980 suid=980 fsuid=980 egid=980 sgid=980 fsgid=980 tty=(none) ses=4294967295 comm="sqlservr.exe_" exe="/opt/mssql/bin/sqlservr" subj=system_u:system_r:mssql_server_t:s0 key=(null)
type=AVC msg=audit(1771623208.141:1523): avc: denied { unlink } for pid=14472 comm="sqlservr.exe_" name=".agmgdbsql22_backup_2026_02_20_131756.trn.QDHZel" dev="0:52" ino=9271140469847365033 scontext=system_u:system_r:mssql_server_t:s0 tcontext=system_u:object_r:nfs_t:s0 tclass=file permissive=1
type=AVC msg=audit(1771623208.141:1523): avc: denied { remove_name } for pid=14472 comm="sqlservr.exe_" name=".agmgdbsql22_backup_2026_02_20_131756.trn.QDHZel" dev="0:52" ino=9271140469847365033 scontext=system_u:system_r:mssql_server_t:s0 tcontext=system_u:object_r:nfs_t:s0 tclass=dir permissive=1
----
*/
# ausearch -m avc -c sqlservr
# ausearch -m avc -c sqlservr | audit2allow -M mssql_nfs
# semodule -i mssql_nfs.pp
# sudo semodule -l | grep -i mssql_nfs
# reboot
I used a VMWare VM snapshot to revert back to SQL Server 2022 CU 23, and it works fine to write the database backups and the mssql agent job text log file to the Linux NFS Share.
Questions:
a. Is there a security update in SQL Server 2025 CU 2 that could be causing the issue?
b. If yes, how can I fix the problem so SQL Server 2025 can successfully write the backup to the Linux NFS Share?
c. If not, could this be a bug in SQL Server 2025 CU2?
We cannot upgrade to SQL Server 2025 CU 2 until we resolve this problem.
I appreciate any assistance you can offer.
Thanks,
Marcelo Marques
Senior Principal Product Engineer
Esri Professional Services ArcGIS Products Team