Bacula-users

[Bacula-users] Restore job don't know in which storage is the volume

2009-10-30 15:18:21
Subject: [Bacula-users] Restore job don't know in which storage is the volume
From: Victor Hugo dos Santos <listas.vhs AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 30 Oct 2009 16:13:58 -0300
Hello Masters..

I have a small problem with bacula (2.4.2) and a restore job..

My structure is very simples, one director and 2 storages.
Some servers backup your files on storage1 and other servers on the storage2.

the problem is that when I run the restore job (command "restore" in
console), all work fine until I select the files and go to next step,
look:
(any irrelevant part are deleted)

==========================
*restore
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"

To select the JobIds, you have the following choices:
     1: List last 20 Jobs run
[...]
    11: Enter a list of directories to restore for found JobIds
    12: Cancel
Select item:  (1-12): 5

Defined Clients:
     1: proxy-fd
     2: pink-fd
     3: fds2-fd
     4: blue-fd
[...]
  125: bacula-st1-fd
  126: red-fd
  127: gridapps-fd
Select the Client (1-27): 4

The defined FileSet resources are:
     1: Linux-Oracle-ARCs
     2: Linux-Oracle-HOTBACKUP
     3: Linux-Servers
Select FileSet resource (1-3): 2
+--------+-------+----------+----------------+---------------------+----------------------+
| jobid  | level | jobfiles | jobbytes       | starttime           |
volumename           |
+--------+-------+----------+----------------+---------------------+----------------------+
| 16,777 | F     |   38,540 | 15,077,758,132 | 2009-10-30 04:30:02 |
oracle-completo-0901 |
+--------+-------+----------+----------------+---------------------+----------------------+
You have selected the following JobId: 16777

Building directory tree for JobId 16777 ...
+++++++++++++++++++++++++++++++++++++++++++++++
1 Job, 36,519 files inserted into the tree.

[...]

cwd is: /
$ ls
opt/
usr/
var/
$ mark usr
4 files marked.
$ done

Storage "" not found, using Storage "Storage0" from MediaType "File".
Bootstrap records written to /var/lib/bacula/bacula-dir.restore.2.bsr

The job will require the following
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================
   oracle-completo-0901


4 files selected to be restored.

Run Restore job
JobName:         Restaurar
Bootstrap:       /var/lib/bacula/bacula-dir.restore.2.bsr
Where:           /tmp/bacula-restores
Replace:         always
FileSet:         Completo
Backup Client:   blue-fd
Restore Client:  blue-fd
Storage:         Storage0
When:            2009-10-30 15:51:23
Catalog:         MyCatalog
Priority:        10
OK to run? (yes/mod/no):
==========================

If I select yes... bacula show this message:

==========================
    30-Oct 15:13 bacula-sd JobId 16787: Please mount Volume
"oracle-completo-0901" for:
    Job:          Restaurar.2009-10-30_15.13.09
    Storage:      "FileStorage" (/var/bacula)
    Pool:         Default
    Media type:   File
==========================

because the volumen isn't on storage0, but yes on storage1.

well.. IMHO, the problem is in this line:
----------------------------------
Storage "" not found, using Storage "Storage0" from MediaType "File".
Bootstrap records written to /var/lib/bacula/bacula-dir.restore.2.bsr
----------------------------------

why bacula, don't know in which local/storage it saved the volume and
try to use the "storage0" for default ??
I my case, I have only two storage, but if I have more storages ???
will be need select one for one to locate which storage have the
volumen ???

My restore job on director is:

==========================
Job {
        Name = "Restaurar"
        Type = Restore
        Client = bacula-fd
        FileSet="Completo"
        Storage = Storage0
        Pool = Default
        Messages = Standard
        Where = /tmp/bacula-restores
}
==========================

understand my problem???
there a workaround?

thanks

-- 
-- 
Victor Hugo dos Santos
Linux Counter #224399

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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] Restore job don't know in which storage is the volume, Victor Hugo dos Santos <=