Can't delete file on mounted CIFS share
I have a script that deletes old backups on a mounted CIFS share:
find /mnt/backup/* -mtime +30 -type f -exec rm {} \;
The share is mounted thus in my /etc/fstab:
//server/Debian /mnt/backup cifs
credentials=/root/.smbmount,username=xxxx,uid=xxxx,file_mode=0755,dir_mode=0755
0 0
When I run this script, or when I try to delete a file on the mounted share
I get the following:
# rm /mnt/backup/backup-15-Oct-2008-02-50-16.tar.gz
rm: remove regular file `/mnt/backup/backup-15-Oct-2008-02-50-16.tar.gz'? y
rm: cannot remove `/mnt/backup/backup-15-Oct-2008-02-50-16.tar.gz': Resource
temporarily unavailable
and I get the following in my syslog:
Nov 22 08:26:46 debian kernel: [1355018.838629] CIFS VFS: No response for
cmd 6 mid 26018
Nov 22 08:27:16 debian kernel: [1355051.907649] CIFS VFS: server not
responding
Nov 22 08:27:16 debian kernel: [1355051.907649] CIFS VFS: No response to
cmd 115 mid 26021
Nov 22 08:27:16 debian kernel: [1355051.907649] CIFS VFS: Send error in
SessSetup = -11
Can somebody enlighten me here?
Reply to: