Koozali.org: home of the SME Server

DAR2 is not seeing my mounted drive

Offline alex_rhys-hurn

  • **
  • 29
  • +0/-0
DAR2 is not seeing my mounted drive
« on: January 01, 2008, 08:21:09 AM »
Hi folks,

I am having a problem with the DAR2 Contrib.

I have installed as per this wiki article: http://wiki.contribs.org/DAR2, all went well, and I have set up a manual backup job in server-manager

I have used the USB Disks server-manager panel to mount my USB Hard Drive to /media/SME-Backup, and this is working properly and I can use the CLI to go to that mount point and create files and folders as a test. Here is a screenshot of the USB Disk mounted properly:



When I try to perform the backup DAR says the backup failed with the following error:

Code: [Select]
Jan  1 10:06:01 server e-smith-bg: Connecting to /media/SME-Backup
Jan  1 10:06:01 server e-smith-bg: mount: can't find /media/SME-Backup in /etc/fstab or /etc/mtab

But when I look in my mtab:
Code: [Select]
[root@server media]# cat /etc/mtab
/dev/mapper/main-root / ext3 rw,usrquota,grpquota 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/md1 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sda1 /media/SME-Backup ext3 rw,nosuid,nodev 0 0
[root@server media]#

You can see in the last line that the drive is mounted and writeable.

Please con somebody tell me what is going on, and how to resolve it?

Offline alex_rhys-hurn

  • **
  • 29
  • +0/-0
Re: DAR2 is not seeing my mounted drive
« Reply #1 on: January 01, 2008, 09:11:05 AM »
OK, I am making some progress here.

I have now understood what is happening but I dont see how to resolve the issue.

I have found out that DAR2 behaviour is to try to mount the path that you specify in the backup job config. So in my case I have set /media/backup

Dar assumes that it is not mounted and then goes to /etc/fstab to look for the details so that is can mount it.

Because I am using the USB Disks contrib these details are not in /etc/fstab.

I understand WHY DAR2 does this (to mount and unmount backup drive makes good data safety sense).

Can somebody tell me either how to make DAR2 work with USB Disk manager contrib or how to make edits to FSTAB that smeserver wont break later, and that make use of the UUID and LAbel of a usb drive to make sure that the backups go to the correct drive?

Rgds

Alex

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: DAR2 is not seeing my mounted drive
« Reply #2 on: January 03, 2008, 05:15:19 PM »
Make whatever changes you require directly to /etc/fstab.

Darrell