Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: hjnvejlen on January 09, 2008, 06:46:08 PM
-
Hi
Ever since my SME server was updated to 7.3 I haven't been able to run DAR2 backup.
Every morning I get following e-mail from DAR2:
Connecting /mnt/dar2/HDB-Backup to /dev/sda1
mount: /dev/sda1 already mounted or /mnt/dar2/HDB-Backup busy
mount: according to mtab, /dev/sda1 is already mounted on /mnt/dar2/HDB-Backup
I've tried a lot of things, but the USB disk is automounted so I can't see what I can do.
With SME 7.2 I allways had to ensure to run: "mount /media/usbdisk" every time I restarted SME server, but this won't work now.
Anyone who have any ideas?? I'm not very fond of running without a working backup.
Could it be that I'm running a too old DAR2??
best regards
Vejlen
-
Might be a good time to try e-smith-backup with dar
http://wiki.contribs.org/Top_5
http://wiki.contribs.org/Backup_with_dar
bugs to bugtracker
-
You really have not provided enough information. The output of the following would be the minimum information to provide:
# rpm -q smeserver-dar2
# cat /etc/fstab
# mount
# db dar2 show jobname
Try manually unmounting /dev/sda1. FYI smeserver-dar2 mounts and unmounts the USB drive for you during operations. The drive should not be mounted or in active use prior to job execution.
Darrell
-
I seem to have a similair problem, so I'll give you also my information:
I get a email from DAR2:
Connecting to /media/BackupHD
Expanding /etc/dar2/USB_backup template
Creating /media/BackupHD/server01.mydomain/USB_backup/db.zip
Expiring old backups
Executing pre-backup event
Verbose logging is off
Performing USB_backup backup
No terminal found for user interaction. All questions will be assumed a negative answer (less destructive choice), which most of the time will abort the program.
Parse error on command line (or included files): Cannot add an absolute path
# rpm -q smeserver-dar2
smeserver-dar2-0.0.1-3dmay
# cat /etc/fstab
/dev/sda1 /media/BackupHD ext3 pamconsole,exec,noauto,managed 0 0
mount
/dev/sda1 on /media/BackupHD type ext3 (rw,nosuid,nodev)
db dar2 show jobname
No result
I checked th USB-harddisk with MC and the last backup seems to be dated 2008.01.05 and db.zip is dated january 9th
-
You really have not provided enough information. The output of the following would be the minimum information to provide:
# rpm -q smeserver-dar2
# cat /etc/fstab
# mount
# db dar2 show jobname
Try manually unmounting /dev/sda1. FYI smeserver-dar2 mounts and unmounts the USB drive for you during operations. The drive should not be mounted or in active use prior to job execution.
Darrell
Hi
First an answer to the additional information you wanted:
The first point is:
smeserver-dar2-0.0.1-3dmay
Second point is:
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/fstab/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/main/root / ext3 usrquota,grpquota 1 1
/dev/md1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/main/swap swap swap defaults 0 0
/dev/sda1 /media/usbdisk1 ext3 pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrom auto pamconsole,exec,noauto,managed 0 0
The third point is:
/dev/mapper/main-root on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/md1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /media/usbdisk1 type ext3 (rw,nosuid,nodev)
(Since I had the first problems I tried to remove the entry in fstab for /dev/sda1, therefor its now automounted on /media/usbdisk1)
The fourth:
"NOTHING"
When I try the command "db dar2 show jobname" it displays NO information at all
When I first started to use DAR2 backup I first time was told that /dev/sda1 was not a block device. But If I mounted /media/usbdisk it worked fine.. that means untill I was upgraded to SME 7.3.
I hope this helps you? Else I'm trying to us the backup that some other have suggested. Nothing must be untested :-)
I HAVE tried to unmount /media/usbdisk and still the same result, I even tried to remove the entry from fstab as you see from the above.
-
I seem to have a similair problem, so I'll give you also my information:
Parse error on command line (or included files): Cannot add an absolute path[/tt]
Your problem is not similar. It states you have an 'absolute path' error. This means you incorrectly entered a custom backup selection starting with '/'.
-
I HAVE tried to unmount /media/usbdisk and still the same result,
In your case you are using /dev/sda1 on /media/usbdisk1, NOT /media/usbdisk.
When I try the command "db dar2 show jobname" it displays NO information at all
Replace jobname with your actual jobname.
-
Hi dmay
The answer to the last question you asked is:
HDB-Backup=dar2
Backup=etc/e-smith/templates-custom,etc/e-smith/templates-user-custom,etc/group,etc/gshadow,etc/passwd,etc/samba/secrets.tdb,etc/samba/smbpasswd,etc/shadow,etc/smbpasswd,etc/ssh,etc/sudoers,home/e-smith,root
Compression=9
Description=Backup to hdb
Exclude=
Expiry=10
Mount=/mnt/dar2
Password=********
Prune=home/e-smith/files/ibays/srv-shared
Slice=2000
Target=/dev/sda1
Username=root
VFSType=ext3
Verbose=off
backupDay=*
backupTime=1:30
status=enabled
But in the meantime the problem seems solved. At least I received an email this morning stating that a successfull backup was finalized. I guess that due to the fact that I removed the original entry in fstab and let the system add the entry again, (this time though as /media/usbdisk1) did the trick.
I wonder if it is correct to use /dev/sda1 as destination for my backup?
After the nightly backup /media/usbdisk1 is still mounted so I'm curious to see who the backup will perform tonight :-)
But again it seems to work for me now andt that was my primary goal.
Thanks for your effort to solve the problem.
regards
hjnvejlen