Bacula-users

[Bacula-users] errors when trying to backup to 2nd HDD

2012-03-30 17:56:51
Subject: [Bacula-users] errors when trying to backup to 2nd HDD
From: Murray Davis <murray.g.davis AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 30 Mar 2012 14:54:22 -0700
I am running:  bacula  5.0.1-1 on ubuntu 10.04 LTS using MySQL db. Install went ok. I also installed the webmin interface. I have two drives on the server:

root@cablemon /mnt/sdb1# cat /etc/mtab
/dev/sda1 / ext4 rw,errors=remount-ro 0 0
snipped info...
/dev/sdb1 /mnt/sdb1 ext4 rw 0 0

I want to backup info from sda1 to sdb1.

 I tried to do a trial backup from bacula's webmin console and received the following error info...

Starting backup job BackupClient1 ..

Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
A job name must be specified.
The defined Job resources are:
     1: BackupClient1
     2: BackupCatalog
     3: RestoreFiles
Select Job resource (1-3): 1
Run Backup job
JobName:  BackupClient1
Level:    Incremental
Client:   cablemon-fd
FileSet:  Full Set
Pool:     File (From Job resource)
Storage:  File (From Job resource)
When:     2012-03-30 14:04:58
Priority: 10
OK to run? (yes/mod/no):

.. the backup job is now running. When complete, the results will be shown below ..

 yes
Job queued. JobId=6
You have messages.
messages
30-Mar 14:04 cablemon-dir JobId 6: No prior Full backup Job record found.
30-Mar 14:04 cablemon-dir JobId 6: No prior or suitable Full backup found in catalog. Doing FULL backup.
30-Mar 14:05 cablemon-dir JobId 6: Start Backup JobId 6, Job=BackupClient1.2012-03-30_14.04.58_05
30-Mar 14:05 cablemon-dir JobId 6: Using Device "FileStorage"
30-Mar 14:05 cablemon-sd JobId 6: Job BackupClient1.2012-03-30_14.04.58_05 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
    Storage:      "FileStorage" (/mnt/sdb1/backups)
    Pool:         File
    Media type:   File

I then went to the command prompt to create a new Volume...

root@cablemon /mnt/sdb1# bconsole
Connecting to Director localhost:9101
1000 OK: cablemon-dir Version: 5.0.1 (24 February 2010)
Enter a period to cancel a command.
*label
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: File
Enter new Volume name: cablemonvolume
Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-3): 2
Connecting to Storage daemon File at localhost:9103 ...
Sending label command for Volume "cablemonvolume" Slot 0 ...
3910 Unable to open device "FileStorage" (/mnt/sdb1/backups): ERR=dev.c:548 Could not open: /mnt/sdb1/backups/cablemonvolume, ERR=Permission denied

Label command failed for Volume cablemonvolume.
Do not forget to mount the drive!!!
*q

Here are the permissions for my second hard drive...

root@cablemon /mnt/sdb1# ls -la
total 28
drwxrwxr-x 4 root bacula  4096 Mar 30 10:14 .
drwxrwxr-x 3 root bacula  4096 Mar 29 15:10 ..
drwxrwxr-x 2 root bacula  4096 Mar 30 10:14 backups
drwx------ 2 root root   16384 Mar 29 15:01 lost+found

What is also interesting is that in  the comments section for the Storage { section in bacula-dir.conf, it says not to use "localhost" for the Address. When, I changed it to "cablemon" and restarted bacula, the storage daemon failed to start.

Here is /etc/hosts:
root@cablemon /mnt/sdb1# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 cablemon

Note, they have different IPs. In the Director { section of bacula-dir, the DirAddress is 127.0.0.1. As indicated, the Storage { section uses "localhost" as the Address which is 127.0.0.1. In bacula-sd.conf, in the Storage { section, the SDAdress is 127.0.0.1. The bacula-fd.conf and bconsole.conf files also refer to the 127.0.0.1 address.

The device section of bacula-sd.conf is:

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /mnt/sdb1/backups
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}

Very odd given that bacula has full write permissions on the second HDD.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] errors when trying to backup to 2nd HDD, Murray Davis <=