On Wednesday 09 November 2005 18:27, Yann Cézard wrote:
> Hi list,

Yes, in 1.38 if you use overrides, they will be applied after the job is 
started.  There is currently no way to override the overrides from the 
command line.

>
> I'm currently migrating from 1.36.3 to 1.38.0, but I have a big problem
> with the restore command in bconsole : it does not want to change
> the Storage device configured in the Restore Job (in fact it used
> the bad underlying Device)
>
> Here is a session :
>
> -------------
> [EMAIL PROTECTED] bacula]# ./bconsole
> Connecting to Director sauvegarde:9101
> 1000 OK: sauvegarde-dir Version: 1.38.0 (28 October 2005)
> Enter a period to cancel a command.
> *restore
> Using default Catalog name=MyCatalog DB=bacula
>
> First you select one or more JobIds that contain files
> to be restored. You will be presented several methods
> of specifying the JobIds. Then you will be allowed to
> select which files from those JobIds are to be restored.
>
> To select the JobIds, you have the following choices:
>      1: List last 20 Jobs run
>      2: List Jobs where a given File is saved
>      3: Enter list of comma separated JobIds to select
>      4: Enter SQL list command
>      5: Select the most recent backup for a client
>      6: Select backup for a client before a specified time
>      7: Enter a list of files to restore
>      8: Enter a list of files to restore before a specified time
>      9: Find the JobIds of the most recent backup for a client
>     10: Find the JobIds for a backup for a client before a specified time
>     11: Enter a list of directories to restore for found JobIds
>     12: Cancel
> Select item:  (1-12): 5
> Defined Clients:
>      1: ETUD
>      2: IFRCIR217
>      3: IFRCIR218
>      4: Serveur de sauvegarde
>      5: NAGIOS
> Select the Client (1-5): 1
> Automatically selected FileSet: DRBD
> +-------+-------+-----------+----------------+---------------------+-------
>--------------+-----------+
>
> | JobId | Level | JobFiles  | JobBytes       | StartTime           |
>
> VolumeName          | StartFile |
> +-------+-------+-----------+----------------+---------------------+-------
>--------------+-----------+
>
> |     1 | F     | 1,442,114 | 36,954,502,551 | 2005-11-08 23:30:01 |
>
> etud-full-drbd-0001 |         0 |
> +-------+-------+-----------+----------------+---------------------+-------
>--------------+-----------+ You have selected the following JobId: 1
>
> Building directory tree for JobId 1 ...
> ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 Job, 1,400,225 files inserted into the tree.
>
> You are now entering file selection mode where you add (mark) and
> remove (unmark) files to be restored. No files are initially added, unless
> you used the "all" keyword on the command line.
> Enter "done" to leave this mode.
>
> cwd is: /
> $ ls
> mnt/
> $ cd mnt/drbd/etc/
> cwd is: /mnt/drbd/etc/
> $ mark amavisd.conf
> 1 file marked.
> $
> Bootstrap records written to
> /var/bacula/sauvegarde-dir.restore.*Console*.2005-11-09_18.14.58.bsr
>
> The job will require the following Volumes:
>
>    etud-full-drbd-0001
>
>
> 1 file selected to be restored.
>
> Run Restore job
> JobName:    Restauration ETUD dans .tmp.bacula-restores
> Bootstrap:
> /var/bacula/sauvegarde-dir.restore.*Console*.2005-11-09_18.14.58.bsr
> Where:      /tmp/bacula-restores
> Replace:    always
> FileSet:    DRBD
> Client:     ETUD
> Storage:    catalog-storage
> When:       2005-11-09 18:18:31
> Catalog:    MyCatalog
> Priority:   10
> OK to run? (yes/mod/no): mod
> Parameters to modify:
>      1: Level
>      2: Storage
>      3: Job
>      4: FileSet
>      5: Client
>      6: When
>      7: Priority
>      8: Bootstrap
>      9: Where
>     10: Replace
>     11: JobId
> Select parameter to modify (1-11): 2
> The defined Storage resources are:
>      1: catalog-storage
>      2: sauvegarde-sd
>      3: ifrcir217-root-storage
>      4: ifrcir218-root-storage
>      5: etud-drbd-storage
>      6: nagios-root-storage
> Select Storage resource (1-6): 5
> Run Restore job
> JobName:    Restauration ETUD dans .tmp.bacula-restores
> Bootstrap:
> /var/bacula/sauvegarde-dir.restore.*Console*.2005-11-09_18.14.58.bsr
> Where:      /tmp/bacula-restores
> Replace:    always
> FileSet:    DRBD
> Client:     ETUD
> Storage:    etud-drbd-storage
> When:       2005-11-09 18:18:31
> Catalog:    MyCatalog
> Priority:   10
> OK to run? (yes/mod/no): yes
> Job started. JobId=12
> $ messages
> 09-Nov 18:19 sauvegarde-dir: Start Restore Job
> Restauration_ETUD_dans_.tmp.bacula-restores.2005-11-09_18.19.23
> 09-Nov 18:19 sauvegarde-sd:
> Restauration_ETUD_dans_.tmp.bacula-restores.2005-11-09_18.19.23 Fatal
> error: acquire.c:199 Open device "SAVE-CATALOG" (/save/catalog) Volume
> "etud-full-drbd-0001" failed: ERR=dev.c:466 Could not open:
> /save/catalog/etud-full-drbd-0001, ERR=No such file or directory
>
> 09-Nov 18:19 ifrcir217-fd:
> Restauration_ETUD_dans_.tmp.bacula-restores.2005-11-09_18.19.23 Fatal
> error: job.c:1597 Bad response to Read Data command. Wanted 3000 OK data
> , got 3000 error
>
> 09-Nov 18:19 sauvegarde-dir:
> Restauration_ETUD_dans_.tmp.bacula-restores.2005-11-09_18.19.23 Error:
> Bacula 1.38.0 (28Oct05): 09-Nov-2005 18:19:26
>   JobId:                  12
>   Job:
> Restauration_ETUD_dans_.tmp.bacula-restores.2005-11-09_18.19.23
>   Client:                 ETUD
>   Start time:             09-Nov-2005 18:19:25
>   End time:               09-Nov-2005 18:19:26
>   Files Expected:         1
>   Files Restored:         0
>   Bytes Restored:         0
>   Rate:                   0.0 KB/s
>   FD Errors:              0
>   FD termination status:  Error
>   SD termination status:  Error
>   Termination:            *** Restore Error ***
>
> 09-Nov 18:19 sauvegarde-dir: Begin pruning Jobs.
> 09-Nov 18:19 sauvegarde-dir: No Jobs found to prune.
> 09-Nov 18:19 sauvegarde-dir: Begin pruning Files.
> 09-Nov 18:19 sauvegarde-dir: No Files found to prune.
> 09-Nov 18:19 sauvegarde-dir: End auto prune.
> -------------------
>
> As you can see, the Restore Job is looking under the SAVE-CATALOG device,
> but it should be SAVE-ETUD-drbd
>
> ------------
> Storage {
>         Name = etud-drbd-storage
>         Address = sauvegarde
>         SDPort = 9103
>         Password = "7b262233acd6bc70d04c5671fcbac905"
>         Device = SAVE-ETUD-drbd
>         Media Type = File
> }
> --------------
>
> The configuration is exactly the same than with 1.36.3 version, and it was
> working well. Where could the problem come from ? is it a bug or have I
> missing some changes between versions ?
>
> Cheers

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to