[Bacula-users] DB Error: insufficient permissions

2007-12-18 Thread rahul awasthi
Hi all 
 I am new user of bacula,
 I have installed bacula2.2.6 on RHEL4, along with the bacula-gui, 
 I installed these and created the database by running the scripts,
 then i opened test.php on the browser, it runs fine,
 but when i tried index.php, following error message displayed
 
 "DB Error: insufficient permissions"
 
 I would like to know, wher did i went wrong and how could this be resolved.
 
 regards 
 Rahul
   
-
Never miss a thing.   Make Yahoo your homepage.-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Win32 Bacula Client, memory leak?

2007-12-18 Thread Falk Sauer
Hi Michael,

On Dienstag 18 Dezember 2007 23:46:26 wrote:
> Hey guys, over the past week I have been attempting to restore to a
> windows client with 512mb ram and no pagefile only to be frustrated
> with "There is not enough storage to complete this operation". After
> some searches this error seems to mean I've run out of memory! This is
> a virtual machine with plenty of disk space and there is no reason
> Bacula needs 400+mb of memory to transfer some 80GB of files over the
> network.
>
> Monitoring the task manager through the process (after I upgraded the
> machine to handle Bacula's memory appetite) revealed that Bacula's
> memory usage continues to grow in size during the restore, finally
> releasing the 400MB of ram used when the restore is finished. Perhaps
> someone could take a gander at why this is happening?

can you please write which version of bacula and windows you use?
The other guys here with programming skills on bacula need this information to 
give you some explanations!

btw: for workaround is it surely possible to add temporary a bit of ram or a  
pagefile on a new virtual disk ... if really no disk space in the machine 
over iscsi ...
Before you ask, the SLES10-SP1 has a iscsi target on board and a yast module 
to configure them. The client for win>=2k can you find under   
http://www.microsoft.com/downloads/details.aspx?familyid=12cb3c1a-15d6-4585-b385-befd1319f825&displaylang=en
or with 'windows iscsi initiator' in your preferred search machine.

Regards
   Falk


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Win32 Bacula Client, memory leak?

2007-12-18 Thread Michael Short
Hey guys, over the past week I have been attempting to restore to a
windows client with 512mb ram and no pagefile only to be frustrated
with "There is not enough storage to complete this operation". After
some searches this error seems to mean I've run out of memory! This is
a virtual machine with plenty of disk space and there is no reason
Bacula needs 400+mb of memory to transfer some 80GB of files over the
network.

Monitoring the task manager through the process (after I upgraded the
machine to handle Bacula's memory appetite) revealed that Bacula's
memory usage continues to grow in size during the restore, finally
releasing the 400MB of ram used when the restore is finished. Perhaps
someone could take a gander at why this is happening?

Cheers,
-Michael

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] A script to evenly distribute files among jobs?

2007-12-18 Thread Falk Sauer
Hi Gary,

On Dienstag 18 Dezember 2007 21:43:01 wrote:
> I am sure SOMEONE here has come across this scenario. I have a
> top-level directory that is ~21 TB. In it are 391 other directories
> making up that 21 TB. Unfortunately, one of them alone is 15 TB. My
> goal is to split the directories somewhat evenly four ways so that
> each tape drive is backing up the same amount of space.
>
> Has anyone written or found a script that can take a huge directory
> full of subdirectories and break it apart evenly?

I haven't a script only few ideas to write one ...

1. imho is the only way to know how big is a subdir 'du -sh /dir/subdir' or a 
similiar function in perl or whatever.
2. the time to compute this information is imho not evenly to solve.
3. the performance from the backup machine in backup time frame is needed to 
backup not to compute any additional infos.
4. imho is the dir-size not s dymanically that you real need to compute 
this evenly.

If 1..4 true you can setup a 'du -sk /dir/* >sizes.txt' job with a very 
friendly nice level and then you can generate a couple (drivecount) of 
fileset definitions wich you can include in your dir.conf. 

The biggest Problem is that you can then only make full backups after changing 
the fileset definitions. In other words every time if you change the fileset 
for a job, the job will be upgraded to a full backup ...   

I think this is not the right way to do this, only if you make the 
compute/fileset-change before you plan a regular full backup is it a 
possibility.

The only way to resolve this issue is imho a set of jobs (one per subdir or 
little group of subdirs) and start all of them with 'maximum concurrent jobs 
= drivecount' into one pool or one pool per drive/job. With this strategy 
makes bacula that balancing for you without any computing outside from 
bacula. The biggest one should be in the front of the job definitions, the 
others raw ordered by size, he is the first one should be started.  

i hope you understand my bad english, if not please feel free to ask.

Regards
   Falk


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Migration headaches

2007-12-18 Thread David Gardner
Had to eject the tape the re-insert the cartridge for Bacula to decide to 
overwrite the tape. Bacula seems to be happily re-writing the tape.

In the meantime, I am restoring my previous configuration.

Final question...once the migration is complete, can I then move the tape back 
into my "Weekly" pool and attempt restores from it?
 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
"Everything is a learning experience, even a mistake."

- Original Message 
From: David Gardner <[EMAIL PROTECTED]>
To: Bacula users list 
Sent: Tuesday, December 18, 2007 12:48:33 PM
Subject: [Bacula-users] Migration headaches


Hey gang,

Now this migration is becoming a headache.

I reread the migration section of the manual and though it does not 
specifically say "Do not migrate within a pool!", it does discourage the act. 
With that, I created the "Tape" pool  and moved one of my tapes from the Weekly 
pool into the "Tape" pool and the source job to the "Default" pool. I updated 
the volume status of the source to "Full" and the Volume retention time of the 
target volume (tape) to 1 hour. The source job is no longer in the pool to 
which it was directed so I modified the original job to look there.

DAMN! This is getting to be to much trouble to simply move a 25GB backup to a 
tape...(but I bristle, back to the explanation at hand.)

When I run the migration now, bconsole complains that the
 Weekly pool has no "Next Pool" statement. I thought I was migrating from the 
Default pool...whatever, I inserted a "Next Pool" statement pointing at the 
"Tape" pool and bconsole seems happy. It's been more than an hour since the 
tape was last used so why if the migration appending to the tape instead of 
overwriting?

Note to self, if the backup fails to start...terminate it. It may be easier to 
restore...or will it given the above gyrations.

-=-=-=-==-=-=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-





*list volumes
Pool: Default
+-+--+---+-++--+--+-+--+---+---+-+
| MediaId | VolumeName   | VolStatus | Enabled | VolBytes   | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-+--+---+-++--+--+-+--+---+---+-+
|   5 | TempBU   | Error |   1 | 17,825,502 |0 |
1 |   1 |0
 | 0 | File  | 2007-12-15 12:07:02 |
|  44 | Default1 | Append|   1 | 25,676,270,410 |5 |   
31,536,000 |   1 |0 | 0 | File  | 2007-12-16 13:42:15 |
|  45 | fWeekly-0001 | Full  |   1 | 18,998,783,486 |4 |
2,937,600 |   1 |0 | 0 | File  | 2007-12-18 00:14:21
 |
+-+--+---+-++--+--+-+--+---+---+-+
<...snip...>
Pool: WeeklyPool
+-+-+---+-++--+--+-+--+---+---+-+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes   | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-+-+---+-++--+--+-+--+---+---+-+
|  21 | Weekly-0001 | Purged|   1 | 32,992,985,088 |   35
 |1 |   1 |0 | 0 | DAT-72| 2007-11-23 09:00:17 |
|  30 | Weekly-0003 | Purged|   1 | 17,285,087,232 |   21 | 
   1 |   1 |0 | 0 | DAT-72| 2007-12-14 07:08:04 |
|  32 | Weekly-0004 | Append|   1 |  1,764,532,224 |3 | 
   1 |   1 |0
 | 0 | DAT-72| 2007-12-14 18:41:31 |
+-+-+---+-++--+--+-+--+---+---+-+
<...snip...>
Pool: Tape
+-+-+---+-++--+--+-+--+---+---+-+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes   | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-+-+---+-++--+--+-+--+---+---+-+
|  27 | Weekly-0002 | Append|   1 |
 33,037,949,952 |   37 |1 |   1 |0 | 0 | DAT-72 
   | 2007-12-14 11:57:43 |
+-+-+---+-++--+--+-+--+---+

[Bacula-users] Migration headaches

2007-12-18 Thread David Gardner
Hey gang,

Now this migration is becoming a headache.

I reread the migration section of the manual and though it does not 
specifically say "Do not migrate within a pool!", it does discourage the act. 
With that, I created the "Tape" pool  and moved one of my tapes from the Weekly 
pool into the "Tape" pool and the source job to the "Default" pool. I updated 
the volume status of the source to "Full" and the Volume retention time of the 
target volume (tape) to 1 hour. The source job is no longer in the pool to 
which it was directed so I modified the original job to look there.

DAMN! This is getting to be to much trouble to simply move a 25GB backup to a 
tape...(but I bristle, back to the explanation at hand.)

When I run the migration now, bconsole complains that the Weekly pool has no 
"Next Pool" statement. I thought I was migrating from the Default 
pool...whatever, I inserted a "Next Pool" statement pointing at the "Tape" pool 
and bconsole seems happy. It's been more than an hour since the tape was last 
used so why if the migration appending to the tape instead of overwriting?

Note to self, if the backup fails to start...terminate it. It may be easier to 
restore...or will it given the above gyrations.

-=-=-=-==-=-=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-





*list volumes
Pool: Default
+-+--+---+-++--+--+-+--+---+---+-+
| MediaId | VolumeName   | VolStatus | Enabled | VolBytes   | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-+--+---+-++--+--+-+--+---+---+-+
|   5 | TempBU   | Error |   1 | 17,825,502 |0 |
1 |   1 |0 | 0 | File  | 2007-12-15 12:07:02 |
|  44 | Default1 | Append|   1 | 25,676,270,410 |5 |   
31,536,000 |   1 |0 | 0 | File  | 2007-12-16 13:42:15 |
|  45 | fWeekly-0001 | Full  |   1 | 18,998,783,486 |4 |
2,937,600 |   1 |0 | 0 | File  | 2007-12-18 00:14:21 |
+-+--+---+-++--+--+-+--+---+---+-+
<...snip...>
Pool: WeeklyPool
+-+-+---+-++--+--+-+--+---+---+-+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes   | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-+-+---+-++--+--+-+--+---+---+-+
|  21 | Weekly-0001 | Purged|   1 | 32,992,985,088 |   35 | 
   1 |   1 |0 | 0 | DAT-72| 2007-11-23 09:00:17 |
|  30 | Weekly-0003 | Purged|   1 | 17,285,087,232 |   21 | 
   1 |   1 |0 | 0 | DAT-72| 2007-12-14 07:08:04 |
|  32 | Weekly-0004 | Append|   1 |  1,764,532,224 |3 | 
   1 |   1 |0 | 0 | DAT-72| 2007-12-14 18:41:31 |
+-+-+---+-++--+--+-+--+---+---+-+
<...snip...>
Pool: Tape
+-+-+---+-++--+--+-+--+---+---+-+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes   | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-+-+---+-++--+--+-+--+---+---+-+
|  27 | Weekly-0002 | Append|   1 | 33,037,949,952 |   37 | 
   1 |   1 |0 | 0 | DAT-72| 2007-12-14 11:57:43 |
+-+-+---+-++--+--+-+--+---+---+-+
*run Veracruz-migrate
Run Migration job
JobName:   Veracruz-migrate
Bootstrap: *None*
Client:VERACRUZ-fd
FileSet:   VERACRUZ_BU
Pool:  Default (From Job resource)
Read Storage:  File (From Pool resource)
Write Storage: DAT72 (From Storage from Pool's NextPool resource)
JobId: *None*
When:  2007-12-18 12:12:57
Catalog:   MyCatalog
Priority:  10
OK to run? (yes/mod/no): yes
Job queued. JobId=215
You have messages.
*messages
18-Dec 12:13 DURANGO-dir JobId 215: The following 1 JobIds were chosen to be 
migrated: 202
18-Dec 12:13 DURANGO-dir JobId 215: Migration using JobId=202 
Job=VERACRUZ-Full.2007-12-17_18.15.18
18-Dec 12:13 DUR

[Bacula-users] A script to evenly distribute files among jobs?

2007-12-18 Thread Gary Danko
I am sure SOMEONE here has come across this scenario. I have a
top-level directory that is ~21 TB. In it are 391 other directories
making up that 21 TB. Unfortunately, one of them alone is 15 TB. My
goal is to split the directories somewhat evenly four ways so that
each tape drive is backing up the same amount of space.

Has anyone written or found a script that can take a huge directory
full of subdirectories and break it apart evenly?

Any help is appreciated!
Gary

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Catalog err

2007-12-18 Thread Arno Lehmann
Hi,

18.12.2007 19:36,, [EMAIL PROTECTED] wrote::
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> hi,
> I've try to configure the Catalog in bacula-dir.conf but I get this error:
> 
> 18-Dec 19:30 bacula-dir:  Fatal error: Version error for database
> "bacula". Wanted 9, got 0
> 18-Dec 19:30 bacula-dir:  Fatal error: Could not open Catalog
> "MyCatalog", database "bacula".
> 18-Dec 19:30 bacula-dir:  Fatal error: Version error for database
> "bacula". Wanted 9, got 0
> 18-Dec 19:30 bacula-dir ERROR TERMINATION
> Please correct configuration file: ./bacula-dir.conf

This looks like you didn't populate the catalog, or if Bacula does not 
have the necessary permissions to actually access the data in it.

How did you install Bacula? - From rpms, compiling yourself, however?

Also it might help if you told us which OS and which version of Bacula 
(or which packages) this is...

Arno

> 
> 
> And this is the section about the Catalog:
> 
> 
> Catalog {
>   Name = MyCatalog
>   dbname = bacula ;
>   user = clown ;
>   DB Address = localhost
>   password = "" # just for now
>   DB Port= 5432
> }
> ###
> 
> I use Debian 4.0 , Postgres8.1 what wrong ?
> tnx
> 
> - --
> samba
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFHaBMplyacIe+v3xcRAu0TAJ4tXNTAZof3isC+yelBZWtQNazNwACgh4eV
> lAYl1uU+T0B1yB65JNG+Icw=
> =fZlm
> -END PGP SIGNATURE-
> 
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Catalog err

2007-12-18 Thread [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi,
I've try to configure the Catalog in bacula-dir.conf but I get this error:

18-Dec 19:30 bacula-dir:  Fatal error: Version error for database
"bacula". Wanted 9, got 0
18-Dec 19:30 bacula-dir:  Fatal error: Could not open Catalog
"MyCatalog", database "bacula".
18-Dec 19:30 bacula-dir:  Fatal error: Version error for database
"bacula". Wanted 9, got 0
18-Dec 19:30 bacula-dir ERROR TERMINATION
Please correct configuration file: ./bacula-dir.conf


And this is the section about the Catalog:


Catalog {
  Name = MyCatalog
  dbname = bacula ;
  user = clown ;
  DB Address = localhost
  password = "" # just for now
  DB Port= 5432
}
###

I use Debian 4.0 , Postgres8.1 what wrong ?
tnx

- --
samba
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaBMplyacIe+v3xcRAu0TAJ4tXNTAZof3isC+yelBZWtQNazNwACgh4eV
lAYl1uU+T0B1yB65JNG+Icw=
=fZlm
-END PGP SIGNATURE-

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] migrate question

2007-12-18 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If you check the manual, you will see you must migrate to a different
pool. If my reading of that section was incorrect, please someone let me
know.

David Gardner wrote:
> hey gang,
> 
> I ran a job last night that inadvertantly went to "file" instead of
> "DAT72." I want to migrate that job in the WeeklyPool to the file
> fWeekly-0001 to "DAT72" in the WeeklyPool to tape Weekly-0002 (or
> whichever tape is mounted) with the following job:
> 
> # Associate VERACRUZ's files with the VERACRUZ server
> Job {
> Name = "VERACRUZ-Full"
> JobDefs = "DefaultJob"
> Client = "VERACRUZ-fd"
> FileSet = "VERACRUZ_BU"
> Schedule = "Veracruz-WeeklyCycle"
> Write Bootstrap = "/var/bacula/working/VERACRUZ.bsr"
> SpoolData = yes
> }
> 
> # Migrate Weekly file jobs to tape
> Job {
> Name = "Veracruz-migrate"
> Level = Full
> Client = "VERACRUZ-fd"
> FileSet = "VERACRUZ_BU"
> Selection Type = Job
> Selection Pattern = "fWeekly-*"
> 
> Maximum Concurrent Jobs = 4
> Type = Migrate
> Storage = DAT72
> Pool = WeeklyPool
> Messages = Standard
> }
> 
> When I run the job, I get the following error message:
> *messages
> 18-Dec 09:39 DURANGO-dir JobId 0: Fatal error: No Next Pool
> specification found in Pool "WeeklyPool".
> 
> 
> A little please.
>  
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> David Gardner
> email: djgardner(at)yahoo.com
> Yahoo! IM: djgardner
> AIM: dgardner09
>  
> "Everything is a learning experience, even a mistake."
> 
> 
> 
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
> 
> 
> 
> 
> 
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> 
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaAkomb+gadEcsb4RAvTxAJ4+bpUiYITrv+mia3PB3SFLWwDAvwCbBla+
OLB/tdz0uRDhvvIQX4m8Qwc=
=LYLN
-END PGP SIGNATURE-

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] migrate question

2007-12-18 Thread David Gardner
hey gang,

I ran a job last night that inadvertantly went to "file" instead of "DAT72." I 
want to migrate that job in the WeeklyPool to the file fWeekly-0001 to "DAT72" 
in the WeeklyPool to tape Weekly-0002 (or whichever tape is mounted) with the 
following job:

# Associate VERACRUZ's files with the VERACRUZ server
Job {
Name = "VERACRUZ-Full"
JobDefs = "DefaultJob"
Client = "VERACRUZ-fd"
FileSet = "VERACRUZ_BU"
Schedule = "Veracruz-WeeklyCycle"
Write Bootstrap = "/var/bacula/working/VERACRUZ.bsr"
SpoolData = yes
}

# Migrate Weekly file jobs to tape
Job {
Name = "Veracruz-migrate"
Level = Full
Client = "VERACRUZ-fd"
FileSet = "VERACRUZ_BU"
Selection Type = Job
Selection Pattern = "fWeekly-*"

Maximum Concurrent Jobs = 4
Type = Migrate
Storage = DAT72
Pool = WeeklyPool
Messages = Standard
}

When I run the job, I get the following error message:
*messages
18-Dec 09:39 DURANGO-dir JobId 0: Fatal error: No Next Pool specification found 
in Pool "WeeklyPool".


A little please.
 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
"Everything is a learning experience, even a mistake."





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] One other question...

2007-12-18 Thread John Drescher
On Dec 18, 2007 12:24 PM, Coser, Christopher D. (Mission Systems)
<[EMAIL PROTECTED]> wrote:
> One more question, do you happen to know if it is possible to restore
> files form only a backup volume if the SQL database or the bootstrap
> files have been lost?
>
Both are possible. Read up on the following section of the manual (and
possibly do some testing):

http://bacula.org/dev-manual/Restore_Command.html#database_restore

John

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Disappearing Backed up Files

2007-12-18 Thread John Drescher
On Dec 18, 2007 11:38 AM, Coser, Christopher D. (Mission Systems)
<[EMAIL PROTECTED]> wrote:
>
>
>
> Greetings,
>
> I'm administrating a development network for which I run Bacula as our
> backup system. I have recently noticed that when I attempt to restore files
> from bacula (through the console) from any backup jobs I have a problem. It
> seems the system knows that there have been files backed up but doesn't seem
> to know what they are. Does anybody have any ideas as to what might cause
> this? I have included some output from a restore attempt to illustrate the
> problem.
>
It could be your File Retention period has expired. Did you set one up
in your config files?

>
> 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: 1072
>  You have selected the following JobId: 1072
>
>  Building directory tree for JobId 1072 ...
>  1 Job, 34 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:/
>  $
>
Did you try to cd into c:/ ?

Did you do a mark * ?



John

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Tape testing

2007-12-18 Thread Nicki de Wet
Hi,

I'm configuring a Sony TSL A300C tape changer for use with bacula on 
FreeBSD, and got stuck on the tar test. It would make the backup, but is 
unable to list the backup contents with tar tf.

I've managed to use the sonytape utility to test the drive, and all 
tests completed successful. I also ran the btape test, without any 
problems whatsoever. The autochanger test also ran successfully, not 
that it matters at this stage.

In my mind this points to some flag that is not set correctly by tar, as 
the other tests work.

FreeBSD 6.2-RELEASE-p9 #0
bacula-client-2.2.5
bacula-server-2.2.5

I would really appreciate any pointers.

Regards,
Nicki

Here is the output of the tar test:

glf-bsd01# camcontrol devlist
 at scbus0 target 0 lun 0 (pass0,da0)
  at scbus3 target 8 lun 0 (pass1,sa0)
  at scbus3 target 8 lun 1 (pass2,ch0)

glf-bsd01# mtx status
  Storage Changer /dev/changer:1 Drives, 4 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded)
  Storage Element 1:Empty
  Storage Element 2:Full
  Storage Element 3:Full
  Storage Element 4:Full

glf-bsd01# mt rewind
glf-bsd01# mt erase 0
glf-bsd01# mt weof

glf-bsd01# tar cvf /dev/nsa0 .
a .
a sonytape
a readme_sonytape_freebsd_x86_v1.3.txt
a datap.bin
a chnginq.txt
a nori_trace.txt
glf-bsd01# mt rewind
glf-bsd01# tar tvf /dev/nsa0
tar: Error opening archive: Empty input file: Inappropriate file type or 
format
glf-bsd01# tar tvf /dev/nsa0
drwxr-xr-x  0 root   wheel   0 Dec 18 15:56 .
-rwxr-xr-x  0 root   wheel   95488 Oct 17  2006 sonytape
tar: Unrecognized archive format: Inappropriate file type or format

I also tried rewinding after the weof, no difference:
glf-bsd01# mt rewind
glf-bsd01# mt erase 0
glf-bsd01# mt weof
glf-bsd01# mt rewind
glf-bsd01# tar cvf /dev/nsa0 .
a .
a sonytape
a readme_sonytape_freebsd_x86_v1.3.txt
a datap.bin
a chnginq.txt
a nori_trace.txt

glf-bsd01# mt rewind
glf-bsd01# tar tv
drwxr-xr-x  0 root   wheel   0 Dec 18 15:56 .
-rwxr-xr-x  0 root   wheel   95488 Oct 17  2006 sonytape
tar: Unrecognized archive format: Inappropriate file type or format
glf-bsd01#


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Falk Sauer
Hi Robin,

On Dienstag 18 Dezember 2007 17:24:30 wrote:
> [EMAIL PROTECTED] ~]# mt -f /dev/nst0 rewind
> [EMAIL PROTECTED] ~]# mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (4101):
>  BOT ONLINE IM_REP_EN
> [EMAIL PROTECTED] ~]# tar cvf /dev/nst0 /root/
> tar: Removing leading `/' from member names
> /root/
> /root/.my.cnf
> /root/anaconda-ks.cfg
> /root/.rnd
> /root/.cshrc
> /root/.tcshrc
> /root/scripts/
> /root/scripts/bootstrap2.sh
> tar: /dev/nst0: Cannot write: Input/output error
> tar: Error is not recoverable: exiting now

it looks like a hardware problem, can you please test this drive with a 
different machine/controller/cable-set. 

another suggestion: have a look on your cables/terminators and look inside 
your controller bios if any termination or scsi-speed setting is wrong.

Regards
   Falk


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Disappearing Backed up Files

2007-12-18 Thread Coser, Christopher D. (Mission Systems)
Greetings,

I'm administrating a development network for which I run Bacula as our
backup system. I have recently noticed that when I attempt to restore
files from bacula (through the console) from any backup jobs I have a
problem. It seems the system knows that there have been files backed up
but doesn't seem to know what they are. Does anybody have any ideas as
to what might cause this? I have included some output from a restore
attempt to illustrate the problem.

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: 1072
You have selected the following JobId: 1072

Building directory tree for JobId 1072 ...
1 Job, 34 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:/
$

This was after a "restore" command. I am using disk files as opposed to
tapes and the director, FD, and SD are all on the same system. It's a
linux VM running CentOS.

Any help would be appreciated.


-
Christopher Coser
Software Engineer

NORTHROP GRUMMAN Mission Systems 
Network Communications Division
Joint Network Systems
9326 Spectrum Center Blvd.
San Diego, CA 92123
858-514-9148
[EMAIL PROTECTED]

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Michael Galloway
On Tue, Dec 18, 2007 at 11:24:30AM -0500, Robin Blanchard wrote:
> 
> Thanks for the tip. Looks indeed like something underlyingly SCSI here
> (see below). Any suggestions as to what to look for in the adaptec
> controller bios ?
>

have a look around this thread:

http://thread.gmane.org/gmane.comp.sysutils.backup.bacula.general/39443/focus=39873

-- michael 

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Dan Langille
Robin Blanchard wrote:
>> -Original Message-
>> From: Michael Galloway [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, December 18, 2007 10:06 AM
>> To: Robin Blanchard
>> Cc: bacula-users@lists.sourceforge.net
>> Subject: Re: [Bacula-users] FW: new to bacula; help w/autochanger
>>
>> On Tue, Dec 18, 2007 at 09:15:09AM -0500, Robin Blanchard wrote:
 [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
 /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0
 Tape block granularity is 1024 bytes.
 btape: butil.c:285 Using device: "/dev/nst0" for writing.
 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded?
> drive
>> 0"
 command.
 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0",
>> result
 is Slot 1.
 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded?
> drive
>> 0"
 command.
 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0",
>> result
 is Slot 1.
 btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
 *test

 === Write, rewind, and re-read test ===

 I'm going to write 1000 records and an EOF
 then write 1000 records and an EOF, then rewind,
 and re-read the data to verify that it is correct.

 This is an *essential* feature ...

 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1
>> on
 device "LTO3-1" (/dev/nst0). ERR=Input/output error.
 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
 ERR=Input/output error
 btape: btape.c:823 Error writing block to device.
>>>
>>> Hmmm
>>>
>>> # mt -f /dev/st0 rewind
>>>
>>> # tar cvf /dev/st0 /root/
>>> tar: Removing leading `/' from member names
>>> /root/
>>> /root/.my.cnf
>>> /root/anaconda-ks.cfg
>>> /root/.rnd
>>> /root/.cshrc
>>> /root/.tcshrc
>>> /root/scripts/
>>> /root/scripts/bootstrap2.sh
>>> tar: /dev/st0: Cannot write: Input/output error
>>> tar: Error is not recoverable: exiting now
>>>
>>> # tail /var/log/messages
>>> Dec 18 09:13:23 lewis kernel: st0: Current: sense key: Aborted
>> Command
>>> Dec 18 09:13:23 lewis kernel: Add. Sense: Data phase error
>>>
>> i suggest loading a different tape and retrying the tar. make sure
> that
>> tar
>> can write and read correctly. i went through something similar with my
>> new
>> spectra T50 and it ended up i needed to modify the scsi bios in my
> scsi
>> controller.
>>
>> if tar can write/read correctly, then procede to btape test without
> the
>> autochanger
>> part, if that works correctly integrate the changer.
>>
>> -- Michael
> 
> Thanks for the tip. Looks indeed like something underlyingly SCSI here
> (see below). Any suggestions as to what to look for in the adaptec
> controller bios ?
> 
> [EMAIL PROTECTED] ~]# mtx -f /dev/sg2 load 20
> [EMAIL PROTECTED] ~]# mtx -f /dev/sg2 status
>   Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
> Data Transfer Element 0:Full (Storage Element 20 Loaded):VolumeTag =
> B00033L3
>   Storage Element 1:Full :VolumeTag=B00023L3
>   Storage Element 2:Full :VolumeTag=B00039L3
>   Storage Element 3:Full :VolumeTag=B00029L3
>   Storage Element 4:Full :VolumeTag=B00025L3
>   Storage Element 5:Full :VolumeTag=B00028L3
>   Storage Element 6:Full :VolumeTag=B00022L3
>   Storage Element 7:Full :VolumeTag=B00026L3
>   Storage Element 8:Full :VolumeTag=B00031L3
>   Storage Element 9:Full :VolumeTag=B00030L3
>   Storage Element 10:Full :VolumeTag=B00037L3
> 
>   Storage Element 11:Full :VolumeTag=B00034L3
> 
>   Storage Element 12:Full :VolumeTag=B00035L3
> 
>   Storage Element 13:Full :VolumeTag=B00036L3
> 
>   Storage Element 14:Full :VolumeTag=B00038L3
> 
>   Storage Element 15:Full :VolumeTag=B00032L3
> 
>   Storage Element 16:Full :VolumeTag=B00024L3
> 
>   Storage Element 17:Full :VolumeTag=B00021L3
> 
>   Storage Element 18:Full :VolumeTag=B00020L3
> 
>   Storage Element 19:Full :VolumeTag=B00027L3
> 
>   Storage Element 20:Empty
> [EMAIL PROTECTED] ~]# mt -f /dev/nst0 rewind
> [EMAIL PROTECTED] ~]# mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (4101):
>  BOT ONLINE IM_REP_EN
> [EMAIL PROTECTED] ~]# tar cvf /dev/nst0 /root/
> tar: Removing leading `/' from member names
> /root/
> /root/.my.cnf
> /root/anaconda-ks.cfg
> /root/.rnd
> /root/.cshrc
> /root/.tcshrc
> /root/scripts/
> /root/scripts/bootstrap2.sh
> tar: /dev/nst0: Cannot write: Input/output error
> tar: Error is not recoverable: exiting now

Did you try a different tabpe? Is the SCSI chain properly termi

Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Robin Blanchard
> -Original Message-
> From: Michael Galloway [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 18, 2007 10:06 AM
> To: Robin Blanchard
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] FW: new to bacula; help w/autochanger
> 
> On Tue, Dec 18, 2007 at 09:15:09AM -0500, Robin Blanchard wrote:
> > > [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
> > > /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0
> > > Tape block granularity is 1024 bytes.
> > > btape: butil.c:285 Using device: "/dev/nst0" for writing.
> > > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded?
drive
> 0"
> > > command.
> > > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0",
> result
> > > is Slot 1.
> > > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded?
drive
> 0"
> > > command.
> > > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0",
> result
> > > is Slot 1.
> > > btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
> > > *test
> > >
> > > === Write, rewind, and re-read test ===
> > >
> > > I'm going to write 1000 records and an EOF
> > > then write 1000 records and an EOF, then rewind,
> > > and re-read the data to verify that it is correct.
> > >
> > > This is an *essential* feature ...
> > >
> > > 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1
> on
> > > device "LTO3-1" (/dev/nst0). ERR=Input/output error.
> > > 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
> > > ERR=Input/output error
> > > btape: btape.c:823 Error writing block to device.
> >
> >
> > Hmmm
> >
> > # mt -f /dev/st0 rewind
> >
> > # tar cvf /dev/st0 /root/
> > tar: Removing leading `/' from member names
> > /root/
> > /root/.my.cnf
> > /root/anaconda-ks.cfg
> > /root/.rnd
> > /root/.cshrc
> > /root/.tcshrc
> > /root/scripts/
> > /root/scripts/bootstrap2.sh
> > tar: /dev/st0: Cannot write: Input/output error
> > tar: Error is not recoverable: exiting now
> >
> > # tail /var/log/messages
> > Dec 18 09:13:23 lewis kernel: st0: Current: sense key: Aborted
> Command
> > Dec 18 09:13:23 lewis kernel: Add. Sense: Data phase error
> >
> 
> i suggest loading a different tape and retrying the tar. make sure
that
> tar
> can write and read correctly. i went through something similar with my
> new
> spectra T50 and it ended up i needed to modify the scsi bios in my
scsi
> controller.
> 
> if tar can write/read correctly, then procede to btape test without
the
> autochanger
> part, if that works correctly integrate the changer.
> 
> -- Michael

Thanks for the tip. Looks indeed like something underlyingly SCSI here
(see below). Any suggestions as to what to look for in the adaptec
controller bios ?

[EMAIL PROTECTED] ~]# mtx -f /dev/sg2 load 20
[EMAIL PROTECTED] ~]# mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 20 Loaded):VolumeTag =
B00033L3
  Storage Element 1:Full :VolumeTag=B00023L3
  Storage Element 2:Full :VolumeTag=B00039L3
  Storage Element 3:Full :VolumeTag=B00029L3
  Storage Element 4:Full :VolumeTag=B00025L3
  Storage Element 5:Full :VolumeTag=B00028L3
  Storage Element 6:Full :VolumeTag=B00022L3
  Storage Element 7:Full :VolumeTag=B00026L3
  Storage Element 8:Full :VolumeTag=B00031L3
  Storage Element 9:Full :VolumeTag=B00030L3
  Storage Element 10:Full :VolumeTag=B00037L3

  Storage Element 11:Full :VolumeTag=B00034L3

  Storage Element 12:Full :VolumeTag=B00035L3

  Storage Element 13:Full :VolumeTag=B00036L3

  Storage Element 14:Full :VolumeTag=B00038L3

  Storage Element 15:Full :VolumeTag=B00032L3

  Storage Element 16:Full :VolumeTag=B00024L3

  Storage Element 17:Full :VolumeTag=B00021L3

  Storage Element 18:Full :VolumeTag=B00020L3

  Storage Element 19:Full :VolumeTag=B00027L3

  Storage Element 20:Empty
[EMAIL PROTECTED] ~]# mt -f /dev/nst0 rewind
[EMAIL PROTECTED] ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x44 (no translation).
Soft error count since last status=0
General status bits on (4101):
 BOT ONLINE IM_REP_EN
[EMAIL PROTECTED] ~]# tar cvf /dev/nst0 /root/
tar: Removing leading `/' from member names
/root/
/root/.my.cnf
/root/anaconda-ks.cfg
/root/.rnd
/root/.cshrc
/root/.tcshrc
/root/scripts/
/root/scripts/bootstrap2.sh
tar: /dev/nst0: Cannot write: Input/output error
tar: Error is not recoverable: exiting now




-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for ju

Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Michael Galloway
On Tue, Dec 18, 2007 at 09:15:09AM -0500, Robin Blanchard wrote:
> > [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
> > /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0
> > Tape block granularity is 1024 bytes.
> > btape: butil.c:285 Using device: "/dev/nst0" for writing.
> > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> > command.
> > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> > is Slot 1.
> > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> > command.
> > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> > is Slot 1.
> > btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
> > *test
> > 
> > === Write, rewind, and re-read test ===
> > 
> > I'm going to write 1000 records and an EOF
> > then write 1000 records and an EOF, then rewind,
> > and re-read the data to verify that it is correct.
> > 
> > This is an *essential* feature ...
> > 
> > 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1 on
> > device "LTO3-1" (/dev/nst0). ERR=Input/output error.
> > 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
> > ERR=Input/output error
> > btape: btape.c:823 Error writing block to device.
> 
> 
> Hmmm
> 
> # mt -f /dev/st0 rewind
> 
> # tar cvf /dev/st0 /root/
> tar: Removing leading `/' from member names
> /root/
> /root/.my.cnf
> /root/anaconda-ks.cfg
> /root/.rnd
> /root/.cshrc
> /root/.tcshrc
> /root/scripts/
> /root/scripts/bootstrap2.sh
> tar: /dev/st0: Cannot write: Input/output error
> tar: Error is not recoverable: exiting now
> 
> # tail /var/log/messages
> Dec 18 09:13:23 lewis kernel: st0: Current: sense key: Aborted Command
> Dec 18 09:13:23 lewis kernel: Add. Sense: Data phase error
>

i suggest loading a different tape and retrying the tar. make sure that tar
can write and read correctly. i went through something similar with my new
spectra T50 and it ended up i needed to modify the scsi bios in my scsi 
controller.

if tar can write/read correctly, then procede to btape test without the 
autochanger
part, if that works correctly integrate the changer. 

-- michael 

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Robin Blanchard
> -Original Message-
> From: Dan Langille [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 18, 2007 9:36 AM
> To: Robin Blanchard
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] FW: new to bacula; help w/autochanger
> 
> Robin Blanchard wrote:
> >>> [a lot of old stuff snipped]
> >>>
> >>> I think you are now asking for help with the above messages, but
> you
> >>> haven't explicitly asked.
> >>>
> >>> When running btape, be sure bacula-sd is not running.  That is
your
> >>> firstcheck.
> >> The second check would be the permissions. If the SD runs as user
> >> bacula, make sure that user can write to /dev/nst0. Running a test
> as
> >> root is more likely to succeed :-)
> >>
> >
> > Progress ! Thanks for the tips thus far. What next ? It does sort of
> > look like a permissions issue (despite all of this being performed
as
> > uid 0):
> >
> > # ps ax |fgrep -i acula
> > 16835 pts/0S+ 0:00 fgrep -i acula
> >
> > # whoami
> > root
> >
> > # ls -ald {/dev/sg2,/dev/st0,/dev/nst0}
> > crw-rw 1 root disk  9, 128 Dec 17 11:13 /dev/nst0
> > crw-rw 1 root disk 21,   2 Dec 17 11:13 /dev/sg2
> > crw-rw 1 root disk  9,   0 Dec 17 11:13 /dev/st0
> 
> When I do, on FreeBSD, is ensure Bacula is a member of the disk group.
> FYI, on FreeBSD, that would be the operator group.
> 
> >
> > # mtx -f /dev/sg2 load 1
> >
> > # mtx -f /dev/sg2 status
> >   Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
> > Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
> > B00023L3
> >   Storage Element 1:Empty
> >   Storage Element 2:Full :VolumeTag=B00039L3
> >   Storage Element 3:Full :VolumeTag=B00029L3
> >   Storage Element 4:Full :VolumeTag=B00025L3
> >   Storage Element 5:Full :VolumeTag=B00028L3
> >   Storage Element 6:Full :VolumeTag=B00022L3
> >   Storage Element 7:Full :VolumeTag=B00026L3
> >   Storage Element 8:Full :VolumeTag=B00031L3
> >   Storage Element 9:Full :VolumeTag=B00030L3
> >   Storage Element 10:Full :VolumeTag=B00037L3
> >
> >   Storage Element 11:Full :VolumeTag=B00034L3
> >
> >   Storage Element 12:Full :VolumeTag=B00035L3
> >
> >   Storage Element 13:Full :VolumeTag=B00036L3
> >
> >   Storage Element 14:Full :VolumeTag=B00038L3
> >
> >   Storage Element 15:Full :VolumeTag=B00032L3
> >
> >   Storage Element 16:Full :VolumeTag=B00024L3
> >
> >   Storage Element 17:Full :VolumeTag=B00021L3
> >
> >   Storage Element 18:Full :VolumeTag=B00020L3
> >
> >   Storage Element 19:Full :VolumeTag=B00027L3
> >
> >   Storage Element 20:Full :VolumeTag=B00033L3
> >
> >
> > # mt -f /dev/nst0 status
> > SCSI 2 tape drive:
> > File number=0, block number=0, partition=0.
> > Tape block size 0 bytes. Density code 0x44 (no translation).
> > Soft error count since last status=0
> > General status bits on (4101):
> >  BOT ONLINE IM_REP_EN
> 
> > [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
> > /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0
> > Tape block granularity is 1024 bytes.
> > btape: butil.c:285 Using device: "/dev/nst0" for writing.
> > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive
> 0"
> > command.
> > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0",
> result
> > is Slot 1.
> > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive
> 0"
> > command.
> > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0",
> result
> > is Slot 1.
> > btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
> > *test
> >
> > === Write, rewind, and re-read test ===
> >
> > I'm going to write 1000 records and an EOF
> > then write 1000 records and an EOF, then rewind,
> > and re-read the data to verify that it is correct.
> >
> > This is an *essential* feature ...
> >
> > 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1 on
> > device "LTO3-1" (/dev/nst0). ERR=Input/output error.
> > 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
> > ERR=Input/output error
> > btape: btape.c:823 Error writing block to device.
> 
> Is this the entire output?  Often btape will provide suggested changes
> for your configuration.  Did you see any?

Yes, that was the entire output:

# mt -f /dev/st0 rewind
# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x44 (no translation).
Soft error count since last status=0
General status bits on (4101):
 BOT ONLINE IM_REP_EN
# mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
B00023L3
  Storage Element 1:Empty
  Storage Element 2:Full :VolumeTag=B00039L3
  Storage Element 3:Full :VolumeTag=B00029L3
  Storage Element 4:Full :VolumeTag=B00025L3
  

Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Michael Galloway
could you please post the entire output from btape test? 

-- michael


On Tue, Dec 18, 2007 at 08:59:30AM -0500, Robin Blanchard wrote:
> > > [a lot of old stuff snipped]
> > >
> > > I think you are now asking for help with the above messages, but you
> > > haven't explicitly asked.
> > >
> > > When running btape, be sure bacula-sd is not running.  That is your
> > > firstcheck.
> > 
> > The second check would be the permissions. If the SD runs as user
> > bacula, make sure that user can write to /dev/nst0. Running a test as
> > root is more likely to succeed :-)
> > 
> 
> Progress ! Thanks for the tips thus far. What next ? It does sort of
> look like a permissions issue (despite all of this being performed as
> uid 0):
> 
> # ps ax |fgrep -i acula
> 16835 pts/0S+ 0:00 fgrep -i acula
> 
> # whoami
> root
> 
> # ls -ald {/dev/sg2,/dev/st0,/dev/nst0}
> crw-rw 1 root disk  9, 128 Dec 17 11:13 /dev/nst0
> crw-rw 1 root disk 21,   2 Dec 17 11:13 /dev/sg2
> crw-rw 1 root disk  9,   0 Dec 17 11:13 /dev/st0
> 
> # mtx -f /dev/sg2 load 1
> 
> # mtx -f /dev/sg2 status
>   Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
> B00023L3
>   Storage Element 1:Empty
>   Storage Element 2:Full :VolumeTag=B00039L3
>   Storage Element 3:Full :VolumeTag=B00029L3
>   Storage Element 4:Full :VolumeTag=B00025L3
>   Storage Element 5:Full :VolumeTag=B00028L3
>   Storage Element 6:Full :VolumeTag=B00022L3
>   Storage Element 7:Full :VolumeTag=B00026L3
>   Storage Element 8:Full :VolumeTag=B00031L3
>   Storage Element 9:Full :VolumeTag=B00030L3
>   Storage Element 10:Full :VolumeTag=B00037L3
> 
>   Storage Element 11:Full :VolumeTag=B00034L3
> 
>   Storage Element 12:Full :VolumeTag=B00035L3
> 
>   Storage Element 13:Full :VolumeTag=B00036L3
> 
>   Storage Element 14:Full :VolumeTag=B00038L3
> 
>   Storage Element 15:Full :VolumeTag=B00032L3
> 
>   Storage Element 16:Full :VolumeTag=B00024L3
> 
>   Storage Element 17:Full :VolumeTag=B00021L3
> 
>   Storage Element 18:Full :VolumeTag=B00020L3
> 
>   Storage Element 19:Full :VolumeTag=B00027L3
> 
>   Storage Element 20:Full :VolumeTag=B00033L3
> 
> 
> # mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (4101):
>  BOT ONLINE IM_REP_EN
> [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
> /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0 
> Tape block granularity is 1024 bytes.
> btape: butil.c:285 Using device: "/dev/nst0" for writing.
> 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> command.
> 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> is Slot 1.
> 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> command.
> 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> is Slot 1.
> btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
> *test
> 
> === Write, rewind, and re-read test ===
> 
> I'm going to write 1000 records and an EOF
> then write 1000 records and an EOF, then rewind,
> and re-read the data to verify that it is correct.
> 
> This is an *essential* feature ...
> 
> 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1 on
> device "LTO3-1" (/dev/nst0). ERR=Input/output error.
> 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
> ERR=Input/output error
> btape: btape.c:823 Error writing block to device.
> 
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Dan Langille
Robin Blanchard wrote:
>>> [a lot of old stuff snipped]
>>>
>>> I think you are now asking for help with the above messages, but you
>>> haven't explicitly asked.
>>>
>>> When running btape, be sure bacula-sd is not running.  That is your
>>> firstcheck.
>> The second check would be the permissions. If the SD runs as user
>> bacula, make sure that user can write to /dev/nst0. Running a test as
>> root is more likely to succeed :-)
>>
> 
> Progress ! Thanks for the tips thus far. What next ? It does sort of
> look like a permissions issue (despite all of this being performed as
> uid 0):
> 
> # ps ax |fgrep -i acula
> 16835 pts/0S+ 0:00 fgrep -i acula
> 
> # whoami
> root
> 
> # ls -ald {/dev/sg2,/dev/st0,/dev/nst0}
> crw-rw 1 root disk  9, 128 Dec 17 11:13 /dev/nst0
> crw-rw 1 root disk 21,   2 Dec 17 11:13 /dev/sg2
> crw-rw 1 root disk  9,   0 Dec 17 11:13 /dev/st0

When I do, on FreeBSD, is ensure Bacula is a member of the disk group. 
FYI, on FreeBSD, that would be the operator group.

> 
> # mtx -f /dev/sg2 load 1
> 
> # mtx -f /dev/sg2 status
>   Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
> B00023L3
>   Storage Element 1:Empty
>   Storage Element 2:Full :VolumeTag=B00039L3
>   Storage Element 3:Full :VolumeTag=B00029L3
>   Storage Element 4:Full :VolumeTag=B00025L3
>   Storage Element 5:Full :VolumeTag=B00028L3
>   Storage Element 6:Full :VolumeTag=B00022L3
>   Storage Element 7:Full :VolumeTag=B00026L3
>   Storage Element 8:Full :VolumeTag=B00031L3
>   Storage Element 9:Full :VolumeTag=B00030L3
>   Storage Element 10:Full :VolumeTag=B00037L3
> 
>   Storage Element 11:Full :VolumeTag=B00034L3
> 
>   Storage Element 12:Full :VolumeTag=B00035L3
> 
>   Storage Element 13:Full :VolumeTag=B00036L3
> 
>   Storage Element 14:Full :VolumeTag=B00038L3
> 
>   Storage Element 15:Full :VolumeTag=B00032L3
> 
>   Storage Element 16:Full :VolumeTag=B00024L3
> 
>   Storage Element 17:Full :VolumeTag=B00021L3
> 
>   Storage Element 18:Full :VolumeTag=B00020L3
> 
>   Storage Element 19:Full :VolumeTag=B00027L3
> 
>   Storage Element 20:Full :VolumeTag=B00033L3
> 
> 
> # mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (4101):
>  BOT ONLINE IM_REP_EN

> [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
> /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0 
> Tape block granularity is 1024 bytes.
> btape: butil.c:285 Using device: "/dev/nst0" for writing.
> 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> command.
> 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> is Slot 1.
> 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> command.
> 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> is Slot 1.
> btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
> *test
> 
> === Write, rewind, and re-read test ===
> 
> I'm going to write 1000 records and an EOF
> then write 1000 records and an EOF, then rewind,
> and re-read the data to verify that it is correct.
> 
> This is an *essential* feature ...
> 
> 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1 on
> device "LTO3-1" (/dev/nst0). ERR=Input/output error.
> 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
> ERR=Input/output error
> btape: btape.c:823 Error writing block to device.

Is this the entire output?  Often btape will provide suggested changes 
for your configuration.  Did you see any?

-- 
Dan Langille - http://www.langille.org/

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Encrypt backup on clinet - decrypt restore on other client.

2007-12-18 Thread Dan Langille
Jon Ingason wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Dan Langille skrev:
>> Jon Ingason wrote:
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>> Dan Langille skrev:
 Jon Ingason wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I have a scenario where I have client which data I encrypt backup. Now
> this client crash and I want to restore this data somewhere in secure
> place. I don't want restore it on the new client.
>
> I know how to initiate the encryption of the backup (have test it), but
> I am wondering how I do the restore the way I describe? Any ideas?
 Issue the restore command.  Before the job is launched, alter the client
   using the mod command.

 NOTE: the new client will need the keys to decrypt the restore
>>> Thanks Dan.
>>>
>>> OK, but if I just have the backup data and the keys and that backup data
>>> is so old that I need to use common line tools to extact the data from
>>> the backup?
>> It sounds like you are concerned that the backups are much older than
>> the version of Bacula you have installed and are concerned that Bacula
>> will not be able to read and restore from that backup.
>>
>> I know of nothing that will prevent Bacula from reading old backups.
>>
>> If you do wish to use command line tools, they are documented fully. You
>> just use them...
>>
>> Ahh, click. Perhaps you are asking: it is possible to extract
>> unencrypted data from an encrypted backup using command line tools?
>>
>> I think not.  You need bacula-fd to do the unencryption.<== it would
>> be good if someone else could confirm this theory.
>>
>> If my theory is correct, what is your concern?
>>
>>
> 
> I have a client in the field that hat crashed. I need to replace it with
> new one. In my lab I install a new client and need most of the
> configuration files from the old one. I have no problem if the backup is
> not encrypted, but how do I do if the backup is encrypted?
> 
> Must I install bacula-fd on the client and the keys to get the backup
> encrypted

To restore an encrypted backup, the bacula-fd needs the keys used to 
encrypt the backup.

 > or can I do it in other way?

Without the keys, an encrypted backup cannot be restored.

-- 
Dan Langille - http://www.langille.org/

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Robin Blanchard
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:bacula-users-
> [EMAIL PROTECTED] On Behalf Of Robin Blanchard
> Sent: Tuesday, December 18, 2007 9:00 AM
> To: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] FW: new to bacula; help w/autochanger
> 
> > > [a lot of old stuff snipped]
> > >
> > > I think you are now asking for help with the above messages, but
> you
> > > haven't explicitly asked.
> > >
> > > When running btape, be sure bacula-sd is not running.  That is
your
> > > firstcheck.
> >
> > The second check would be the permissions. If the SD runs as user
> > bacula, make sure that user can write to /dev/nst0. Running a test
as
> > root is more likely to succeed :-)
> >
> 
> Progress ! Thanks for the tips thus far. What next ? It does sort of
> look like a permissions issue (despite all of this being performed as
> uid 0):
> 
> # ps ax |fgrep -i acula
> 16835 pts/0S+ 0:00 fgrep -i acula
> 
> # whoami
> root
> 
> # ls -ald {/dev/sg2,/dev/st0,/dev/nst0}
> crw-rw 1 root disk  9, 128 Dec 17 11:13 /dev/nst0
> crw-rw 1 root disk 21,   2 Dec 17 11:13 /dev/sg2
> crw-rw 1 root disk  9,   0 Dec 17 11:13 /dev/st0
> 
> # mtx -f /dev/sg2 load 1
> 
> # mtx -f /dev/sg2 status
>   Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
> B00023L3
>   Storage Element 1:Empty
>   Storage Element 2:Full :VolumeTag=B00039L3
>   Storage Element 3:Full :VolumeTag=B00029L3
>   Storage Element 4:Full :VolumeTag=B00025L3
>   Storage Element 5:Full :VolumeTag=B00028L3
>   Storage Element 6:Full :VolumeTag=B00022L3
>   Storage Element 7:Full :VolumeTag=B00026L3
>   Storage Element 8:Full :VolumeTag=B00031L3
>   Storage Element 9:Full :VolumeTag=B00030L3
>   Storage Element 10:Full :VolumeTag=B00037L3
> 
>   Storage Element 11:Full :VolumeTag=B00034L3
> 
>   Storage Element 12:Full :VolumeTag=B00035L3
> 
>   Storage Element 13:Full :VolumeTag=B00036L3
> 
>   Storage Element 14:Full :VolumeTag=B00038L3
> 
>   Storage Element 15:Full :VolumeTag=B00032L3
> 
>   Storage Element 16:Full :VolumeTag=B00024L3
> 
>   Storage Element 17:Full :VolumeTag=B00021L3
> 
>   Storage Element 18:Full :VolumeTag=B00020L3
> 
>   Storage Element 19:Full :VolumeTag=B00027L3
> 
>   Storage Element 20:Full :VolumeTag=B00033L3
> 
> 
> # mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (4101):
>  BOT ONLINE IM_REP_EN
> [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
> /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0
> Tape block granularity is 1024 bytes.
> btape: butil.c:285 Using device: "/dev/nst0" for writing.
> 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> command.
> 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> is Slot 1.
> 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
> command.
> 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
> is Slot 1.
> btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
> *test
> 
> === Write, rewind, and re-read test ===
> 
> I'm going to write 1000 records and an EOF
> then write 1000 records and an EOF, then rewind,
> and re-read the data to verify that it is correct.
> 
> This is an *essential* feature ...
> 
> 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1 on
> device "LTO3-1" (/dev/nst0). ERR=Input/output error.
> 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
> ERR=Input/output error
> btape: btape.c:823 Error writing block to device.


Hmmm

# mt -f /dev/st0 rewind

# tar cvf /dev/st0 /root/
tar: Removing leading `/' from member names
/root/
/root/.my.cnf
/root/anaconda-ks.cfg
/root/.rnd
/root/.cshrc
/root/.tcshrc
/root/scripts/
/root/scripts/bootstrap2.sh
tar: /dev/st0: Cannot write: Input/output error
tar: Error is not recoverable: exiting now

# tail /var/log/messages
Dec 18 09:13:23 lewis kernel: st0: Current: sense key: Aborted Command
Dec 18 09:13:23 lewis kernel: Add. Sense: Data phase error

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FW: new to bacula; help w/autochanger

2007-12-18 Thread Robin Blanchard
> > [a lot of old stuff snipped]
> >
> > I think you are now asking for help with the above messages, but you
> > haven't explicitly asked.
> >
> > When running btape, be sure bacula-sd is not running.  That is your
> > firstcheck.
> 
> The second check would be the permissions. If the SD runs as user
> bacula, make sure that user can write to /dev/nst0. Running a test as
> root is more likely to succeed :-)
> 

Progress ! Thanks for the tips thus far. What next ? It does sort of
look like a permissions issue (despite all of this being performed as
uid 0):

# ps ax |fgrep -i acula
16835 pts/0S+ 0:00 fgrep -i acula

# whoami
root

# ls -ald {/dev/sg2,/dev/st0,/dev/nst0}
crw-rw 1 root disk  9, 128 Dec 17 11:13 /dev/nst0
crw-rw 1 root disk 21,   2 Dec 17 11:13 /dev/sg2
crw-rw 1 root disk  9,   0 Dec 17 11:13 /dev/st0

# mtx -f /dev/sg2 load 1

# mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
B00023L3
  Storage Element 1:Empty
  Storage Element 2:Full :VolumeTag=B00039L3
  Storage Element 3:Full :VolumeTag=B00029L3
  Storage Element 4:Full :VolumeTag=B00025L3
  Storage Element 5:Full :VolumeTag=B00028L3
  Storage Element 6:Full :VolumeTag=B00022L3
  Storage Element 7:Full :VolumeTag=B00026L3
  Storage Element 8:Full :VolumeTag=B00031L3
  Storage Element 9:Full :VolumeTag=B00030L3
  Storage Element 10:Full :VolumeTag=B00037L3

  Storage Element 11:Full :VolumeTag=B00034L3

  Storage Element 12:Full :VolumeTag=B00035L3

  Storage Element 13:Full :VolumeTag=B00036L3

  Storage Element 14:Full :VolumeTag=B00038L3

  Storage Element 15:Full :VolumeTag=B00032L3

  Storage Element 16:Full :VolumeTag=B00024L3

  Storage Element 17:Full :VolumeTag=B00021L3

  Storage Element 18:Full :VolumeTag=B00020L3

  Storage Element 19:Full :VolumeTag=B00027L3

  Storage Element 20:Full :VolumeTag=B00033L3


# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x44 (no translation).
Soft error count since last status=0
General status bits on (4101):
 BOT ONLINE IM_REP_EN
[EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c
/usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0 
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
command.
18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
is Slot 1.
18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
command.
18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", result
is Slot 1.
btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK
*test

=== Write, rewind, and re-read test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and re-read the data to verify that it is correct.

This is an *essential* feature ...

18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1 on
device "LTO3-1" (/dev/nst0). ERR=Input/output error.
18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed.
ERR=Input/output error
btape: btape.c:823 Error writing block to device.

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Encrypt backup on clinet - decrypt restore on other client.

2007-12-18 Thread Jon Ingason
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan Langille skrev:
> Jon Ingason wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Dan Langille skrev:
>>> Jon Ingason wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I have a scenario where I have client which data I encrypt backup. Now
 this client crash and I want to restore this data somewhere in secure
 place. I don't want restore it on the new client.

 I know how to initiate the encryption of the backup (have test it), but
 I am wondering how I do the restore the way I describe? Any ideas?
>>> Issue the restore command.  Before the job is launched, alter the client
>>>   using the mod command.
>>>
>>> NOTE: the new client will need the keys to decrypt the restore
>>
>> Thanks Dan.
>>
>> OK, but if I just have the backup data and the keys and that backup data
>> is so old that I need to use common line tools to extact the data from
>> the backup?
> 
> It sounds like you are concerned that the backups are much older than
> the version of Bacula you have installed and are concerned that Bacula
> will not be able to read and restore from that backup.
> 
> I know of nothing that will prevent Bacula from reading old backups.
> 
> If you do wish to use command line tools, they are documented fully. You
> just use them...
> 
> Ahh, click. Perhaps you are asking: it is possible to extract
> unencrypted data from an encrypted backup using command line tools?
> 
> I think not.  You need bacula-fd to do the unencryption.<== it would
> be good if someone else could confirm this theory.
> 
> If my theory is correct, what is your concern?
> 
> 

I have a client in the field that hat crashed. I need to replace it with
new one. In my lab I install a new client and need most of the
configuration files from the old one. I have no problem if the backup is
not encrypted, but how do I do if the backup is encrypted?

Must I install bacula-fd on the client and the keys to get the backup
encrypted or can I do it in other way?

- --
Regards

Jon Ingason
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHZ8uVWn396VE8BCsRAspWAJ4yhpgykJDBWudwhXAg+IFD0VeLJQCeLM68
nT1iNRdDuPQ5WkvTOp15jOQ=
=JwfF
-END PGP SIGNATURE-

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem After Version Upgrade

2007-12-18 Thread Daniel Betz
Hi,

the Job ist scheduled to 01:00 o´clock, but starts at 09:39.
Try to increase the "Client Connect Wait" in the storage daemon resource.
I have had the same problem. With Client Connect Wait = 18000 the 
problem was gone.

Greetings,
Daniel


Junior Cunha wrote:
> Hello All,
>
>I have been had some problems since when i upgrade bacula from
> 2.2.4-1 to the last version ( 2.2.6-1 ). Here is my scenario:
>
>Bacula Director and Storage version 2.2.6-1 ( rpm ) running in a
> CentOS 5.0 box and MySQL. The clients ( around 140, all over internet
> running under ssh tunnels ) version is 1.38.11.
>
>Since the upgrade, just a few backups are finshed with OK status and
> i receive a lot of messages like this one:
>
> ###
> 18-Dec 09:49 remote-client-rjo: remote-client-rjo.2007-12-18_09.39.14
> Fatal error: Authorization key rejected by Storage daemon.
> Please see http://www.bacula.org/rel-manual/faq.html#AuthorizationErrors
> for help.
> 18-Dec 09:49 remote-client-rjo: remote-client-rjo.2007-12-18_09.39.14
> Fatal error: Failed to authenticate Storage daemon.
> 18-Dec 09:49 OpBackup JobId 33075: Fatal error: Socket error on Storage
> command: ERR=No data available
> 18-Dec 09:49 OpBackup JobId 33075: Error: Bacula OpBackup 2.2.6
> (10Nov07): 18-Dec-2007 09:49:46
>   Build OS:   i686-redhat-linux-gnu redhat
>   JobId:  33075
>   Job:remote-client-rjo.2007-12-18_09.39.14
>   Backup Level:   Incremental, since=2007-12-15 01:45:22
>   Client: "remote-client-rjo"
> i686-pc-linux-gnu,redhat,(Heidelberg)
>   FileSet:"opmon" 2007-12-15 01:00:00
>   Pool:   "Incremental" (From Job IncPool override)
>   Storage:"remote-client-rjo" (From Job resource)
>   Scheduled time: 18-Dec-2007 09:39:11
>   Start time: 18-Dec-2007 09:39:31
>   End time:   18-Dec-2007 09:49:46
>   Elapsed time:   10 mins 15 secs
>   Priority:   1
>   FD Files Written:   0
>   SD Files Written:   0
>   FD Bytes Written:   0 (0 B)
>   SD Bytes Written:   0 (0 B)
>   Rate:   0.0 KB/s
>   Software Compression:   None
>   VSS:no
>   Encryption: no
>   Volume name(s):
>   Volume Session Id:  8
>   Volume Session Time:1197977141
>   Last Volume Bytes:  0 (0 B)
>   Non-fatal FD errors:0
>   SD Errors:  0
>   FD termination status:
>   SD termination status:  Waiting on FD
>   Termination:*** Backup Error ***
>
> 18-Dec 09:49 OpBackup JobId 33075: AfterJob: run command
> "/etc/bacula/scripts/ssh-tunnel.pl stop remote-client-rjo opmon 54978 60014"
> 18-Dec 09:49 OpBackup JobId 33075: AfterJob: Stopping SSH-tunnel to
> remote-client-rjo.opnet.opservices.com.br... SSH-tunnel killed!
> 18-Dec 09:49 OpBackup JobId 33075: Rescheduled Job
> remote-client-rjo.2007-12-18_09.39.14 at 18-Dec-2007 09:49 to re-run in
> 3600 seconds (18-Dec-2007 10:49).
> 18-Dec 09:49 OpBackup JobId 33075: Job
> remote-client-rjo.2007-12-18_09.39.14 waiting 3600 seconds for scheduled
> start time.
> ###
>
>Any idea to help me? :)
>
>[]s
>
> Junior Cunha
>
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   


-- 
Freundliche Grüße

Daniel Betz
Technical Support
___
 
domainfactory GmbH
Oskar-Messter-Str. 33
85737 Ismaning
Germany

Telefon:  +49 (0)89 / 55266-364
Telefax:  +49 (0)89 / 55266-222

E-Mail:   [EMAIL PROTECTED]
Internet: www.df.eu

Registergericht: Amtsgericht München
HRB 150294, Geschäftsführer Tobias
Marburg, Jochen Tuchbreiter




-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem After Version Upgrade

2007-12-18 Thread Junior Cunha
Hello All,

   I have been had some problems since when i upgrade bacula from
2.2.4-1 to the last version ( 2.2.6-1 ). Here is my scenario:

   Bacula Director and Storage version 2.2.6-1 ( rpm ) running in a
CentOS 5.0 box and MySQL. The clients ( around 140, all over internet
running under ssh tunnels ) version is 1.38.11.

   Since the upgrade, just a few backups are finshed with OK status and
i receive a lot of messages like this one:

###
18-Dec 09:49 remote-client-rjo: remote-client-rjo.2007-12-18_09.39.14
Fatal error: Authorization key rejected by Storage daemon.
Please see http://www.bacula.org/rel-manual/faq.html#AuthorizationErrors
for help.
18-Dec 09:49 remote-client-rjo: remote-client-rjo.2007-12-18_09.39.14
Fatal error: Failed to authenticate Storage daemon.
18-Dec 09:49 OpBackup JobId 33075: Fatal error: Socket error on Storage
command: ERR=No data available
18-Dec 09:49 OpBackup JobId 33075: Error: Bacula OpBackup 2.2.6
(10Nov07): 18-Dec-2007 09:49:46
  Build OS:   i686-redhat-linux-gnu redhat
  JobId:  33075
  Job:remote-client-rjo.2007-12-18_09.39.14
  Backup Level:   Incremental, since=2007-12-15 01:45:22
  Client: "remote-client-rjo"
i686-pc-linux-gnu,redhat,(Heidelberg)
  FileSet:"opmon" 2007-12-15 01:00:00
  Pool:   "Incremental" (From Job IncPool override)
  Storage:"remote-client-rjo" (From Job resource)
  Scheduled time: 18-Dec-2007 09:39:11
  Start time: 18-Dec-2007 09:39:31
  End time:   18-Dec-2007 09:49:46
  Elapsed time:   10 mins 15 secs
  Priority:   1
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   0 (0 B)
  Rate:   0.0 KB/s
  Software Compression:   None
  VSS:no
  Encryption: no
  Volume name(s):
  Volume Session Id:  8
  Volume Session Time:1197977141
  Last Volume Bytes:  0 (0 B)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:
  SD termination status:  Waiting on FD
  Termination:*** Backup Error ***

18-Dec 09:49 OpBackup JobId 33075: AfterJob: run command
"/etc/bacula/scripts/ssh-tunnel.pl stop remote-client-rjo opmon 54978 60014"
18-Dec 09:49 OpBackup JobId 33075: AfterJob: Stopping SSH-tunnel to
remote-client-rjo.opnet.opservices.com.br... SSH-tunnel killed!
18-Dec 09:49 OpBackup JobId 33075: Rescheduled Job
remote-client-rjo.2007-12-18_09.39.14 at 18-Dec-2007 09:49 to re-run in
3600 seconds (18-Dec-2007 10:49).
18-Dec 09:49 OpBackup JobId 33075: Job
remote-client-rjo.2007-12-18_09.39.14 waiting 3600 seconds for scheduled
start time.
###

   Any idea to help me? :)

   []s

Junior Cunha

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] waiting to reserve a device

2007-12-18 Thread Marco Gaiarin
Mandi! Arno Lehmann
  In chel di` si favelave...

> > ...i'm using 'file' storage, so... i can simply ignore 'mount' type
> > messages?
> I wouldn't do this, because you might miss messages when a pool is 
> full and you need to create new volumes.

I've just hit one of them, and i've seen that i received two messages,
one say me to create a new pool (the mount one), and some minute later
one that say me that backup failed.

In this box there's no critical data, i can safely miss the backup of a
day, and in the 'backup failed' message the reason are clear: no volume
available.
I use for this backup autoprune and autorecycle, i keep for every box 4
volumes that cycles in weeks for a month.


Apart mount request (that i can accept to ignore...), there's something
other messages that i can lost ignoring 'mount'?

-- 
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it  tel +39-0434-842711  fax +39-0434-842797

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] waiting to reserve a device

2007-12-18 Thread Arno Lehmann
Hi,

18.12.2007 10:38,, Marco Gaiarin wrote::
>> I've total control on the bacula director, that is also my mail server,
>> so i can do this, but indeed it is not so clean... ;(((
> 
> ...i'm using 'file' storage, so... i can simply ignore 'mount' type
> messages?

I wouldn't do this, because you might miss messages when a pool is 
full and you need to create new volumes.

Arno

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] waiting to reserve a device

2007-12-18 Thread Marco Gaiarin

> I've total control on the bacula director, that is also my mail server,
> so i can do this, but indeed it is not so clean... ;(((

...i'm using 'file' storage, so... i can simply ignore 'mount' type
messages?

-- 
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it  tel +39-0434-842711  fax +39-0434-842797

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula with StorEdge L280

2007-12-18 Thread Arno Lehmann
Hello,

13.12.2007 16:51,, Daniel Bareiro wrote::
> On Thursday, 13 December 2007 09:58:55 +0100,
> Arno Lehmann wrote:
> 
>> Hi,
> 
> Hi Arno. Thanks for your response.
> 
>>> This is my first mail to the list. I'm newbie with Bacula.
>  
>> I noticed that, when looking at the configuration ;-)
> 
> The humor sense in a mailing list always is welcome :-)))

I hope didn't step on your toes...

>>> I'm using Bacula version (1.38.11-8) from Debian Etch for Sparc
>>> respositories.
> 
>> I recommend upgrading to 2.2.6, even if that means installing from
>> source. 1.38 is really outdated by now.
> 
> Yes, I thought that too. I keep it in mind for futures upgrades after
> this version turns operative.
> 
>>> sparky:~# mtx -f /dev/sg2 status
>>>   Storage Changer /dev/sg2:1 Drives, 8 Slots ( 0 Import/Export )
>  
>> Keep this in mind... you've got one drive and 8 slots.
> 
> Good. I took the slots as drives. I see the mistake.
> 
>>> But checking the status storage from the Baculas's console delays long
>>> time without returns some results.

That's what usually happens when the SD was recently started - it 
needs some time to settle its tape drive initialization.

>>> sparky:/etc/bacula# bconsole
>>> Connecting to Director sparky.educ.gov.ar:9101
>>> 1000 OK: maquinadirectora-dir Version: 1.38.11 (28 June 2006)
>>> Enter a period to cancel a command.
>>> *status
>>> Using default Catalog name=MyCatalog DB=bacula
>>> Status available for:
>>>  1: Director
>>>  2: Storage
>>>  3: Client
>>>  4: All
>>> Select daemon type for status (1-4): 2
>>> The defined Storage resources are:
>>>   1: respaldadora-sd
>>>   2: File
>>> Select Storage resource (1-2): 1
>>> Connecting to Storage daemon respaldadora-sd at sparky.educ.gov.ar:9103
>>> [ ... delays long time without returns some results ... ]
>  
>> Really no output, it just returns to the '*' prompt?
> 
> Well, really now I can see the following output after a long time. But
> this long delay only happened the first time I perform the 'status
> storage'. Later that, the result was instantaneous.

So that's ok.

...
> I modified the autochanger resource definition. Now, does it look
> better? :-)
> 
> Autochanger {
>   Name = Autochanger
>   Device = Drive-1
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg2
> }
> 
> Device {
>   Name = Drive-1  #
>   Media Type = DLT-7000
>   Archive Device = /dev/nst0
>   Autochanger = yes
>   LabelMedia = no
>   AutomaticMount = yes;   # when device opened, read it
>   AlwaysOpen = yes
> }

Much better :-)

> This is the output of 'status storage':
> 
> *status storage
> The defined Storage resources are:
>  1: respaldadora-sd
>  2: File
> Select Storage resource (1-2): 1
> Connecting to Storage daemon respaldadora-sd at sparky.educ.gov.ar:9103
> 
> respaldadora-sd Version: 1.38.11 (28 June 2006) sparc-unknown-linux-gnu 
> debian 4.0
> Daemon started 13-dic-07 06:33, 0 Jobs run since started.
> 
> Running Jobs:
> No Jobs running.
> 
> 
> Jobs waiting to reserve a drive:
> 
> 
> Terminated Jobs:
> JobId  Level   Files  Bytes Status   FinishedName
> ==
> 1  Full  0  0 Other11-dic-07 15:20 Backup_Usuarios
> 2  Full  0  0 Cancel   13-dic-07 01:17 Backup_Usuarios
> 
> 
> 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.
>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:
> 
> 
> Then, I try label the volumes but I got an input/output error message
> after a delay. Performing the operation over another slot shows the same
> error.
> 
> The defined Storage resources are:
>  1: respaldadora-sd
>  2: File
> Select Storage resource (1-2): 1
> Enter autochanger drive[0]:
> Enter new Volume name: TestVolume1
> Enter slot (0 or Enter for none): 1
> Automatically selected Pool: Default
> Connecting to Storage daemon respaldadora-sd at sparky.educ.gov.ar:9103...
> Sending label command for Volume "TestVolume1" Slot 1 ...
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3304 Issuing autochanger "load slot 1, drive 0" command.
> 3305 Autochanger "load slot 1, drive 0", status is OK.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result is Slot 1.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result is Slot 1.
> 3912 Failed to label Volume: ERR=dev.c:678 Rewind error on "Drive-1"
> (/dev/nst0). ERR=Error de entrada/salida.
> 
> Label command failed for Volume TestVolume1

Re: [Bacula-users] What is the meaning of the query 16 in bacula 2.2.5?

2007-12-18 Thread Arno Lehmann
Hello,

18.12.2007 00:47,, pedro moreno wrote::
> Hi.
> 
>I have been working with some tapes for some months, i was
> wondering how much data my tape have been writing && erasing.
> 
>I use the command query option 16 and receive this data:
> 
> +---+++++
> | Volume| Mounts | Errors | Writes | Status |
> +---+++++
> | FullTape-0007 | 10 |  0 | 19,008,158 | Full   |
> | FullTape-0015 |  3 |  0 |  4,982,277 | Used   |
> | FullTape-0014 |  3 |  0 |  5,149,360 | Used   |
> | FullTape-0004 |  3 |  0 |  4,796,619 | Used   |
> | FullTape-0001 |  3 |  0 |  5,153,608 | Used   |
> | FullTape-0013 |  5 |  0 |  8,990,607 | Used   |
> | FullTape-0011 |  7 |  0 | 10,309,906 | Used   |
> | FullTape-0010 |  9 |  0 | 13,201,649 | Used   |
> | FullTape-0009 |  9 |  0 | 18,643,901 | Used   |
> | FullTape-0008 |  9 |  0 | 17,578,293 | Used   |
> | FullTape-0006 | 10 |  0 | 15,953,200 | Used   |
> | FullTape-0005 | 11 |  0 | 20,655,434 | Used   |
> | FullTape-0003 | 11 |  0 | 20,101,553 | Used   |
> | FullTape-0002 | 11 |  0 | 19,915,631 | Used
> 
> Now i can see that i don't have any errors, now, what about the other fields:
> Mount, is how many times, bacula have been using the command Mount for
> the volume?  This is my bacula-sd.conf for my tape:

Not only command line mounts, but also automatically initiated ones. 
Basically, this is the number of times the tapes have been loaded to a 
drive.

...
>   The option AlwaysOpen=yes, my understanding is, once bacula use the
> command Mount, will always keep the device opened, until he fished all
> the jobs, in my case they are each weekend 10 jobs = 95GB total, each
> monday 7 jobs = 70GB total.

If (and I'm not sure this is the case here as I didn't check this in 
the code) the mount counter works as I expect, it will only be 
incremented when a tape is actually loaded or accessed the first time 
after you manually load it.

>   My volume retention period is: 80 days.
> 
>   HP say this about this tapes:
> 
> TechnologyLoad Unload Cycles  Full Volume Back ups (FVB)  Number 
> of Passes
> Ultrium  20,000   260 
> 1,000,000
> 
>   Them, could please someone explain me what bacula tell me with this
> info, i will appreciated a lot.

The query should be adapted to your needs, i.e. you should modify the 
thresholds in the query.sql file, which is rather simple.

The errors and mounts columns are rather simple to modify, I think. If 
you want to get useful thresholds for the no. of writes, you should 
take your average (or maximum) effective volume capacity, divide thet 
by the block size you use (probably about 64 k) and multiply with the 
260 full backups HP claim the tapes can stand. The result would be 
your maximum number of writes per tape - or somewhat close to it.

Does that help you?

Arno


>   OS: Freebsd 6.1-p16
>   Drive: HP Storage Works 232 External.
> 
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users