#1531 Issue closed: ReaR Backup with CIFS SMB 2 configuration

Labels: support / question, fixed / solved / done

metro1234 opened issue at 2017-10-11 05:27:

Relax-and-Recover (ReaR) Issue Template

Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

  • rear version (/usr/sbin/rear -V):
    Relax-and-Recover 1.17.2 / Git
  • OS version (cat /etc/rear/os.conf or lsb_release -a):
    RHEL 7.2
  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf):
OUTPUT=ISO
OUTPUT_URL="cifs://1.1.1.1/public/"
BACKUP=NETFS
BACKUP_URL="cifs://1.1.1.1/public/"
NETFS_KEEP_OLD_BACKUP_COPY=
BACKUP_PROG_EXCLUDE=("${BACKUP_PROG_EXCLUDE[@]}" '/media' '/var/tmp/*' '/var/crash'  '/proc/')
BACKUP_OPTIONS="username=testuser,domain=rear,vers=2.0"
  • Are you using legacy BIOS or UEFI boot?
    UEFI
  • Brief description of the issue:
    Not able mount cifs mount (windows cifs share)
  • Work-around, if any:
    recent changes in windows it accept only smb 2.0 protocol and added vers=2.0
Relax-and-Recover 1.17.2 / Git
Using log file: /var/log/rear/rear-sapprdhdb160.log
Password for testuser@//1.1.1.1/public/:  **********************
Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
Creating disk layout
.
Creating root filesystem layout
TIP: To login as root via ssh you need to set up /root/.ssh/authorized_keys or SSH_ROOT_PASSWORD in your configuration file
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
ERROR: Mount command 'mount -v -o rw,noatime,guest //172.17.87.15/public/ /tmp/rear.M6Wg09kHV49CmCZ/outputfs' failed.
Aborting due to an error, check /var/log/rear/rear-sapprdhdb160.log for details
Terminated

It is using guest user

gozora commented at 2017-10-15 10:20:

Hi, @metro1234

Default options are used for mounting of your OUTPUT_URL, which is fully ok, as you did not explicitly specify them.

Try to add something like:

OUTPUT_OPTIONS="username=testuser,domain=rear,vers=2.0"

or if OUTPUT_OPTIONS should be same as BACKUP_OPTIONS add following line AFTER line with BACKUP_OPTIONS

OUTPUT_OPTIONS="$BACKUP_OPTIONS"

V.

gdha commented at 2017-10-23 11:42:

@metro1234 Was the suggestion successful?

gdha commented at 2017-11-17 13:55:

As no feedback came back we may assume the problem has been solved

jsmeix commented at 2023-03-17 11:54:

@Randhirkarn0
this issue is closed since a long time (since Nov. 2017).

Relax-and-Recover 1.17.2 is very old (released Aug. 2015).

Go to
https://github.com/rear/rear/issues
there click the [New issue] button and
follow the instructions that show up then, cf.
https://github.com/rear/rear/blob/master/.github/ISSUE_TEMPLATE.md

In general in case of issues check the ReaR log file.
To debug issues, run ReaR in debug mode, preferably in debugscript mode.


[Export of Github issue for rear/rear.]