Hi,

On 3/28/2007 11:08 AM, Rui Goncalves wrote:
> 
> 
> Please Help!
>  
> Bacula 1.38.2 on Linux RedHat.
>  
> During a bconsole restore a get this msg:
>  
> 26-Mar 17:48 lis-backup-sd: Please mount Volume "UG2027L1" on Storage 
> Device "Drive-1" (/dev/nst0) for Job RestoreFiles.2007-03-26_17.47.15
>  
> Then I give the command  mount storage= HP but the job ends with error.
>  
> The mount command is correct? If not which is the right form.
>  
> The required volume was loaded from autochanger (/dev/sg0) to the drive 
> (/dev/nst0)

According to your job output below, the SD could not use the device as 
expected.

I'd check that the tape you want to use really gets loaded and is 
usable. The output you present is a little unclear to me... the tape 
from slot 1 should be in Drive-1, but it can't be rewound. This might be 
a configuration problem (like you use a tape drive which is not in the 
autochanger you use, or you have the drive numbers / device names 
wrong), but it could also be a hardware problem.

Try, on the shell, the following: (unmount the device from Bacula first)
- use mtx to make sure tapes are loaded as expected.
- check that mtx-changer works as it should.
- Then, load the tae in question (from slot 1) using mtx-changer
- Try to get the drive status using mt: 'mt -f /dev/nst0 status'
- Check for errors in the system log

Arno

> Thanks for the help.
>  
> Rui Goncalves
>  
> 
> BACULA-DIR.conf CONFIGURATION
>  
> Storage {
>   Name = "HP"
>   Maximum Concurrent Jobs = 4
>   Device = Drive-1                      # must be same as Device in 
> Storage daemon
>   Media Type = DLT-8000
>   Address = lis-backup                # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "XXXXXXX"          # password for Storage daemon
>   AutoChanger = yes            
> }
>  
> 
> BACULA-SD.CONF CONFUGURATION
>  
> Autochanger {
>   Name = Autochanger
>   Device = Drive-1
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg0
> }
>  
> Device {
>   Name = Drive-1                      #
>   Drive Index = 0
>   Media Type = DLT-8000
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
> #  # Enable the Alert command only if you have the mtx package loaded
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>  
> ============== bconsole EXECUTION LOG
>  
> *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): 3
>  
> Enter JobId(s), comma separated, to restore: 7235
> You have selected the following JobId: 7235
>  
> Building directory tree for JobId 7235 ...  
> ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 Job, 7,650 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
> C:/
> K:/
> $ cd K:/
> cwd is: K:/
> $ ls
> 40abda4f950fb75ba5/
> System Volume Information
> $ mark *
> 3 files marked.
> $ lsmark
> *40abda4f950fb75ba5/
> *%temp%dd_msxml_retMSI.txt
> *System Volume Information
> $
>  
> 
> Bootstrap records written to 
> /var/bacula/working/lis-backup-dir.restore.*Console*.2007-03-26_17.42.12.bsr 
> 
>  
> The job will require the following Volumes:
>  
>    UG2027L1
>  
> 
> 3 files selected to be restored.
>  
> Defined Clients:
>      1: lis-backup-fd
>      2: ffranco-fd
>      3: matou-fd
>      4: rg-fd
>      5: mail-fd
>      6: fileserver-fd
>      7: egtfilesrv-fd
>      8: lxdc-fd
>      9: clp-0937-fd
>     10: clp-0961-fd
>     11: proxy-fd
>     12: clp-0967-fd
>     13: lxmail-fd
>     14: printserver-fd
>     15: dezdc-fd
>     16: logtec-fd
>     17: owa-fd
>     18: mssql-fd
>     19: compta-vpn-fd
>     20: faxserver-fd
>     21: remedy-fd
>     22: dnsdominio-fd
>     23: smtp-fd
>     24: www-fd
>     25: websweeper-fd
>     26: clp-0915-fd
>     27: asterix-fd
>     28: cluster2-fd
>     29: cluster1-fd
>     30: clp1080-fd
>     31: clp1079-fd
> Select the Client (1-31): 24
>  
> Run Restore job
> JobName:    RestoreFiles
> Bootstrap:  
> /var/bacula/working/lis-backup-dir.restore.*Console*.2007-03-26_17.42.12.bsr
> Where:      /tmp/bacula-restores
> Replace:    always
> FileSet:    CatalogSet
> Client:     www-fd
> Storage:    HP
> When:       2007-03-26 17:45:37
> 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): 9
> Please enter path prefix for restore (/ for none): K:/
> Run Restore job
> JobName:    RestoreFiles
> Bootstrap:  
> /var/bacula/working/lis-backup-dir.restore.*Console*.2007-03-26_17.42.12.bsr
> Where:      K:/
> Replace:    always
> FileSet:    CatalogSet
> Client:     www-fd
> Storage:    HP
> When:       2007-03-26 17:45:37
> Catalog:    MyCatalog
> Priority:   10
> OK to run? (yes/mod/no): yes
>  
> Job started. JobId=7342
> *
> You have messages.
> *messages
> 26-Mar 17:47 lis-backup-dir: Start Restore Job 
> RestoreFiles.2007-03-26_17.47.15
> 26-Mar 17:47 lis-backup-sd: 3301 Issuing autochanger "loaded drive 0" 
> command.
> 26-Mar 17:47 lis-backup-sd: 3302 Autochanger "loaded drive 0", result: 
> nothing loaded.
> 26-Mar 17:47 lis-backup-sd: RestoreFiles.2007-03-26_17.47.15 Warning: 
> acquire.c:230 Couldn't rewind device "Drive-1" (/dev/nst0): 
> ERR=dev.c:689 Rewind error on "Drive-1" (/dev/nst0). ERR=No medium found.
>  
> 26-Mar 17:47 lis-backup-sd: 3301 Issuing autochanger "loaded drive 0" 
> command.
> 26-Mar 17:47 lis-backup-sd: 3302 Autochanger "loaded drive 0", result: 
> nothing loaded.
> 26-Mar 17:47 lis-backup-sd: 3304 Issuing autochanger "load slot 1, drive 
> 0" command.
>  
> You have messages.
> *messages
> 26-Mar 17:48 lis-backup-sd: 3305 Autochanger "load slot 1, drive 0", 
> status is OK.
> 26-Mar 17:48 lis-backup-sd: RestoreFiles.2007-03-26_17.47.15 Warning: 
> acquire.c:230 Couldn't rewind device "Drive-1" (/dev/nst0): 
> ERR=dev.c:689 Rewind error on "Drive-1" (/dev/nst0). ERR=No medium found.
>  
> 26-Mar 17:48 lis-backup-sd: Please mount Volume "UG2027L1" on Storage 
> Device "Drive-1" (/dev/nst0) for Job RestoreFiles.2007-03-26_17.47.15
>  
> *mount storage=HP
>  
> 3001 OK mount. Device="Drive-1" (/dev/nst0)
>  
> You have messages.
> *messages
> 26-Mar 17:49 lis-backup-sd: RestoreFiles.2007-03-26_17.47.15 Warning: 
> acquire.c:230 Couldn't rewind device "Drive-1" (/dev/nst0): 
> ERR=dev.c:689 Rewind error on "Drive-1" (/dev/nst0). ERR=No medium found.
>  
> 26-Mar 17:49 lis-backup-sd: 3301 Issuing autochanger "loaded drive 0" 
> command.
> 26-Mar 17:49 lis-backup-sd: 3302 Autochanger "loaded drive 0", result is 
> Slot 1.
> 26-Mar 17:49 lis-backup-sd: RestoreFiles.2007-03-26_17.47.15 Warning: 
> acquire.c:230 Couldn't rewind device "Drive-1" (/dev/nst0): 
> ERR=dev.c:689 Rewind error on "Drive-1" (/dev/nst0). ERR=No medium found.
>  
> 26-Mar 17:49 lis-backup-sd: Please mount Volume "UG2027L1" on Storage 
> Device "Drive-1" (/dev/nst0) for Job RestoreFiles.2007-03-26_17.47.15
>  
> 
> ================================STATUS STORAGE
>  
> *status
> Status available for:
>      1: Director
>      2: Storage
>      3: Client
>      4: All
> Select daemon type for status (1-4): 2
> Automatically selected Storage: HP
> Connecting to Storage daemon HP at lis-backup:9103
>  
> lis-backup-sd Version: 1.38.2 (20 November 2005) i686-pc-linux-gnu redhat
> Daemon started 23-Mar-07 18:39, 20 Jobs run since started.
>  
> Running Jobs:
> Full Restore job RestoreFiles JobId=7342 Volume="UG2027L1"
>     pool="Default" device=""Drive-1" (/dev/nst0)"
>     Files=0 Bytes=0 Bytes/sec=0
>     FDReadSeqNo=16 in_msg=15 out_msg=5 fd=7
> ====
>  
> Terminated Jobs:
>  JobId  Level   Files          Bytes Status   Finished        Name
> ======================================================================
>   7334  Incr         64    209,940,691 OK       25-Mar-07 18:00 cluster2
>   7332  Full   2,460,455 509,814,599,281 OK       25-Mar-07 18:24 clp-0915
>   7333  Full          1  1,846,453,253 OK       25-Mar-07 18:43 
> BackupCatalog
>   7335  Incr         39    232,405,418 OK       25-Mar-07 19:00 cluster1
>   7336  Full          1  1,846,381,557 OK       25-Mar-07 23:28 
> BackupCatalog
>   7337  Full        380 12,048,513,640 OK       26-Mar-07 04:22 cluster2
>   7338  Full        237 40,309,524,482 OK       26-Mar-07 05:58 cluster1
>   7339                0              0 Error    26-Mar-07 15:29 RestoreFiles
>   7340                0              0 Error    26-Mar-07 16:24 RestoreFiles
>   7341                0              0 Error    26-Mar-07 16:56 RestoreFiles
> ====
>  
> Device status:
> Autochanger "Autochanger" with devices:
>    "Drive-1" (/dev/nst0)
> Device "FileStorage" (/tmp) is not open or does not exist.
> Device "Drive-1" (/dev/nst0) open but no Bacula volume is mounted.
>     Device is BLOCKED waiting for media.
>     Slot 1 is loaded in drive 0.
>     Total Bytes Read=0 Blocks Read=0 Bytes/block=0
>     Positioned at File=0 Block=0
> ====
>  
> In Use Volume status:
>  
> =========================END STATUS
>  
>  
>  
> *mount storage=HP
>  
> 3001 OK mount. Device="Drive-1" (/dev/nst0)
> You have messages.
>  
> *messages
> 26-Mar 17:53 lis-backup-sd: RestoreFiles.2007-03-26_17.47.15 Warning: 
> acquire.c:230 Couldn't rewind device "Drive-1" (/dev/nst0): 
> ERR=dev.c:689 Rewind error on "Drive-1" (/dev/nst0). ERR=No medium found.
>  
> 26-Mar 17:53 lis-backup-sd: 3301 Issuing autochanger "loaded drive 0" 
> command.
> 26-Mar 17:53 lis-backup-sd: 3302 Autochanger "loaded drive 0", result is 
> Slot 1.
> 26-Mar 17:53 lis-backup-sd: RestoreFiles.2007-03-26_17.47.15 Fatal 
> error: acquire.c:264 Too many errors trying to mount device "Drive-1" 
> (/dev/nst0).
> 26-Mar 18:00 www-fd: RestoreFiles.2007-03-26_17.47.15 Fatal error: 
> ../../filed/job.c:1752 Bad response to Read Data command. Wanted 3000 OK 
> data
> , got 3000 error
>  
> 26-Mar 17:53 lis-backup-dir: RestoreFiles.2007-03-26_17.47.15 Error: 
> Bacula 1.38.2 (20Nov05): 26-Mar-2007 17:53:27
>   JobId:                  7342
>   Job:                    RestoreFiles.2007-03-26_17.47.15
>   Client:                 www-fd
>   Start time:             26-Mar-2007 17:47:17
>   End time:               26-Mar-2007 17:53:27
>   Files Expected:         3
>   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 ***
>  
> 26-Mar 17:53 lis-backup-dir: Begin pruning Jobs.
> 26-Mar 17:53 lis-backup-dir: No Jobs found to prune.
> 26-Mar 17:53 lis-backup-dir: Begin pruning Files.
> 26-Mar 17:53 lis-backup-dir: No Files found to prune.
> 26-Mar 17:53 lis-backup-dir: End auto prune.
>  
> */ Rui Gonçalves /*
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to