Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: bcalder01 on December 16, 2008, 10:21:32 AM

Title: Backup to usbdisk not happening
Post by: bcalder01 on December 16, 2008, 10:21:32 AM
Hi all, I am experiencing a semi-noobie issue in trying to back up to usbdisk using DAR in SME 7.4.

I am trying to create a full backup every night to 5 different USB disks. I have formatted the USB disks as ext3, with labels for each day. My fstab additions:
------------------------------------------------------------------------------
LABEL=monday /media/usbdisk ext3 defaults
LABEL=tuesday /media/usbdisk ext3 defaults
LABEL=wednesday /media/usbdisk ext3 defaults
LABEL=thursday /media/usbdisk ext3 defaults
LABEL=friday /media/usbdisk ext3 defaults
------------------------------------------------------------------------------

... which isn't working. I have to manually mount the disks . It does mount properly:
------------------------------------------------------------------------------
/dev/sdb1 on /media/usbdisk type ext3 (rw)
------------------------------------------------------------------------------

Here is the output of my backup config:
------------------------------------------------------------------------------
Backup is Enabled.
Backup is made on local USB disk
Destination backup share folder is media/usbdisk
Number of rotating backup sets is 2
Number of daily backups contained in each set is 1
Compression level (0-7) of backup is 3
Daily backup occurs at 22:00
Each daily backup session is cleanly timed out after 9 hours.except full backups which are cleanly timed out after 24 hours
Full backup sessions (new backup set) are allowed everyday
------------------------------------------------------------------------------

But after running a backup of 85G, which is "completing" after 5 or so minutes, all I have is a lost & found:
------------------------------------------------------------------------------
[root@fs01 ~]# du -h /media/usbdisk
16K     /media/usbdisk/lost+found
20K     /media/usbdisk
------------------------------------------------------------------------------

Here is a snip of /var/log/messages:
------------------------------------------------------------------------------
Dec 16 09:22:01 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: OLD 1229415721=(undefined)
Dec 16 09:22:01 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: NEW 1229415721=backup_record
Dec 16 09:22:01 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: OLD 1229415721=backup_record
Dec 16 09:22:01 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: NEW 1229415721=backup_record|StartEpochTime|1229415721
Dec 16 09:22:01 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: OLD 1229415721=backup_record|StartEpochTime|1229415721
Dec 16 09:22:01 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: NEW 1229415721=backup_record|BackupType|workstation|StartEpochTime|1229415721
Dec 16 09:22:01 fs01 esmith::event[2204]: Processing event: pre-backup 
Dec 16 09:22:01 fs01 esmith::event[2204]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Dec 16 09:22:01 fs01 esmith::event[2204]: expanding /etc/dar/DailyBackup.dcf 
Dec 16 09:22:01 fs01 esmith::event[2204]: generic_template_expand=action|Event|pre-backup|Action|generic_template_expand|Start|1229415721 694854|End|1229415721 960286|Elapsed|0.265432
Dec 16 09:22:01 fs01 esmith::event[2204]: Running event handler: /etc/e-smith/events/pre-backup/S10mysql-delete-dumped-tables
Dec 16 09:22:02 fs01 esmith::event[2204]: S10mysql-delete-dumped-tables=action|Event|pre-backup|Action|S10mysql-delete-dumped-tables|Start|1229415721 960452|End|1229415722 92794|Elapsed|0.132342
Dec 16 09:22:02 fs01 esmith::event[2204]: Running event handler: /etc/e-smith/events/pre-backup/S20mysql-dump-tables
Dec 16 09:22:03 fs01 esmith::event[2204]: S20mysql-dump-tables=action|Event|pre-backup|Action|S20mysql-dump-tables|Start|1229415722 93004|End|1229415723 790302|Elapsed|1.697298
Dec 16 09:22:03 fs01 esmith::event[2204]: Running event handler: /etc/e-smith/events/pre-backup/S50rewind-tape
Dec 16 09:22:03 fs01 esmith::event[2204]: S50rewind-tape=action|Event|pre-backup|Action|S50rewind-tape|Start|1229415723 790558|End|1229415723 868064|Elapsed|0.077506
Dec 16 09:22:04 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: OLD 1229415721=backup_record|BackupType|workstation|StartEpochTime|1229415721
Dec 16 09:22:04 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: NEW 1229415721=backup_record|BackupType|workstation|EndEpochTime|1229415724|StartEpochTime|1229415721
Dec 16 09:22:04 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: OLD 1229415721=backup_record|BackupType|workstation|EndEpochTime|1229415724|StartEpochTime|1229415721
Dec 16 09:22:04 fs01 /sbin/e-smith/do_backupwk[2202]: /home/e-smith/db/backups: NEW 1229415721=backup_record|BackupType|workstation|EndEpochTime|1229415724|Result|backup:7424|StartEpochTime|1229415721
------------------------------------------------------------------------------

I am not finding any errors or success messages. I originally thought the issue could have been fstab related, but it seems that the disks are mounting OK.

Sorry for all of the info, if anyone could point me in the right direction to troubleshoot, I'd appreciate it very much.




Title: Re: Backup to usbdisk not happening
Post by: bcalder01 on December 16, 2008, 12:30:46 PM
Update: I let the usbdisk mount "naturally" instead of unmounting it & remounting it as /media/usbdisk. fstab automagically added the "tuesday" mountpoint, and when I reconfigured backup via the web interface, I was able to utilize it:

-------------------------------------------------------------------------------------
[root@fs01 ~]# cat /etc/fstab
<snip>
LABEL=monday /media/usbdisk ext3 defaults
LABEL=tuesday /media/usbdisk ext3 defaults
LABEL=wednesday /media/usbdisk ext3 defaults
LABEL=thursday /media/usbdisk ext3 defaults
LABEL=friday /media/usbdisk ext3 defaults

/dev/sdb1               /media/tuesday          ext3    pamconsole,exec,noauto,managed 0 0
-------------------------------------------------------------------------------------

After running the backup, I have data!
-------------------------------------------------------------------------------------
[root@fs01 ~]# du -h /media/tuesday
11G   /media/tuesday/tmp_dir/enor-fs01.office
11G   /media/tuesday/tmp_dir
4.0K   /media/tuesday/enor-fs01.office/set1
8.0K   /media/tuesday/enor-fs01.office
16K   /media/tuesday/lost+found
11G   /media/tuesday
-------------------------------------------------------------------------------------

So, now the issue is: How can I get each disk to mount in the same mountpoint (for instance, /media/usbdisk) for an easy method of swapping backup disks daily? I am thinking of the days when I won't be in, but the disks will have to be changed out by office staff. Is it just an easy change in fstab?
Title: Re: Backup to usbdisk not happening
Post by: CharlieBrady on December 16, 2008, 08:46:25 PM
... which isn't working.

Please report anything which doesn't "just work" via the Bug Tracker. Thanks.