FBBR – Troubleshooting – SMB Backup
December 2, 2023
FBBR – Troubleshooting – SMB – From 7.0U3f/8.x
December 4, 2023
FBBR – Troubleshooting – SMB Backup
December 2, 2023
FBBR – Troubleshooting – SMB – From 7.0U3f/8.x
December 4, 2023

FBBR – Troubleshooting – SMB – 6.x/Upto 7.0U3e

Mount Failures

CIFS mount works similar to NFS Mount mechanism. If you see the expected snippets,

2021-08-01T18:39:51.428 [20210801-183839-17958471] [MainProcess:PID-18794] [MountedFSStorageIOLib::run_timed_cmd:MountedFSStorageIOLib.py:130] ERROR: Cmd ['/usr/bin/mount', '-t', 'cifs', '//192.168.7.57/SMB/vCenter/sn_vc70.vmware.local/M_7.0.2.00200_20210801-183839/', '/storage/remote/backup/cifs/192.168.7.57/mrXMYoiv/OH6iUjKP', '-o', 'rw,credentials=/tmp/tmpx5203ar9'] failed. rc: 32, stdout: , stderr: mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2021-08-01T18:39:51.428 [20210801-183839-17958471] [MainProcess:PID-18794] [MountedFSStorageIOLib::mount:MountedFSStorageIOLib.py:229] INFO: Failed to mount the cifs share //192.168.7.57/SMB/vCenter/sn_vc70.vmware.local/M_7.0.2.00200_20210801-183839_/ at /storage/remote/backup/cifs/192.168.7.57/mrXMYoiv/OH6iUjKP. Err- rc: 32, out=, err=mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2021-08-01T18:39:51.443 [20210801-183839-17958471] [MainProcess:PID-18794] [MountedFSStorageIOLib::_run_timed_cmd:MountedFSStorageIOLib.py:130] ERROR: Cmd ['/usr/bin/mount', '-t', 'cifs', '//192.168.7.57/SMB/vCenter/sn_vc70.vmware.local', '/storage/remote/backup/cifs/192.168.7.57/mrXMYoiv/OH6iUjKP', '-o', 'rw,credentials=/tmp/tmpx5203ar9'] failed. rc: 32, stdout: , stderr: mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2021-08-01T18:39:51.444 [20210801-183839-17958471] [MainProcess:PID-18794] [MountedFSStorageIOLib::mount:MountedFSStorageIOLib.py:229] INFO: Failed to mount the cifs share //192.168.7.57/SMB/vCenter/sn_vc70.vmware.local at /storage/remote/backup/cifs/192.168.7.57/mrXMYoiv/OH6iUjKP. Err- rc: 32, out=, err=mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2021-08-01T18:39:51.457 [20210801-183839-17958471] [MainProcess:PID-18794] [MountedFSStorageIOLib::_run_timed_cmd:MountedFSStorageIOLib.py:130] ERROR: Cmd ['/usr/bin/mount', '-t', 'cifs', '//192.168.7.57/SMB/vCenter', '/storage/remote/backup/cifs/192.168.7.57/mrXMYoiv/OH6iUjKP', '-o', 'rw,credentials=/tmp/tmpx5203ar9'] failed. rc: 32, stdout: , stderr: mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2021-08-01T18:39:51.458 [20210801-183839-17958471] [MainProcess:PID-18794] [MountedFSStorageIOLib::mount:MountedFSStorageIOLib.py:229] INFO: Failed to mount the cifs share //192.168.7.57/SMB/vCenter at /storage/remote/backup/cifs/192.168.7.57/mrXMYoiv/OH6iUjKP. Err- rc: 32, out=, err=mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2021-08-01T18:39:51.476 [20210801-183839-17958471] [MainProcess:PID-18794] [MountedFSStorageIOLib::mount:MountedFSStorageIOLib.py:224] INFO: Successfully mounted the cifs share //192.168.7.57/SMB at /storage/remote/backup/cifs/192.168.7.57/mrXMYoiv/OH6iUjKP
2021-08-01T18:39:51.608 [20210801-183839-17958471] [MainProcess:PID-18794] [BackupManager::DoBackup:BackupManager.py:298] INFO: Started to backup VC components at UTC: 2021-08-01 18:39:51.607898

Even though, we receive the No such file or directory error still it’s an successful mount. The reason being, vCenter tries to mount the complete path

//192.168.7.57/SMB/vCenter/sn_vc70.vmware.local/M_7.0.2.00200_20210801-183839_/

Since the path does not exist, it tries to mount the parent directory which is

//192.168.7.57/SMB/vCenter/sn_vc70.vmware.local

If that also, is not successful it mounts its parent directory.

//192.168.7.57/SMB/vCenter

If unsuccessful, then its parent directory.

//192.168.7.57/SMB

If any of the path is valid and the mount is successful, you would receive the Success message and the backup gets initiated.

vCenter creates a temporary file with the SMB Credentials which is used by the mount command.

To use credentials file in lab,

vi <filename>
username=<username>
password=<password>
domain=<domain>
/usr/lib/mount -t cifs //192.168.7.57/SMB/ /var/core/tmp -o rw,credentials=

You would be able to perform file operations.

You can validate the mount by the command “mount”.

df -h also shows the mount directory

However, using domain accounts might fail under certain circumstances and backup would be successful for local accounts.

# mount -v -t cifs //192.179.7.5/vCSA-Backups/ /var/core/tmp -o rw,credentials=/var/core/credential
mount.cifs kernel mount options: ip=192.179.7.5,unc=\192.179.7.5\vCSA-Backups,user=user1@vmware.local,pass=
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

To unmount the directory,

umount <LOCAL_PATH>

You can use -v to provide more detailed information

If you want to mount using a particular protocol version, you can specify -o vers=

mount -v -t cifs //<SMB_IP>/<Share>/ /<Local_Folder> -o rw,credentials=/credentials,vers=<3.0/2.1>

In the Series:

Leave a Reply

Your email address will not be published. Required fields are marked *