[Bacula-users] Bacula 5.0.3 doesn't restore client wndows xp on usb disk.

2011-08-30 Thread man_in_the_hill
Hi,

It's a new day for me ...

Pieter:
The files (directory structure) appeared in
C:mntbackupbaculairriscristal2-restores 

That's true and it was front of my eyes and I've never seen this directory at 
the root of windows  while I erase the history in the working directory for my 
test ...

Jeremy Maes:
My experience with bacula is that if it says it has restored the files
but you can't find them

It was really the case !

Konstantin Khomoutov:
If yes, this is wrong and you're missing an important idea about how
restoring works: when Bacula is told to restore one or more files, the
job not only specifies the fileset and the directory to restore, but
the *target* file daemon, and the directory to restore designates a
place on the *target* file daemon not on your director, your SD or
whatever. 

I think I missed this important works of the file daemon that is do all 
operations related to files ...
and also it is more logical to restore to the client ( to the system where it 
must be replaced files).
The "mod" option, I did not test, allows a great flexibility to redirect to any 
file daemon, among other things ...
I think I did well to write here !

Thank's a lot for this great help !

Steeve

+--
|This was sent by steevechar...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Schedules, Full runs and incremental runs

2011-08-30 Thread Eric Pratt
On Tue, Aug 30, 2011 at 2:02 AM, Christoph Weber  wrote:
> Hello Bacula-List,
>
> I've got a little problem with the understanding of schedules.
>
> I want Bacula to do a full backup once a month on specific dates, which
> is the monday followed on the last friday of a month, during normal
> week-days I want to have an incremental run.
>
> Schedule {                                 # optional
>   Name = vm-backup-incremental_schedule    # required
>   Run = Full jan 31 at 1:00
>   Run = Full feb 28 at 1:00
>   Run = Full mar 28 at 1:00
>   Run = Full may 02 at 1:00
>   Run = Full may 30 at 1:00
>   Run = Full jun 27 at 1:00
>   Run = Full aug 01 at 1:00
>   Run = Full aug 29 at 1:00
>   Run = Full oct 02 at 1:00
>   Run = Full oct 30 at 1:00
>   Run = Full nov 27 at 1:00
>   Run = Full jan 01 at 1:00
>   Run = Incremental mon-fri at 2:00
> }
>
> The problem is, that I have a full run and an incremental run scheduled
> on the same day, at 1:00 and 2:00 and the incremental run at 2:00 is not
> an increment of the 1:00 full backup, but an increment of the last
> incremental backup preceding the full backup.
>
> On the friday before the full tape backup with bacula, I run a VMware
> full backup which produces several big files, so I have a lot of new
> data (~1TB) which is now backuped twice with bacula, once with the full
> backup and once with the incremental backup.
>
> I could run the full backup one day before on sunday, but I cannot be
> sure that it'll be finished before the incremental backup on monday.
>
> So how can I achieve that the incremental run is an increment of the
> full backup and not of the last incremental run?
>
> regards,
> Christoph Weber

Try limiting the jobs that can run simultaneously.  If your
incremental is using the previous incremental as a baseline even
though it is scheduled after the full, it is probably because it is
kicking off before the full finishes and thus cannot use it as a
baseline.  If you limit the number of simultaneous jobs to 1, then the
full will finish before the incremental and will be used as the
baseline.

There are a number of ways to limit the number of jobs running or
writing to a given storage resource.  Use the one that best fits your
environment and you should be good to go.

Eric

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Need Help

2011-08-30 Thread John Drescher
> I´m dealing with my first Bacula installation. I have installed
> in one virtual server the full software and in another server everything
> regarding client. My question is how I make a relationship between the
> master and the client? what file I have to change? could you show me an
> example or something?
> Other doubt that I have, is there any possility of make a backup if the
> baculas server is not directly attach to the same datacenter that the client
> or there is any ip option?

Please read the manual. All of this is in there including examples.

http://bacula.org/en/?page=documentation

For you to backup more than the director machine you need to use an
external ip address instead of localhost or 127.0.0.1 for the SD
resource.

John

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Need Help

2011-08-30 Thread Konstantin Khomoutov
On Tue, 30 Aug 2011 12:10:08 -0300
Ignacio Cardona  wrote:

> I´m dealing with my first Bacula installation. I have
> installed in one virtual server the full software and in another
> server everything regarding client. My question is how I make a
> relationship between the master and the client? what file I have to
> change? could you show me an example or something?
Go to [1] and start with the "Bacula Components or Services" section.
After you understood how the Bacula components interact with each
other, move on to the configuration topics in that same manual.
In fact, reading this manual should have been the first step to carry
out, not installing the software.

Basically, the idea is that each pair of Bacula components which need
to interact between each other share a secret (a password) which is
unique for each pair, and each host in such a pair needs to know the
hostname or IP address and port of its peer.

> Other doubt that I have, is there any possility of make a backup if
> the baculas server is not directly attach to the same datacenter that
> the client or there is any ip option?
I'm not sure I parsed this correctly but as long as the Bacula
components which have to interact with each other have physical TCP
connectivity, there should no problems for them to interact provided
you configured them correctly.

1. http://www.bacula.org/5.0.x-manuals/en/main/main/index.html

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape drive/changer : Please help - going insane ...........

2011-08-30 Thread Jan Behrend
On Tue, 30 Aug 2011 04:34:00 -0700, morgan_cox wrote:
> Hi
>
> Just got this error when trying the fill test on the 2nd tape.
>
> 'dev open failed: dev.c:491 Unable to open device "LTO-4"
> (/dev/nst0): ERR=No medium found'

Hi,

I suspect you got your indexes messed up.
I.e.  You are loading drive 1 but try to read from drive 2.
Check the DriveIndex parameter in the Device section of your SD config.

Cheers Jan

-- 
MAX-PLANCK-INSTITUT fuer Radioastronomie
Jan Behrend - Rechenzentrum

Auf dem Huegel 69, D-53121 Bonn
Tel: +49 (228) 525 359, Fax: +49 (228) 525 229
jbehr...@mpifr-bonn.mpg.de http://www.mpifr-bonn.mpg.de

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Need Help

2011-08-30 Thread Ignacio Cardona
Dear all,
I´m dealing with my first Bacula installation. I have installed
in one virtual server the full software and in another server everything
regarding client. My question is how I make a relationship between the
master and the client? what file I have to change? could you show me an
example or something?
Other doubt that I have, is there any possility of make a backup if the
baculas server is not directly attach to the same datacenter that the client
or there is any ip option?
--
Gracias!
Saludos!´

Ignacio Ariel Cardona.
IT Consultant. (SAN & NAS Specialist)
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape drive/changer : Please help - going insane ...........

2011-08-30 Thread John Drescher
> Just got this error when trying the fill test on the 2nd tape.
>
> 'dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
> medium found'
>
> Since about March this year we have had a tape drive - a Neo 200s that I have 
> been (failing) trying to get working with (z)amanda and now bacula. I have 
> wasted many days of my life trying to get this to work - the best I got with 
> zamada was to do a single tape backup (multiple tapes again failed)
>
> I believe the issue is with the auto changer ???
>
> I am following the bacula guide : 
> http://www.bacula.org/5.0.x-manuals/en/problems/problems/Testing_Your_Tape_Drive.html
>
> I did the initial tests fine (Use tar to write to, then read from your drive: 
> )
>
> I also had success with
>
> ./btape -c bacula-sd.conf /dev/nst0
> test
> (this was 100% success)
>
> and
>
> ./btape -c bacula-sd.conf /dev/nst0
> auto
>
> - the results (of the auto) were
>
> --
> === Autochanger test ===
>
> 3301 Issuing autochanger "loaded" command.
> Slot 24 loaded. I am going to unload it.
> 3302 Issuing autochanger "unload 24 0" command.
> unload status=OK 0
> 3303 Issuing autochanger "load 1 0" command.
> 3303 Autochanger "load 1 0" status is OK.
> btape: btape.c:476 open device "LTO-4" (/dev/nst0): OK
> btape: btape.c:1562 Rewound "LTO-4" (/dev/nst0)
> btape: btape.c:1569 Wrote EOF to "LTO-4" (/dev/nst0)
>
> The test autochanger worked!!
> --
>
>
> However when I tried the fill test it successfully did the first tape, when 
> it tried to go to the second I got
>
> --
> 14:04:13 Flush block, write EOF
> Wrote block=12605000, file,blk=812,14483 VolBytes=811,882,423,296 rate=54.28 
> MB/s
> Wrote block=1261, file,blk=813,3983 VolBytes=812,204,983,296 rate=54.27 
> MB/s
> Wrote block=12615000, file,blk=813,8983 VolBytes=812,527,543,296 rate=54.28 
> MB/s
> Wrote block=1262, file,blk=813,13983 VolBytes=812,850,103,296 rate=54.28 
> MB/s
> 26-Aug 14:04 btape JobId 0: End of Volume "TestVolume1" at 814:1 on device 
> "LTO-4" (/dev/nst0). Write of 64512 bytes got -1.
> 26-Aug 14:04 btape JobId 0: Re-read of last block succeeded.
> btape: btape.c:2701 Last block at: 813:15500 this_dev_block_num=1
> btape: btape.c:2736 End of tape 814:0. Volume Bytes=812,948,032,512. Write 
> rate = 54.24 MB/s
> 26-Aug 14:04 btape JobId 0: End of medium on Volume "TestVolume1" 
> Bytes=812,948,032,512 Blocks=12,601,501 at 26-Aug-2011 14:04.
> 26-Aug 14:04 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" 
> command.
> 26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" 
> command.
> 26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: 
> nothing loaded.
> btape: btape.c:3061 Autochanger returned: -1
> Mount blank Volume on device "LTO-4" (/dev/nst0) and press return when ready: 
> btape: btape.c:3066
> 26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" 
> command.
> 26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: 
> nothing loaded.
> 26-Aug 14:05 btape: Fatal Error at device.c:298 because:
> dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
> medium found
>
> btape: btape.c:506 Device open failed. ERR=dev.c:491 Unable to open device 
> "LTO-4" (/dev/nst0): ERR=No medium found
>
> 26-Aug 14:05 btape: ABORTING due to ERROR in dev.c:782
> dev.c:781 Bad call to rewind. Device "LTO-4" (/dev/nst0) not open
> Bacula interrupted by signal 11: Segmentation violation
> Kaboom! btape, btape got signal 11 - Segmentation violation. Attempting 
> traceback.
> Kaboom! exepath=/root
> Calling: /root/btraceback /root/btape 17537 /tmp
> execv: /root/btraceback failed: ERR=No such file or directory
> It looks like the traceback worked ...
> Dumping: /tmp/btape.17537.bactrace
> btape: lockmgr.c:909 lockmgr disabled
> [root@tapedrivetest ~]# btape -c bacula-sd.conf /dev/nst0
> Tape block granularity is 1024 bytes.
> btape: butil.c:285 Using device: "/dev/nst0" for writing.
> 26-Aug 14:21 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" 
> command.
> 26-Aug 14:21 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: 
> nothing loaded.
> 26-Aug 14:21 btape: Fatal Error at device.c:298 because:
> dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
> medium found
>
> 26-Aug 14:21 btape JobId 0: Fatal error: butil.c:194 Cannot open "LTO-4" 
> (/dev/nst0)
>
> --
>
> And now I get errors accessing the tape drive
>
> i.e :-
>
> ---
> mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=-1, block number=-1, partition=0.
> Tape block size 0 bytes. Density code 0x0 (default).
> Soft error count since last status=0
> General status bits on (5):
> DR_OPEN IM_REP_EN
> ---
>
> Also now when trying the initial test I get
>
> ---
> btape -c /etc/bacula/bacula-sd.conf /dev/nst0
> Tape block granularity is 1024 bytes.
> btape: 

[Bacula-users] Tape drive/changer : Please help - going insane ...........

2011-08-30 Thread morgan_cox
Hi

Just got this error when trying the fill test on the 2nd tape.

'dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
medium found'

Since about March this year we have had a tape drive - a Neo 200s that I have 
been (failing) trying to get working with (z)amanda and now bacula. I have 
wasted many days of my life trying to get this to work - the best I got with 
zamada was to do a single tape backup (multiple tapes again failed)

I believe the issue is with the auto changer ???

I am following the bacula guide : 
http://www.bacula.org/5.0.x-manuals/en/problems/problems/Testing_Your_Tape_Drive.html

I did the initial tests fine (Use tar to write to, then read from your drive: )

I also had success with

./btape -c bacula-sd.conf /dev/nst0
test
(this was 100% success)

and

./btape -c bacula-sd.conf /dev/nst0
auto

- the results (of the auto) were

--
=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 24 loaded. I am going to unload it.
3302 Issuing autochanger "unload 24 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
btape: btape.c:476 open device "LTO-4" (/dev/nst0): OK
btape: btape.c:1562 Rewound "LTO-4" (/dev/nst0)
btape: btape.c:1569 Wrote EOF to "LTO-4" (/dev/nst0)

The test autochanger worked!!
--


However when I tried the fill test it successfully did the first tape, when it 
tried to go to the second I got

--
14:04:13 Flush block, write EOF
Wrote block=12605000, file,blk=812,14483 VolBytes=811,882,423,296 rate=54.28 
MB/s
Wrote block=1261, file,blk=813,3983 VolBytes=812,204,983,296 rate=54.27 MB/s
Wrote block=12615000, file,blk=813,8983 VolBytes=812,527,543,296 rate=54.28 MB/s
Wrote block=1262, file,blk=813,13983 VolBytes=812,850,103,296 rate=54.28 
MB/s
26-Aug 14:04 btape JobId 0: End of Volume "TestVolume1" at 814:1 on device 
"LTO-4" (/dev/nst0). Write of 64512 bytes got -1.
26-Aug 14:04 btape JobId 0: Re-read of last block succeeded.
btape: btape.c:2701 Last block at: 813:15500 this_dev_block_num=1
btape: btape.c:2736 End of tape 814:0. Volume Bytes=812,948,032,512. Write rate 
= 54.24 MB/s
26-Aug 14:04 btape JobId 0: End of medium on Volume "TestVolume1" 
Bytes=812,948,032,512 Blocks=12,601,501 at 26-Aug-2011 14:04.
26-Aug 14:04 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" 
command.
26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing 
loaded.
btape: btape.c:3061 Autochanger returned: -1
Mount blank Volume on device "LTO-4" (/dev/nst0) and press return when ready: 
btape: btape.c:3066
26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing 
loaded.
26-Aug 14:05 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
medium found

btape: btape.c:506 Device open failed. ERR=dev.c:491 Unable to open device 
"LTO-4" (/dev/nst0): ERR=No medium found

26-Aug 14:05 btape: ABORTING due to ERROR in dev.c:782
dev.c:781 Bad call to rewind. Device "LTO-4" (/dev/nst0) not open
Bacula interrupted by signal 11: Segmentation violation
Kaboom! btape, btape got signal 11 - Segmentation violation. Attempting 
traceback.
Kaboom! exepath=/root
Calling: /root/btraceback /root/btape 17537 /tmp
execv: /root/btraceback failed: ERR=No such file or directory
It looks like the traceback worked ...
Dumping: /tmp/btape.17537.bactrace
btape: lockmgr.c:909 lockmgr disabled
[root@tapedrivetest ~]# btape -c bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
26-Aug 14:21 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:21 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing 
loaded.
26-Aug 14:21 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
medium found

26-Aug 14:21 btape JobId 0: Fatal error: butil.c:194 Cannot open "LTO-4" 
(/dev/nst0)

--

And now I get errors accessing the tape drive

i.e :-

---
mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (5):
DR_OPEN IM_REP_EN
---

Also now when trying the initial test I get

---
btape -c /etc/bacula/bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
26-Aug 16:57 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
medium found

26-Aug 16:57 btape JobId 0: Fatal error: butil.c:

Re: [Bacula-users] Bacula 5.0.3 doesn't restore client wndows xp on usb disk.

2011-08-30 Thread Konstantin Khomoutov
On Mon, 29 Aug 2011 11:22:06 -0700
man_in_the_hill  wrote:

> I give you more informations about my conf and one job backup and one
> job restore.
[...]
> restore_job_by_bconsole (http://pastebin.com/W5qJP0py)
> 
> backup_folder_after_backup_and_restore_job
> (http://pastebin.com/mJaaaeWV)
[...]

It's still hard to make guesses in your case because you consistently
refrain from telling what is the expected outcome of your actions.
But since in the "backup_folder_after_backup_and_restore_job" snippet
you showed an empty "/mnt/backup/bacula/irris/cristal2-restores" folder
you supposedly wanted the restored files to appear there.

If yes, this is wrong and you're missing an important idea about how
restoring works: when Bacula is told to restore one or more files, the
job not only specifies the fileset and the directory to restore, but
the *target* file daemon, and the directory to restore designates a
place on the *target* file daemon not on your director, your SD or
whatever.

In the "restore_job_by_bconsole" snippet you can clearly see what is
the restore client for the job -- at line 75, and this is your Windows
FD. The "where" path gets interpreted relative to that machine's
%systemdrive% (as Pieter (NL) already showed you).

Hence if you want to restore some files from that client's backup
somewhere *not* on that client itself, specify the "Restore client" to
be another FD (but this has to be FD).  It worth repeating that the
"Where" parameter of the restore job is interpreted relative to the
target FD.  You can change any parameter of a restore job about to be
run by selecting "mod" instead of "yes" (see line 81).

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Schedules, Full runs and incremental runs

2011-08-30 Thread Christoph Weber
Hello Bacula-List,

I've got a little problem with the understanding of schedules.

I want Bacula to do a full backup once a month on specific dates, which 
is the monday followed on the last friday of a month, during normal 
week-days I want to have an incremental run.

Schedule { # optional
   Name = vm-backup-incremental_schedule# required
   Run = Full jan 31 at 1:00
   Run = Full feb 28 at 1:00
   Run = Full mar 28 at 1:00
   Run = Full may 02 at 1:00
   Run = Full may 30 at 1:00
   Run = Full jun 27 at 1:00
   Run = Full aug 01 at 1:00
   Run = Full aug 29 at 1:00
   Run = Full oct 02 at 1:00
   Run = Full oct 30 at 1:00
   Run = Full nov 27 at 1:00
   Run = Full jan 01 at 1:00
   Run = Incremental mon-fri at 2:00
}

The problem is, that I have a full run and an incremental run scheduled 
on the same day, at 1:00 and 2:00 and the incremental run at 2:00 is not 
an increment of the 1:00 full backup, but an increment of the last 
incremental backup preceding the full backup.

On the friday before the full tape backup with bacula, I run a VMware 
full backup which produces several big files, so I have a lot of new 
data (~1TB) which is now backuped twice with bacula, once with the full 
backup and once with the incremental backup.

I could run the full backup one day before on sunday, but I cannot be 
sure that it'll be finished before the incremental backup on monday.

So how can I achieve that the incremental run is an increment of the 
full backup and not of the last incremental run?

regards,
Christoph Weber

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] ERR=dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR

2011-08-30 Thread morgan_cox
am following the bacula guide : 
http://www.bacula.org/5.0.x-manuals/en/problems/problems/Testing_Your_Tape_Drive.html

I did the initial tests fine (Use tar to write to, then read from your drive: )

I also had success with

./btape -c bacula-sd.conf /dev/nst0
test
(this was 100% success)

and

./btape -c bacula-sd.conf /dev/nst0
auto

- the results (of the auto) were

--
=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 24 loaded. I am going to unload it.
3302 Issuing autochanger "unload 24 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
btape: btape.c:476 open device "LTO-4" (/dev/nst0): OK
btape: btape.c:1562 Rewound "LTO-4" (/dev/nst0)
btape: btape.c:1569 Wrote EOF to "LTO-4" (/dev/nst0)

The test autochanger worked!!
--


However when I tried the fill test it successfully did the first tape, when it 
tried to go to the second I got

--
14:04:13 Flush block, write EOF
Wrote block=12605000, file,blk=812,14483 VolBytes=811,882,423,296 rate=54.28 
MB/s
Wrote block=1261, file,blk=813,3983 VolBytes=812,204,983,296 rate=54.27 MB/s
Wrote block=12615000, file,blk=813,8983 VolBytes=812,527,543,296 rate=54.28 MB/s
Wrote block=1262, file,blk=813,13983 VolBytes=812,850,103,296 rate=54.28 
MB/s
26-Aug 14:04 btape JobId 0: End of Volume "TestVolume1" at 814:1 on device 
"LTO-4" (/dev/nst0). Write of 64512 bytes got -1.
26-Aug 14:04 btape JobId 0: Re-read of last block succeeded.
btape: btape.c:2701 Last block at: 813:15500 this_dev_block_num=1
btape: btape.c:2736 End of tape 814:0. Volume Bytes=812,948,032,512. Write rate 
= 54.24 MB/s
26-Aug 14:04 btape JobId 0: End of medium on Volume "TestVolume1" 
Bytes=812,948,032,512 Blocks=12,601,501 at 26-Aug-2011 14:04.
26-Aug 14:04 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" 
command.
26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing 
loaded.
btape: btape.c:3061 Autochanger returned: -1
Mount blank Volume on device "LTO-4" (/dev/nst0) and press return when ready: 
btape: btape.c:3066
26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing 
loaded.
26-Aug 14:05 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
medium found

btape: btape.c:506 Device open failed. ERR=dev.c:491 Unable to open device 
"LTO-4" (/dev/nst0): ERR=No medium found

26-Aug 14:05 btape: ABORTING due to ERROR in dev.c:782
dev.c:781 Bad call to rewind. Device "LTO-4" (/dev/nst0) not open
Bacula interrupted by signal 11: Segmentation violation
Kaboom! btape, btape got signal 11 - Segmentation violation. Attempting 
traceback.
Kaboom! exepath=/root
Calling: /root/btraceback /root/btape 17537 /tmp
execv: /root/btraceback failed: ERR=No such file or directory
It looks like the traceback worked ...
Dumping: /tmp/btape.17537.bactrace
btape: lockmgr.c:909 lockmgr disabled
[root@tapedrivetest ~]# btape -c bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
26-Aug 14:21 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:21 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing 
loaded.
26-Aug 14:21 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
medium found

26-Aug 14:21 btape JobId 0: Fatal error: butil.c:194 Cannot open "LTO-4" 
(/dev/nst0)

--

And now I get errors accessing the tape drive

i.e :-

---
mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (5):
DR_OPEN IM_REP_EN
---

Also now when trying the initial test I get

---
btape -c /etc/bacula/bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
26-Aug 16:57 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No 
medium found

26-Aug 16:57 btape JobId 0: Fatal error: butil.c:194 Cannot open "LTO-4" 
(/dev/nst0)
---

Is this due to no tape ? If so why, shouldn't the changer take care of this ?

If it helps here is my bacula-sd.conf

-
Device {
Name = LTO-4
Media Type = LTO-4
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
# Maximum File Size = 5GB
#Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg1
#AutoChanger = yes
# # Enable the Alert com

Re: [Bacula-users] Bacula 5.0.3 doesn't restore client wndows xp on usb disk.

2011-08-30 Thread Jeremy Maes

Op 30/08/2011 9:13, Pieter (NL) schreef:


kollerholm wrote:

Hi,

I give you more informations about my conf and one job backup and one job
restore.

...
Log bacula-dir.log ( I removed a lot of lines with the functions
sql_create.c and getmsg.c)
bacula-dir.log (http://pastebin.com/RAgD8XBp)

After these tests where I found no error, I am always in the same
situation, the restoration is done as well bacula but no files in the
folder!

I try to give you the maximum informations !

Thank for your help .

Steeve CHARLES



Did a restore on my windows system.
Used /mnt/backup/bacula/irris/cristal2-restores as my restore location
The files (directory structure) appeared in
C:\mnt\backup\bacula\irris\cristal2-restores\

Pieter
As Pieter points out, did you check for the files on your linux server 
that hosts the director, or did you check on the windows machine?
By default a restore will always run to the client where the backup was 
take, so in this case as your bconsole restore logs say: /Restore 
Client:  vm-lespointus-fd/


If you want to restore to your linux machine itself you'll have to mod 
the job to restore to the bacula FD on your linux box.


Jeremy

 DISCLAIMER 
http://www.schaubroeck.be/maildisclaimer.htm
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 5.0.3 doesn't restore client wndows xp on usb disk.

2011-08-30 Thread Pieter (NL)


kollerholm wrote:
> 
> Hi,
> 
> I give you more informations about my conf and one job backup and one job
> restore.
> 
> bacula-dir.conf (http://pastebin.com/d8bK5nsy)
> 
> bacula-sd.conf (http://pastebin.com/5g0B3f8Z)
> 
> bacula-fd.conf_windows_xp (http://pastebin.com/cx7H9Jhd)
> 
> bacula-fd.conf_debian (http://pastebin.com/PNpp4H30)
> 
> run_job_by_bconsole (http://pastebin.com/tUXNj1yM)
> 
> restore_job_by_bconsole (http://pastebin.com/W5qJP0py)
> 
> backup_folder_after_backup_and_restore_job (http://pastebin.com/mJaaaeWV)
> 
> Running Job backup on windows xp:
>  (http://imageshack.us/photo/my-images/51/runningjobxp.png/)
> 
> Job backup windows finish:
>  (http://imageshack.us/photo/my-images/705/finaljob.png/)
> 
> Job restore finish:
>  (http://imageshack.us/photo/my-images/823/restorejobfinish.png/)
> 
> Log bacula-sd.conf:
> bacula-sd.log (http://pastebin.com/rP2HNcMh)
> 
> Log bacula-dir.log ( I removed a lot of lines with the functions 
> sql_create.c and getmsg.c)
> bacula-dir.log (http://pastebin.com/RAgD8XBp)
> 
> After these tests where I found no error, I am always in the same
> situation, the restoration is done as well bacula but no files in the
> folder!
> 
> I try to give you the maximum informations !
> 
> Thank for your help .
> 
> Steeve CHARLES
> 
> 

Did a restore on my windows system.
Used /mnt/backup/bacula/irris/cristal2-restores as my restore location
The files (directory structure) appeared in
C:\mnt\backup\bacula\irris\cristal2-restores\

Pieter

-- 
View this message in context: 
http://old.nabble.com/Bacula-5.0.3-doesn%27t-restore-client-wndows-xp-on-usb-disk.-tp32353473p32362274.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users