Koozali.org: home of the SME Server

DAR2 hangs whole server if destination drive is full.

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
DAR2 hangs whole server if destination drive is full.
« on: September 07, 2009, 08:53:53 PM »
Dear all,

i noticed that when DAR2 is making it's backup, and the destination disc gets full, the whole server will stops responding.
this happened to me with Buffalo linkstation NAS device as well as a windows share on a computer.

is there anything i can do to prevent the server from hanging?

The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline piran

  • *****
  • 502
  • +0/-0
Re: DAR2 hangs whole server if destination drive is full.
« Reply #1 on: September 07, 2009, 09:37:22 PM »
is there anything i can do to prevent the server from hanging?
Glibly... plan a bit and ensure enough space is available.
I can't recall my SME ever hung with a full backup target.
Having said that I don't recall not planning ahead that badly.
My site has a NAS target with DAR2 on smbfs ...if that helps.

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: DAR2 hangs whole server if destination drive is full.
« Reply #2 on: September 07, 2009, 10:43:58 PM »
Hi Piran,

thank you for the answer,
Indeed i agree that there should be some planning in backing up.
the problem is that i bought cheap buffalo linkstation devices that have a trashbox, and it's not possible to disable this trashbox.

that makes that the backup device filles up after a few days......

about the file system, i use CIFS, while the SMBFS sounds more logical to me.
i remember when i installed this system the SMBFS did not work, and someone advised me to use CIFS.

How do you configure your backup? and is that going via a normal "windows share"?

these parameters i have filled:

Target //ip-of-nas/share
username: admin
Password: *password
File system cifs
clice size 650
compression 5
expiry 10
verbose off
backup day *
backup time 00.05
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline piran

  • *****
  • 502
  • +0/-0
Re: DAR2 hangs whole server if destination drive is full.
« Reply #3 on: September 07, 2009, 10:55:07 PM »
Try smbfs instead of cifs.
Kill compression ...maybe THAT is your 'hanging'.
Compression takes a very long time.
If you are so short of working space reduce 'expiry'.
You HAVE to sort something out on your Buffalo.
It badly needs automatic maintenance functionality.

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: DAR2 hangs whole server if destination drive is full.
« Reply #4 on: September 08, 2009, 03:32:59 PM »
I created a .sh file some time ago looking like this:

Code: [Select]
while [ true ]
do

mount -t cifs //192.168.123.123/share -o username=admin,password=password /mnt/hkroon
cd /mnt/hkroon/trashbox/admin-svr.abeltjeadmin.net/daily
NOWDATE=`date +%y%m%d`

ls -s -1 > $NOWDATE.txt
rm *.dar -f
mv db.zip $NOWDATE-db.zip
ls -s -1 > $NOWDATE-a.txt
cd /
umount -l /mnt/hkroon

sleep 86401
done


If i can place this script in the startup of the server so that it's always running then my problem is also solved.
how can i place it in the bootup of the server?

Kind regards,

PS. password and URL are changed for security reasons.

PS. this file is now located here: /home/e-smith/files/ibays/contribs/files/clean-backup/clean-backup.sh
« Last Edit: September 08, 2009, 03:35:21 PM by tropicalview »
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline piran

  • *****
  • 502
  • +0/-0
Re: DAR2 hangs whole server if destination drive is full.
« Reply #5 on: September 08, 2009, 03:44:38 PM »
I'm not a programmer ...more of an experienced tweaker.
Suggest you research using a cron job for your maintenance.
Also, rather than using plain open text usern/passw in that string,
consider this possibly more ergonomic method...
http://wiki.contribs.org/Backup_Windows_Computers_Using_Affa#Create_your_mount.cifs_credentials_file