[Bacula-users] fullvirtual try to use file from copy job

2010-07-18 Thread Alessandro Bono
Hi all

I have a problem with fullvirtual backup, I use 3 pool: OffsitePool,
DataSpool and WeeklyPoolTape
the strategy is incremental to WeeklyPoolTape every day, virtualfull to
DataSpool at saturday night after this copy to OffsitePool from
DataSpool and finally migrate back to WeeklyPoolTape

problem appear with virtualfull that try to use OffsitePool to generate
backup on DataSpool

Is it an incorrect strategy? Is it a configuration problem?

thanks

Same file configuration and commented log to clarify below:

Schedule {
  Name = WeeklyCycle
  Run = VirtualFull Saturday at 22:05
  Run = Incremental Saturday at 19:05
  Run = Incremental Monday at 23:10
  Run = Incremental Tuesday at 23:10
  Run = Incremental Wednesday at 23:10
  Run = Incremental Thursday at 23:10
  Run = Incremental Friday at 23:10
}

Schedule {
  Name = WeeklyCycleDtt
  Run = Full Sunday at 04:00 
}


# Client (File Services) to backup
# clients are  ga1-fd ga2-fd ga-srv-fd ga1-srv-fd ga2-srv-fd ga1-net-fd 
ga2-net-fd ga1-fw-fd ga2-fw-fd
# defined like this
 Client {
  Name = ga1-fd
  Address = ga1
  FDPort = 9102
  Catalog = MyCatalog
  Password = xxx  # password for FileDaemon
  File Retention = 30 days# 30 days
  Job Retention = 6 months# six months
  AutoPrune = yes # Prune expired Jobs/Files
}

JobDefs {
  Name = DefaultJob
  Type = Backup
  Level = Incremental
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = LTO4
  Messages = Standard
  Priority = 10
  Pool = WeeklyPoolTape 
  Max Wait Time = 1d
}

# A job definition per client like this
Job {
  Name = BackupGa1
  JobDefs = DefaultJob
  Client = ga1-fd
  Write Bootstrap = /var/lib/bacula/ClientGa1.bsr
}



Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 3w
  Storage = LTO4
}

Pool {
  Name = WeeklyPoolDisk
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 3w 
  NextPool = WeeklyPoolTape
  Storage = File
  Purge Oldest Volume = Yes
  Volume Use Duration = 1d
}


Pool {
  Name = WeeklyPoolTape
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 3w
  Storage = LTO4
  NextPool = WeeklyPoolDisk
}


Pool {
  Name = WeeklyPoolDiskDummy
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 3w
  copy pool = WeeklyPoolDisk
  NextPool = OffsitePool
  Storage = File
  Purge Oldest Volume = Yes
}

Pool {
  Name = OffsitePool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 2w 
  Storage = LTO4
  Volume Use Duration = 1d
  Recycle Current Volume = yes

}
Job {
  Name = CopyDtt
  Enabled = Yes
  Schedule = WeeklyCycleDtt 
  Pool = WeeklyPoolDiskDummy
  Storage = LTO4
  Type = Copy
  Client = None
  FileSet = None
  Selection Type = SQLQuery
  Selection Pattern = SELECT Job.JobId FROM Job,Pool WHERE Job.Type = 'B' and 
Job.JobStatus = 'T' and Pool.Name = 'WeeklyPoolDisk' and Job.PoolId = 
Pool.PoolId  
  Maximum Concurrent Jobs = 20
  SpoolData = No
  Allow Duplicate Jobs = Yes
  Allow Higher Duplicates = No
  Cancel Queued Duplicates = No
  Cancel Running Duplicates = No
  Priority = 13
  Messages = Standard
}

Job {
  Name = MigrateDtt
  Enabled = Yes
  Schedule = WeeklyCycleDtt
  Pool = WeeklyPoolDisk
  Storage = LTO4
  Type = Migrate
  Client = None
  FileSet = None
  Selection Type = SQLQuery
  Selection Pattern = SELECT Job.JobId FROM Job,Pool WHERE Job.Type = 'B' and 
Job.JobStatus = 'T' and Pool.Name = 'WeeklyPoolDisk' and Job.PoolId = 
Pool.PoolId 
  Maximum Concurrent Jobs = 20
  SpoolData = No
  Priority = 14
  Messages = Standard
}





This append yesterday night

17-Jul 22:05 ga2-dir JobId 4924: Start Virtual Backup JobId 4924, 
Job=Shared.2010-07-17_22.05.00_40
17-Jul 22:05 ga2-dir JobId 4924: Warning: This Job is not an Accurate backup so 
is not equivalent to a Full backup.
17-Jul 22:06 ga2-dir JobId 4924: Bootstrap records written to 
/var/lib/bacula/ga2-dir.restore.59.bsr
17-Jul 22:06 ga2-dir JobId 4924: There are no more Jobs associated with Volume 
DataSpool. Marking it purged.
17-Jul 22:06 ga2-dir JobId 4924: All records pruned from Volume DataSpool; 
marking it Purged
17-Jul 22:06 ga2-dir JobId 4924: Recycled volume DataSpool
17-Jul 22:06 ga2-dir JobId 4924: Using Device FileStorage
17-Jul 22:06 ga-sd JobId 4924: 3307 Issuing autochanger unload slot 6, drive 
0 command.
17-Jul 22:07 ga-sd JobId 4924: 3304 Issuing autochanger load slot 5, drive 0 
command.
17-Jul 22:07 ga-sd JobId 4924: 3305 Autochanger load slot 5, drive 0, status 
is OK.
17-Jul 22:07 ga-sd JobId 4924: Ready to read from volume MG5753L4 on device 
Drive-1 (/dev/nst0).
17-Jul 22:07 ga-sd JobId 4924: Recycled volume DataSpool on device 
FileStorage (/media/bacula-vtl), all previous data lost.
17-Jul 22:07 ga-sd JobId 4924: Forward spacing Volume MG5753L4 to file:block 
354:0.
18-Jul 03:47 ga-sd JobId 4924: End of Volume at file 1090 on device Drive-1 
(/dev/nst0), Volume MG5753L4
18-Jul 

[Bacula-users] new user, first attempt

2010-07-18 Thread Stan
On a clean machine …
installed Debian desktop 5.04 via netinstall
edited network ... fixed ip ... added hosts to /etc/hosts
used Synaptic Package Manager to install smbfs and smbclient
verified local network shares are accessible
define 2 network printers and one shared printer to CUPS
verified printing works on 3 printers
used Synaptic Package Manager to install Bacula 2.4.4-1
[except mySQL director ... first time all at once caused error ... back to
install Debian]
[somewhere in here I gave it a password ... used same password as root on
system]
used Synaptic Package Manager to install Bacula 2.4.4-1 mySQL director
[first attempt … trying to use Detailed Bacula Network Backup
Implementation Tutorial]
backupServer:/home/stan# bconsole
Connecting to Director localhost:9101
.
.   [time passes]
.
18-Jul 06:38 bconsole JobId 0: Fatal error: bsock.c:129 Unable to connect to
Director daemon on localhost:9101. ERR=Connection refused
backupServer:/home/stan#

I need help, please, understanding what I did wrong.

Thanks,

Stan Berry

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] new user, first attempt

2010-07-18 Thread Dan Langille
On 7/18/2010 8:01 AM, Stan wrote:
 On a clean machine …

 installed Debian desktop 5.04 via netinstall

 edited network ... fixed ip ... added hosts to /etc/hosts

 used Synaptic Package Manager to install smbfs and smbclient

 verified local network shares are accessible

 define 2 network printers and one shared printer to CUPS

 verified printing works on 3 printers

 used Synaptic Package Manager to install Bacula 2.4.4-1

I'd go for 5.x if you can.  Much improved.  But not related to the 
problems you're having.

 [except mySQL director ... first time all at once caused error ... back
 to install Debian]

 [somewhere in here I gave it a password ... used same password as root
 on system]

 used Synaptic Package Manager to install Bacula 2.4.4-1 mySQL director

 [first attempt … trying to use Detailed Bacula Network Backup
 Implementation Tutorial]

 backupServer:/home/stan# bconsole

 Connecting to Director localhost:9101

 .

 . [time passes]

 .

 18-Jul 06:38 bconsole JobId 0: Fatal error: bsock.c:129 Unable to
 connect to Director daemon on localhost:9101. ERR=Connection refused

Is bacula-dir running on localhost on port 9101?

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

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] new user, first attempt

2010-07-18 Thread Mister IT Guru

On 18/07/10 13:01, Stan wrote:

backupServer:/home/stan# bconsole

Connecting to Director localhost:9101

.

. [time passes]

.

18-Jul 06:38 bconsole JobId 0: Fatal error: bsock.c:129 Unable to 
connect to Director daemon on localhost:9101. ERR=Connection refused


backupServer:/home/stan#


Did you open up the firewall ports for the director the storage daemon, 
and the file daemon?
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] new user, first attempt

2010-07-18 Thread Ryan Novosielski
In my experience, connection refused is unlikely to be firewall. More likely is 
connecting to a port where no one is listening (eg. listening or connecting to 
the wrong place).

-- Sent from my Palm Pre
On Jul 18, 2010 12:59, Mister IT Guru lt;misteritg...@gmx.comgt; wrote: 


On 18/07/10 13:01, Stan wrote:

  
  
  
  
  

 
  
 

 
  Normal
  0
  DocumentEmail
  
  6 pt
  2
  2
 

  

  
  backupServer:/home/stan#
bconsole
  Connecting to
Director localhost:9101
  nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
  .
  nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
  .nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; [time
passes]
  nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
  .
  18-Jul 06:38
bconsole JobId 0: Fatal
error: bsock.c:129 Unable to connect to Director daemon on
localhost:9101.
ERR=Connection refused
  backupServer:/home/stan#
  nbsp;
  

  

Did you open up
the firewall ports for the director the storage daemon, and the file
daemon?




--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Fwd: Re: onefs

2010-07-18 Thread nobody

---BeginMessage---
This can be a solution, but I think that this is a bug or an error in the 
documentation.

In my case, it is not the best solution. I'm not the administrator of the 
server, and in future someone can add other partition mounted on the main 
filesystem. The onefs (potentially dangerous for loop I know), can solve this 
problem. I'm misunderstanding the onefs feature?

Best regards

 On 7/15/2010 5:52 AM, manga...@hotmail.com wrote:
  Greetings,
  
  I'm using bacula to complete backup of linux client with different
  partition. In the log of my backup I get this message:
  
  mailserver3-fd JobId 3516:  /var is a different filesystem. Will not
  descend from / into /var
  
  googling for help, I found two solutions. Specify /var as a folder to
  backup, or add the directive onefs = no to FILESET section of my
  director configuration. This is what I've done:
  
  # FILESET ###
  FileSet {
  
 Name = FILESET-mailserver3-FULL
 Include {
 
   Options {
   
 signature = MD5
 compression = GZIP
 onefs = no
   
   }
   Options {
   Regexdir = /comm/data/SystemLogs/*/*
   Regexdir = /mailstore*
   Wildfile = /var/log/*.gz
   Wilddir = /tmp/*
   Wilddir = /proc/*
   Wilddir = /sys/*
   Exclude = yes
   }
   File = /
 
 Why not add this line here:
File = /var
 
   }
 
 Exclude {
 
   File = /usr/portage/distfiles
   File = /backup
   File = /var/chroot64/
 
 }
  
  }
  # FILESET ###
  
  But I still get the same error messages, and /var folder is not present
  in the bakcup.
  
  Where I'm wrong?
  
  Best regards
  
  -
  - This SF.net email is sponsored by Sprint
  What will you do first with EVO, the first 4G phone?
  Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
---End Message---
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Removing bad jobs from the database? Howto?

2010-07-18 Thread Mister IT Guru
I have a fair number of failed jobs in my database, and I would like to 
know is it possible to purge all the bad backups, so that all the 
diskspace that has been taken up can be released?

This disk space is being replicated across the internet off site, and 
the number of GB's that are from failed backups is pushing the time this 
takes to unacceptable levels.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Splitting jobs, then making fulls? possible?

2010-07-18 Thread Mister IT Guru
Some of my hosts have very large disks, and a complete full backup will 
take over a day (close to 500GB), over the Internet.

To fix this issue, I have split these hosts into smaller file sets, and 
I backup the more important data daily, and the fixed data not so much. 
The thing is, the jobs backup to different storage daemons at different 
times. Because of this I have a little difficulty determining if I 
current have a full snapshot of the server as it stands right now.

I was wondering, if I was to perform a full restore, that I will get the 
latest version of every file as it stands regardless of which job backed 
it up?

Also, I was thinking to set up a third storage daemon, and then create a 
virtual full so that i know at any point in time, that I have a full 
snapshot at least somewhere. Are these unfounded fears, or is bacula 
intelligent enough to always retrieve the latest stored version of a file?

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Removing bad jobs from the database? Howto?

2010-07-18 Thread Joseph L. Casale
I have a fair number of failed jobs in my database, and I would like to 
know is it possible to purge all the bad backups, so that all the 
diskspace that has been taken up can be released?

from bconsole, `del jobid=#`.

If you have many, an sql query to look for JOB ID's with FAILED status piped
out might be your ticket.

jlc

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Possible Bacula project License change

2010-07-18 Thread Kern Sibbald
Hello (Shane?),

Do you have any problem if we change the Bacula project license from GPLv2 + 
modifications (OpenSSL exception + Microsoft source restriction exception) to 
AGPL + modifications?

The main reason for this is so that if Bacula is used in the cloud, the users 
(and thus hopefully the project) will have the right to the source any 
modifications that the cloud provider (or Bacula application provider) mades 
to Bacula.

Best regards,

Kern

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fullvirtual try to use file from copy job

2010-07-18 Thread Alessandro Bono
Just to add some info, bacula version 5.0.2 on a Ubuntu Lucid 64bit

*list media
Pool: Scratch
No results to list.
Pool: OffsitePool
+-++---+-+-+--+--+-+--+---+---+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes| VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-++---+-+-+--+--+-+--+---+---+-+
|  50 | MG5749L4   | Disabled  |   1 | 659,653,714,944 |  660 |
1,814,400 |   1 |0 | 0 | LTO4  | 2010-05-31 18:51:04 |
|  58 | MG5747L4   | Disabled  |   1 | 665,855,511,552 |  675 | 
  86,400 |   1 |0 | 0 | LTO4  | 2010-06-13 18:59:10 |
|  59 | MG5745L4   | Disabled  |   1 | 666,333,997,056 |  668 |
1,209,600 |   1 |0 | 0 | LTO4  | 2010-06-20 12:26:07 |
|  60 | MG5746L4   | Disabled  |   1 | 549,396,578,304 |  558 |
1,209,600 |   1 |0 | 0 | LTO4  | 2010-04-11 08:57:28 |
|  66 | MG5755L4   | Disabled  |   1 | 678,141,241,344 |  687 | 
   3,600 |   1 |0 | 0 | LTO4  | 2010-07-04 19:11:41 |
|  67 | MG5756L4   | Disabled  |   1 | 573,163,315,200 |  578 |
1,209,600 |   1 |0 | 0 | LTO4  | 2010-05-02 11:24:11 |
|  68 | MG5742L4   | Disabled  |   1 |  64,512 |0 |
1,209,600 |   1 |0 | 0 | LTO4  | -00-00 00:00:00 |
|  70 | MG5743L4   | Disabled  |   1 |  64,512 |0 |
1,209,600 |   1 |0 | 0 | LTO4  | -00-00 00:00:00 |
|  71 | MG5744L4   | Disabled  |   1 | 655,203,999,744 |  662 |
1,209,600 |   1 |0 | 0 | LTO4  | 2010-05-23 11:12:03 |
|  72 | MG5748L4   | Disabled  |   1 | 664,419,796,992 |  665 |
1,209,600 |   1 |0 | 0 | LTO4  | 2010-06-07 19:45:06 |
|  73 | NOLABEL| Disabled  |   1 | 677,479,154,688 |  679 |
1,209,600 |   1 |0 | 0 | LTO4  | 2010-07-11 20:52:05 |
|  74 | CLNU01L1   | Append|   1 |   4,999,680,000 |5 |
1,209,600 |   1 |8 | 1 | LTO4  | 2010-07-18 13:44:45 |
+-++---+-+-+--+--+-+--+---+---+-+
Pool: WeeklyPoolDisk
+-++---+-+-+--+--+-+--+---+---+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes| VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-++---+-+-+--+--+-+--+---+---+-+
|  54 | DataSpool  | Append|   1 | 692,701,645,210 |  161 | 
   3,600 |   1 |0 | 0 | File  | 2010-07-18 13:39:49 |
+-++---+-+-+--+--+-+--+---+---+-+
Pool: WeeklyPoolTape
+-++---+-+---+--+--+-+--+---+---+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes  | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-++---+-+---+--+--+-+--+---+---+-+
|  52 | MG5751L4   | Full  |   1 | 1,005,068,058,624 |1,104 |   
 1,814,400 |   1 |3 | 1 | LTO4  | 2010-05-31 19:16:52 |
|  53 | MG5750L4   | Full  |   1 | 1,056,743,912,448 |1,115 |   
 1,814,400 |   1 |7 | 1 | LTO4  | 2010-06-07 23:52:39 |
|  55 | MG5741L4   | Full  |   1 | 1,068,101,250,048 |1,180 |   
 1,814,400 |   1 |1 | 1 | LTO4  | 2010-07-04 23:26:16 |
|  62 | MG5753L4   | Full  |   1 |   986,750,908,416 |1,090 |   
 1,814,400 |   1 |5 | 1 | LTO4  | 2010-07-16 23:19:23 |
|  63 | MG5752L4   | Append|   1 | 2,936,973,312 |   22 |   
 1,814,400 |   1 |6 | 1 | LTO4  | 2010-07-17 19:11:25 |
|  65 | MG5754L4   | Full  |   1 | 1,017,453,911,040 |1,142 |   
 1,814,400 |   1 |4 | 1 | LTO4  | 2010-06-20 12:51:38 |
|  69 | MG5740L4   | Full  |   1 | 1,071,256,725,504 |1,118 |   
 1,814,400 |   1 |2 | 1 | LTO4  | 2010-05-20 15:50:57 |

[Bacula-users] Extend Retention time

2010-07-18 Thread Richard Scobie
I have a weekly backup set which has a retention time of 13 days.

I have just been asked to keep a set that was written 12 days ago.

Can someone please tell me how I can extend the retention time for this job?

Regards,

Richard

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Can't access tape device after upgrade from v2.4.4-1 to 5.0.2-1

2010-07-18 Thread Rory Campbell-Lange
Late last week I had my first run at Bacula on a Linux server with
self-contained storage and an LT04 16 slot tape library (a Dell PV-124T)
connected by a SAS controller. I ran 2.4.4-1 as it was the default under Debian
stable. After a few dry runs and problems I succeeded in backing up just over
2TB of data to 3 tapes (just over 2 tapes) at around 70MB/s. Retrieves went
fine.

I've now upgraded to 5.0.2-1 using Debian backports so that we can run
close to the latest version. I'm using much the same configuration, but
both the Storage service and btape hang after trying to access the
drive.

It looks like I've still got access to the library, but somehow I've lost
connection to the actual tape drive.

As the server and tape drive are in a data centre I'd be glad for advice on
what to do next!

Regards
Rory


# btape -pv /dev/nst0

Tape block granularity is 1024 bytes.
btape: butil.c:284 Using device: /dev/nst0 for writing.
18-Jul 22:27 btape JobId 0: 3301 Issuing autochanger loaded? drive 0 
command.
18-Jul 22:27 btape JobId 0: 3302 Autochanger loaded? drive 0, result is 
Slot 5.

18-Jul 22:32 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device LTO4-Drive1 (/dev/nst0): 
ERR=Input/output error

18-Jul 22:32 btape JobId 0: Fatal error: butil.c:193 Cannot open 
LTO4-Drive1 (/dev/nst0)

# mtx -f /dev/sg4 status

Storage Changer /dev/sg4:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 5 Loaded)
  Storage Element 1:Full
  Storage Element 2:Full :VolumeTag=06L4
  Storage Element 3:Full
  Storage Element 4:Full
  Storage Element 5:Empty
  Storage Element 6:Full
  Storage Element 7:Full
  Storage Element 8:Full
  Storage Element 9:Full
  Storage Element 10:Full
  Storage Element 11:Full
  Storage Element 12:Full
  Storage Element 13:Full
  Storage Element 14:Full
  Storage Element 15:Full :VolumeTag=CLNU00L1
  Storage Element 16:Full

# mt -f /dev/nst0 status

/dev/nst0: Input/output error

-- 
Rory Campbell-Lange
r...@campbell-lange.net

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] new user, first attempt

2010-07-18 Thread Rory Campbell-Lange
On 18/07/10, Dan Langille (d...@langille.org) wrote:
  used Synaptic Package Manager to install Bacula 2.4.4-1
 
 I'd go for 5.x if you can.  Much improved.  But not related to the 
 problems you're having.

To do this on Debian Stable, please read the instructions here:
See http://www.backports.org/dokuwiki/doku.php?id=instructions

and (when you are happy with how backports works and you have added the
necessary repository information to your /etc/apt/sources list), you can
do something like:

apt-get -t lenny-backports install --reinstall \
   $(dpkg -l | grep bacula | awk '{ print $2 }')

However it may be safer to purge your existing installation first.

-- 
Rory Campbell-Lange
r...@campbell-lange.net

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't access tape device after upgrade from v2.4.4-1 to 5.0.2-1

2010-07-18 Thread John Drescher
 Late last week I had my first run at Bacula on a Linux server with
 self-contained storage and an LT04 16 slot tape library (a Dell PV-124T)
 connected by a SAS controller. I ran 2.4.4-1 as it was the default under 
 Debian
 stable. After a few dry runs and problems I succeeded in backing up just over
 2TB of data to 3 tapes (just over 2 tapes) at around 70MB/s. Retrieves went
 fine.

 I've now upgraded to 5.0.2-1 using Debian backports so that we can run
 close to the latest version. I'm using much the same configuration, but
 both the Storage service and btape hang after trying to access the
 drive.

 It looks like I've still got access to the library, but somehow I've lost
 connection to the actual tape drive.

 As the server and tape drive are in a data centre I'd be glad for advice on
 what to do next!

 Regards
 Rory


 # btape -pv /dev/nst0

    Tape block granularity is 1024 bytes.
    btape: butil.c:284 Using device: /dev/nst0 for writing.
    18-Jul 22:27 btape JobId 0: 3301 Issuing autochanger loaded? drive 0 
 command.
    18-Jul 22:27 btape JobId 0: 3302 Autochanger loaded? drive 0, result is 
 Slot 5.

    18-Jul 22:32 btape: Fatal Error at device.c:298 because:
    dev open failed: dev.c:491 Unable to open device LTO4-Drive1 
 (/dev/nst0): ERR=Input/output error

    18-Jul 22:32 btape JobId 0: Fatal error: butil.c:193 Cannot open 
 LTO4-Drive1 (/dev/nst0)

 # mtx -f /dev/sg4 status

    Storage Changer /dev/sg4:1 Drives, 16 Slots ( 0 Import/Export )
    Data Transfer Element 0:Full (Storage Element 5 Loaded)
          Storage Element 1:Full
          Storage Element 2:Full :VolumeTag=06L4
          Storage Element 3:Full
          Storage Element 4:Full
          Storage Element 5:Empty
          Storage Element 6:Full
          Storage Element 7:Full
          Storage Element 8:Full
          Storage Element 9:Full
          Storage Element 10:Full
          Storage Element 11:Full
          Storage Element 12:Full
          Storage Element 13:Full
          Storage Element 14:Full
          Storage Element 15:Full :VolumeTag=CLNU00L1
          Storage Element 16:Full

 # mt -f /dev/nst0 status

    /dev/nst0: Input/output error


Check if bacula-sd is still running. If so the mt command is expected to fail.

John

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users