[Bacula-users] moving backup files from one storage area to another

2007-04-24 Thread Russell Sutherland
I have the situation, where my backup files are filling up
one storage area (disk) on one machine (A) and I wish
to move the backup files and backup process to another
machine (B).

I have defined the new storage entity in the director and
the SD process on machine B.

Do I have to start the whole backup process from scratch
(full, diff, inc) or can I somehow move the files from machine
A to B and carry on as usual.

Thanks in advance.

-- 
Russell Sutherland
russ AT madhaus . cns . utoronto . ca
+1.416.978.0470 [ voice ]
+1.416.978.6620 [ fax ]

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula, Jobs and Pools

2006-10-20 Thread Russell Sutherland
Greetings,

I have been lurking for a few days, and done some
experimenting with Bacula. So far so good...

But I have a few newbie like questions.

1. Are there any documented backup methodologies
given the notion of full, differential and incremental
backups?

2. Given a different Pool for each client, is it possible
for the Director to process two jobs, from two different
clients to two different Volumes on separate pools
at the same time?

3. Given a disk/directory of size N Gb and and a tape that can store
M Gb (where N >> M ), how would one go about devising some
backup regime, given say that it is impossible to go back B months
in time to retrieve data?

Thanks in advance.

-- 
Russell Sutherland
russ AT madhaus . cns . utoronto . ca
+1.416.978.0470 [ voice ]
+1.416.978.6620 [ fax ]

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File Daemon Encryption Maturity

2006-10-31 Thread Russell Sutherland
I do not know if this idea has been mentioned before,
or whether it has any merit, but for backups done
to disk,  one could first install an encrypted file system
such as  gbde and geli for FreeBSD. It seems like another
case of flexibility and functionality through modularity.

On 31/10/06, Dan Langille <[EMAIL PROTECTED]> wrote:
> On 31 Oct 2006 at 3:58, Mathew Brown wrote:
>
> > I'd read several times that the FD encryption feature was not yet
> > stable but this was several months ago.  Would you now consider it
> > stable enough for use in production environments?  Thanks for your
> > help.
>
> FWIW, FD encryption will be included in the next release.

-- 
Russell Sutherland
russ AT madhaus . cns . utoronto . ca
+1.416.978.0470 [ voice ]
+1.416.978.6620 [ fax ]

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Building bacula on OpenBSD

2006-11-08 Thread Russell Sutherland
There does not seem to be a port for Bacula for OpenBSD 4.0.

I've tried building the package from source.

After configuration, the "make" fails when trying to compile
the stored code:

==>Entering directory /usr/local/src/bacula-1.38.11/src/dird
 Make of dird is good 

==>Entering directory /usr/local/src/bacula-1.38.11/src/stored
/usr/bin/g++   -c  -I/usr/local/include   -I. -I..  -g -O2 -Wall -pthread dev.c
dev.c: In function `bool eod_dev(DEVICE*)':
dev.c:850: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:850: error: 'struct mtget' has no member named 'mt_blkno'
dev.c:852: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:881: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:882: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:899: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:900: error: 'struct mtget' has no member named 'mt_fileno'
dev.c: In function `u_int32_t status_dev(DEVICE*)':
dev.c:1023: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:1023: error: 'struct mtget' has no member named 'mt_blkno'
dev.c: In member function `bool DEVICE::fsf(int)':
dev.c:1188: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:1188: error: 'struct mtget' has no member named 'mt_blkno'
dev.c:1190: error: 'struct mtget' has no member named 'mt_fileno'
dev.c: In member function `bool DEVICE::fsr(int)':
dev.c:1375: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:1375: error: 'struct mtget' has no member named 'mt_blkno'
dev.c:1023: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:1023: error: 'struct mtget' has no member named 'mt_blkno'
dev.c: In member function `bool DEVICE::fsf(int)':
dev.c:1188: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:1188: error: 'struct mtget' has no member named 'mt_blkno'
dev.c:1190: error: 'struct mtget' has no member named 'mt_fileno'
dev.c: In member function `bool DEVICE::fsr(int)':
dev.c:1375: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:1375: error: 'struct mtget' has no member named 'mt_blkno'
dev.c:1377: error: 'struct mtget' has no member named 'mt_fileno'
dev.c:1378: error: 'struct mtget' has no member named 'mt_blkno'
dev.c: In function `bool dev_get_os_pos(DEVICE*, mtget*)':
dev.c:1968: error: 'struct mtget' has no member named 'mt_fileno'
*** Error code 1

Stop in /usr/local/src/bacula-1.38.11/src/stored.


  == Error in /usr/local/src/bacula-1.38.11/src/stored ==


==>Entering directory /usr/local/src/bacula-1.38.11/src/tools
 Make of tools is good 



Any ideas how this can be fixed?

-- 
Russell Sutherland
russ AT madhaus . cns . utoronto . ca
+1.416.978.0470 [ voice ]
+1.416.978.6620 [ fax ]

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Moving volumes to a new

2007-10-29 Thread Russell Sutherland
In order to create more space on one of my SD machines, I have created a new
Device entry
in the sd.conf file:

Device {
  Name = Tank-device
  Media Type = Tank-file
  Archive Device = /backup/bacula
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = Tank-large-device
  Media Type = Tank-large-file
  Archive Device = /opt/bacula
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}


I added the new disk partition /opt/bacula as /backup/bacula was getting
full.
To free up space on the old Device area, I wanted to move the job volumes
from the old device to the new device, and just change the "Storage" field
in
the job to the one that accesses the new Device.

Job {
  Name = utm-wireless-system
  Enabled = yes
  JobDefs = DefaultJob
  Client = utm-wireless-fd
  FileSet = "NS-System"
  Storage = Storage-remote-tank-large <--- new larger storage area
  Full Backup Pool = utm-wireless-full
  Differential Backup Pool = utm-wireless-diff
  Incremental Backup Pool = utm-wireless-inc
}

Storage {
  Name = Storage-remote-tank
# Do not use "localhost" here
  Address = tank.a.b.org  # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "asdasdsd"
  Device = Tank-device
  Media Type = Tank-file
}

Storage {
  Name = Storage-remote-tank-large
# Do not use "localhost" here
  Address = tank.a.b.org   # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "asasdasd"
  Device = Tank-large-device
  Media Type = Tank-large-file
}

My question is, is there a method for moving my current related volume files
over to the the new Storage device (/opt/bacula) seamlessly? They look like:

tank: ls -ltr utm*
-rw-r-  1 bacula  bacula   376261049 Apr  1  2007 utm-wireless-full-0002
-rw-r-  1 bacula  bacula   287201254 May  9 15:24 utm-wireless-full-0003
-rw-r-  1 bacula  bacula   204155050 Jul 25 02:50 utm-wireless-diff-0003
-rw-r-  1 bacula  bacula   163371571 Aug 12 12:28 utm-wireless-diff-0004
-rw-r-  1 bacula  bacula   174128939 Aug 21 22:29 utm-wireless-diff-0005
-rw-r-  1 bacula  bacula   176373784 Aug 26 07:35 utm-wireless-diff-0001
-rw-r-  1 bacula  bacula   243285162 Sep  4 11:36 utm-wireless-full-0004
-rw-r-  1 bacula  bacula  1252243055 Oct  4 05:29 utm-wireless-inc-0002
-rw-r-  1 bacula  bacula   834878651 Oct 11 00:04 utm-wireless-full-0001
-rw-r-  1 bacula  bacula  3829161368 Oct 11 03:34 utm-wireless-inc-0003
-rw-r-  1 bacula  bacula   530104601 Oct 14 03:00 utm-wireless-diff-0002
-rw-r-  1 bacula  bacula  2944219361 Oct 26 14:19 utm-wireless-inc-0001





-- 
Russell Sutherland
russ AT madhaus . cns . utoronto . ca
+1.416.978.0470 [ voice ]
+1.416.978.6620 [ fax ]
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Catalog backup best practices

2009-02-19 Thread Russell Sutherland
I have perused through the Catalog Maintenance section in the documentation:

http://www.bacula.org/en/rel-manual/Catalog_Maintenance.html

looking for some guidance on where to store the Catalog data from the
Catalog Job. (This is the data which gets generated by the
make_catalog_backup script.)

I assume that it's OK to save the data from this job to tape. Given
that one does not have tape, is it a good idea to store the data on a
remote storage volume? By remote I mean on some other media on some
other machine.

Thanks in advance.

-- 
Russell Sutherland
r...@quist.ca
+1.416.696.7600

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Tape problems after updating to version 3.0.0

2009-04-21 Thread Russell Sutherland
I updated my system to version 3.0.0 yesterday.

*version
backup-dir Version: 3.0.0 (06 April 2009)  i386-portbld-freebsd7.1
freebsd 7.1-RELEASE-p4

$ pkg_info | grep bacula
bacula-bat-2.4.4_1  The network backup solution (GUI)
bacula-client-3.0.0_1 The network backup solution (client)
bacula-docs-2.4.4   The Bacula document set
bacula-server-3.0.0 The network backup solution (server)

Of course part of that was updating the mysql database tables. All of
that seemed to go well.

However when my first backup started earlier today, somehow the file
counter was off by one from the perspective of the Catalog and the
Volume:

*messages
21-Apr 02:05 backup-dir JobId 14512: Start Backup JobId 14512,
Job=backup-system.2009-04-21_02.05.00_05
21-Apr 02:05 backup-dir JobId 14512: Using Device "Dell-PV-110T"
21-Apr 02:05 backup-sd JobId 14512: Volume "BG7388" previously
written, moving to end of data.
21-Apr 02:06 backup-sd JobId 14512: Error: Bacula cannot write on tape
Volume "BG7388" because:
The number of files mismatch! Volume=323 Catalog=322
21-Apr 02:06 backup-sd JobId 14512: Marking Volume "BG7388" in Error in Catalog.
21-Apr 02:07 backup-sd JobId 14512: Job
backup-system.2009-04-21_02.05.00_05 waiting. Cannot find any
appendable volumes.
Please use the "label"  command to create a new Volume for:
Storage:  "Dell-PV-110T" (/dev/nsa0)
Pool: Default
Media type:   LTO-2

I am more interested in fixing the situation rather than having to
recycle the tape into the pool, and start a new one, given the current
tape is less than one half full.

Any ideas?

-- 
Russell Sutherland
r...@quist.ca
+1.416.696.7600

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape problems after updating to version 3.0.0

2009-04-21 Thread Russell Sutherland
 VolBytes|
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType|
LastWritten |
+-++---+-+-+--+--+-+--+---+--+-+
| 595 | Catalog-01 | Append|   1 |   4,023,197,419 |
 0 |   34,560,000 |   1 |0 | 0 | Media-backup |
2008-11-12 04:59:35 |
| 642 | BG7385 | Error |   1 |  64,673,086,464 |
208 |   34,560,000 |   1 |0 | 0 | LTO-2|
2008-11-28 21:15:43 |
| 652 | BG7386 | Full  |   1 | 364,615,759,872 |
1,058 |   34,560,000 |   1 |0 | 0 | LTO-2|
2009-01-28 06:15:07 |
| 653 | BG7387 | Full  |   1 | 380,757,436,416 |
1,141 |   34,560,000 |   1 |0 | 0 | LTO-2|
2009-04-03 04:42:06 |
| 669 | BG7388 | Error |   1 | 194,570,772,480 |
322 |   34,560,000 |   1 |0 | 0 | LTO-2|
2009-04-20 03:42:15 |
+-++---+-+-+--+--+-+--+-------+--+-+
*


Does this mean I have to change the tape?



-- 
Russell Sutherland
r...@quist.ca
+1.416.696.7600

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Some sql_get.c sqlite error messages with bacula

2009-07-21 Thread Russell Sutherland
I've had some small problems trying to get bacula up and running on an
older Linux system. Specifically:

Debian 3.0 aka woody
# uname -a
Linux postoffice.burg.com  2.2.20 #1 Thu Feb 26 18:12:28 UTC 2004 i686 unknown

I installed bacula 2.2.8 from sources and am using sqlite 2.4.7 from
the debian packages:

# bconsole
Connecting to Director postoffice:9101
1000 OK: postoffice-dir Version: 2.2.8 (26 January 2008)

# dpkg --list | grep sqli
ii  libsqlite-dev  2.4.7-1SQLite development files
ii  libsqlite0 2.4.7-1SQLite shared library
ii  sqlite 2.4.7-1A command line interface for SQLite

I am backing up to a smb/windows mounted disk and all is well except
for some error messages at the sql level:

21-Jul 11:20 postoffice-dir JobId 7: Start Backup JobId 7,
Job=postoffice-data.2009-07-21_11.20.03
21-Jul 11:20 postoffice-dir JobId 7: Using Device "FileStorage"
21-Jul 11:20 nas-sd JobId 7: Volume "Inc-0005" previously written,
moving to end of data.
21-Jul 11:20 nas-sd JobId 7: Ready to append to end of Volume
"Inc-0005" size=9133277
21-Jul 11:21 nas-sd JobId 7: Job write elapsed time = 00:00:23,
Transfer rate = 417.5 K bytes/second
21-Jul 11:21 postoffice-dir JobId 7: Fatal error: sql_get.c:359
sql_get.c:359 query SELECT VolumeName,MAX(VolIndex) FROM
JobMedia,Media WHERE JobMedia.JobId=7 AND
+JobMedia.MediaId=Media.MediaId GROUP BY VolumeName ORDER BY 2 ASC
failed:
ORDER BY expressions should not be constant
21-Jul 11:21 postoffice-dir JobId 7: sql_get.c:359 SELECT
VolumeName,MAX(VolIndex) FROM JobMedia,Media WHERE JobMedia.JobId=7
AND JobMedia.MediaId=Media.MediaId GROUP BY VolumeName
+ORDER BY 2 ASC
21-Jul 11:21 postoffice-dir JobId 7: Bacula postoffice-dir 2.2.8
(26Jan08): 21-Jul-2009 11:21:02
  Build OS:   i686-pc-linux-gnu debian 3.0
  JobId:  7
  Job:postoffice-data.2009-07-21_11.20.03
  Backup Level:   Incremental, since=2009-07-21 10:56:47
  Client: "postoffice-fd" 2.2.8 (26Jan08)
i686-pc-linux-gnu,debian,3.0
  FileSet:"Full Set" 2009-07-21 10:28:16
  Pool:   "Inc-Pool" (From Job IncPool override)
  Storage:"Storage-postoffice-disk" (From Job
resource)
  Scheduled time: 21-Jul-2009 11:20:31
  Start time: 21-Jul-2009 11:20:38
  End time:   21-Jul-2009 11:21:02
  Elapsed time:   24 secs
  Priority:   10
  FD Files Written:   171
  SD Files Written:   171
  FD Bytes Written:   9,577,579 (9.577 MB)
  SD Bytes Written:   9,602,651 (9.602 MB)
  Rate:   399.1 KB/s
  Software Compression:   None
  VSS:no
  Storage Encryption: no
  Volume name(s):
  Volume Session Id:  1
  Volume Session Time:1248188363
  Last Volume Bytes:  18,748,058 (18.74 MB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK

21-Jul 11:21 postoffice-dir JobId 7: Begin pruning Jobs.
21-Jul 11:21 postoffice-dir JobId 7: No Jobs found to prune.
21-Jul 11:21 postoffice-dir JobId 7: Begin pruning Files.
21-Jul 11:21 postoffice-dir JobId 7: No Files found to prune.
21-Jul 11:21 postoffice-dir JobId 7: End auto prune.

Need I "worry" about this error?

In due time the machine will be updated, but I do need to have bacula
running at least for the next 3 months.

-- 
Russell Sutherland
r...@quist.ca
+1.416.696.7600

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Flaky performance using LTO-1 tapes

2008-10-30 Thread Russell Sutherland
I've been working (limping) along for several months using the
following hardware/software bacula autochanger tape setup:

Software:

# uname -a
FreeBSD bkup.utoronto.ca 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #2: Thu
Sep  4 08:58:43 EDT 2008
[EMAIL PROTECTED]:/opt/obj/opt/src/sys/GENERIC  i386

# pkg_info | grep bacula
bacula-bat-2.4.3The network backup solution (GUI)
bacula-client-2.4.3 The network backup solution (client)
bacula-docs-2.4.3   The Bacula document set
bacula-server-2.4.3 The network backup solution (server)


Hardware:

# dmesg | grep -i scsi
ahc0:  port 0xb400-0xb4ff mem
0xfeafe000-0xfeafefff irq 16 at device 4.0 on pci3
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
da0: <3ware Logical Disk 00 1.00> Fixed Direct Access SCSI-0 device
sa0:  Removable Sequential Access SCSI-3 device
ch0:  Removable Changer SCSI-2 device

I've gotten less than stellar performance from the tape/autochanger set up:

# echo "list media Pool=Default" | bconsole
Connecting to Director backup.cns.utoronto.ca:9101
1000 OK: backup-dir Version: 2.4.3 (10 October 2008)
Enter a period to cancel a command.
list media Pool=Default
Automatically selected Catalog: MySQL
Using Catalog "MySQL"
+-++---+-+-+--+--+-+--+---+--+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes|
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType|
LastWritten |
+-++---+-+-+--+--+-+--+---+--+-+
|  36 | Catalog| Error |   1 |  95,398,772,324 |
22 |   31,536,000 |   1 |0 | 1 | Media-backup |
2008-06-30 11:48:22 |
| 559 | Vol-1  | Full  |   1 | 160,904,991,744 |
683 |   31,536,000 |   1 |1 | 1 | LTO-1|
2008-08-27 05:31:50 |
| 568 | Vol-3  | Full  |   1 |  11,174,833,152 |
54 |   34,560,000 |   1 |3 | 1 | LTO-1|
2008-08-30 07:32:28 |
| 570 | Vol-4  | Full  |   1 |  23,107,295,232 |
106 |   34,560,000 |   1 |4 | 1 | LTO-1|
2008-09-05 05:55:30 |
| 572 | Vol-7  | Full  |   1 |  69,669,347,328 |
297 |   34,560,000 |   1 |7 | 1 | LTO-1|
2008-09-21 03:24:23 |
| 573 | Vol-6  | Full  |   1 |   3,281,596,416 |
19 |   34,560,000 |   1 |6 | 1 | LTO-1|
2008-09-22 14:00:12 |
| 574 | Vol-5  | Error |   1 |  25,882,149,888 |
127 |   34,560,000 |   1 |5 | 1 | LTO-1|
2008-09-29 04:00:32 |
| 578 | Vol-2  | Full  |   1 |   2,737,889,280 |
19 |   34,560,000 |   1 |0 | 0 | LTO-1|
2008-10-28 03:53:34 |
| 579 | Vol-8  | Full  |   1 | 140,503,200,768 |
429 |   34,560,000 |   1 |8 | 1 | LTO-1|
2008-10-27 02:29:38 |
| 595 | Catalog-01 | Append|   1 | 515,814,669 |
 0 |   34,560,000 |   1 |0 | 0 | Media-backup |
2008-10-30 04:56:26 |
+-++---+-+-+--+--+-+--+---+--+-+


Notice that the VolBytes is all over the map. Some tapes seem to
indicate "full" even after 3 Gbytes of data.

So I wanted to dig a bit deeper and performed a standard "btape fill"
exercise, using Vol-2, which "failed" after 2.7G last time
it was in service.

After several hours of writing, about 80Gbytes worth I received the
low level kernel error message:

...
ch0 at ahc0 bus 0 target 3 lun 0
ch0:  Removable Changer SCSI-2 device
ch0: 3.300MB/s transfers
ch0: 8 slots, 1 drive, 1 picker, 0 portals
Trying to mount root from ufs:/dev/ad0s1a

(sa0:ahc0:0:5:0): Unexpected busfree in Data-out phase
SEQADDR == 0x7c
(sa0:ahc0:0:5:0): lost device
(sa0:ahc0:0:5:0): failed to write terminating filemark(s)
(sa0:ahc0:0:5:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM
command to clear this state.

And after this fact the /dev/sa0 device was no longer usable and btape
was wedged.

Any ideas? Either the Dell hardware is very flaky and can not be used
in a production service,
or I've got some scsi hardware tuning to do.

Thanks in advance.

-- 
Russell Sutherland
[EMAIL PROTECTED]
+1.416.696.7600

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problems appending to a Tape

2008-11-12 Thread Russell Sutherland
When trying to write/append some data to an existing labelled and
mounted tape I get:

*messages
12-Nov 16:56 backup-sd JobId 12120: Job
backup-data.2008-11-12_16.56.30 waiting. Cannot find any appendable
volumes.
Please use the "label"  command to create a new Volume for:
Storage:  "Dell-PV-110T" (/dev/nsa0)
Pool: Default
Media type:   LTO-2
*list media Pool=Default
+-++---+-+---+--+--+-+--+---+--+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes  |
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType|
LastWritten |
+-++---+-+---+--+--+-+--+---+--+-+
| 595 | Catalog-01 | Append|   1 | 4,023,197,419 |
0 |   34,560,000 |   1 |0 | 0 | Media-backup |
2008-11-12 04:59:35 |
| 642 | BG7385 | Append|   1 | 2,644,992 |
2 |   34,560,000 |   1 |0 | 0 | LTO-2|
2008-11-12 16:47:41 |
+-++---+-+---+--+--+-+--+---+--+-+
*

Why can my system not find any appendable volumes? It appears that the
default Pool is ready to append to Volume Name: BG7385.

In general, I find adding, mounting and labelling new tapes a bit
confusing, especially when this is being done to an existing running
system.


-- 
Russell Sutherland
[EMAIL PROTECTED]
+1.416.696.7600

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bconsole bug

2008-11-14 Thread Russell Sutherland
When running a bconsole session in a terminal window, at the comand
prompt state,
if a message arrives from for example a job which is now finished,
bconsole exits
automatically and one ends up at the shell command prompt.

This behaviour seemed to occur when I upgraded to bacula 2.4.3.

# pkg_info | grep bacu
bacula-bat-2.4.3The network backup solution (GUI)
bacula-client-2.4.3 The network backup solution (client)
bacula-docs-2.4.3   The Bacula document set
bacula-server-2.4.3 The network backup solution (server)

# uname -a
FreeBSD backup.utoronto.ca 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #2:
Thu Sep  4 08:58:43 EDT 2008
[EMAIL PROTECTED]:/opt/obj/opt/src/sys/GENERIC  i386


-- 
Russell Sutherland
[EMAIL PROTECTED]
+1.416.696.7600

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Tape struggles

2008-12-01 Thread Russell Sutherland
>From time to time, I find difficulty with backing up to tape,
particularly when the machine
reboots. Here's the current state which seems "broken".

Software:

uname -a
FreeBSD backup.cns.utoronto.ca 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5
#0: Thu Nov 20 06:46:55 EST 2008
[EMAIL PROTECTED]:/backup/opt/obj/backup/opt/src/sys/GENERIC
i386

$ pkg_info | grep bacula
bacula-bat-2.4.3The network backup solution (GUI)
bacula-client-2.4.3 The network backup solution (client)
bacula-docs-2.4.3   The Bacula document set
bacula-server-2.4.3 The network backup solution (server)

Hardware:

$ dmesg | grep -i scsi
ahc0:  port 0x9400-0x94ff mem
0xfc7fe000-0xfc7fefff irq 28 at device 3.0 on pci1
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1:  port 0x9800-0x98ff mem
0xfc7ff000-0xfc7f irq 29 at device 3.1 on pci1
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
Waiting 5 seconds for SCSI devices to settle
sa0:  Removable Sequential Access SCSI-3 device


Demonstration of problem:

a. The status of the tape drive seems fine:

*status storage
The defined Storage resources are:
 1: Storage-backup
 2: Storage-bsd
 3: Storage-joey
 4: Storage-msc
 5: Storage-pics
 6: Storage-tank
 7: Storage-remote-cache
 8: Storage-remote-tank
 9: Storage-remote-tank-large
10: Storage-tape
Select Storage resource (1-10): 10
Connecting to Storage daemon Storage-tape at backup.cns.utoronto.ca:9103

backup-sd Version: 2.4.3 (10 October 2008) i386-portbld-freebsd7.0
freebsd 7.0-RELEASE-p4
Daemon started 01-Dec-08 11:21, 2 Jobs run since started.
 Heap: heap=0 smbytes=157,179 max_bytes=291,078 bufs=101 max_bufs=127
Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8

Running Jobs:
No Jobs running.


Jobs waiting to reserve a drive:


Terminated Jobs:
 JobId  LevelFiles  Bytes   Status   FinishedName
===
 12241  Diff  1,251868.6 M  OK   22-Nov-08 05:06 msc-data
 12242  Incr 3616.50 M  OK   22-Nov-08 05:07 pics-system
 12243  Incr 7123.88 M  OK   22-Nov-08 05:08 pics-data
 12245  Incr 951.526 G  Error22-Nov-08 05:25 bsd-data
 12244  Full  1239.2 M  OK   22-Nov-08 05:25 backup-catalog
 12246  Incr  2   255   OK   22-Nov-08 14:17 backup-system
 122470 0   Error22-Nov-08 21:19 Restore-backup
 12346  Incr  0 0   Cancel   01-Dec-08 11:17 backup-system
 12347  Incr  0 0   Cancel   01-Dec-08 11:21 backup-data
 12348  Incr  0 0   Cancel   01-Dec-08 11:23 backup-system


Device status:
Device "Device-backup" (/backup/bacula) is not open.
Device "Device-bsd" (/backup/bacula/bsd) is not open.
Device "Dell-PV-110T" (/dev/nsa0) is mounted with:
Volume:  BG7385
Pool:Default
Media type:  LTO-2
Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
Positioned at File=0 Block=0


Used Volume status:
BG7385 on device "Dell-PV-110T" (/dev/nsa0)
Reader=0 writers=0 devres=0 volinuse=1



*


So the tape is mounted and labeled. Now when I go to run a job I am
asked to issue a label command:


.
Select Job resource (1-19): 1
Run Backup job
JobName:  backup-system
Level:Incremental
Client:   backup-fd
FileSet:  System
Pool: Default (From Job resource)
Storage:  Storage-tape (From Pool resource)
When: 2008-12-01 11:42:16
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=12349
You have messages.
*
*messages
01-Dec 11:42 backup-dir JobId 12349: Start Backup JobId 12349,
Job=backup-system.2008-12-01_11.42.11
01-Dec 11:42 backup-dir JobId 12349: Using Device "Dell-PV-110T"
01-Dec 11:42 backup-sd JobId 12349: Job
backup-system.2008-12-01_11.42.11 waiting. Cannot find any appendable
volumes.
Please use the "label"  command to create a new Volume for:
Storage:  "Dell-PV-110T" (/dev/nsa0)
Pool: Default
Media type:   LTO-2
*


What do I do to get the system back to its ground state?

The tape drive _was_ working fine for several weeks and had about 65
Gbytes of data
written to it.  All tapes had been thoroughly tested using btape and
fill before being put into
production.

Frustrated...


-- 
Russell Sutherland
[EMAIL PROTECTED]
+1.416.696.7600

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Auto label frustration....

2010-02-01 Thread Russell Sutherland
My autolabels just stopped working. For no apparent reason. Here's the  
error message:

*messages
01-Feb 12:49 tank-dir JobId 21689: Start Backup JobId 21689,  
Job=madhaus-home.2010-02-01_12.49.16_07
01-Feb 12:49 tank-dir JobId 21689: Using Device "Tank-large-device"
01-Feb 12:49 tank-sd JobId 21689: Job madhaus-home. 
2010-02-01_12.49.16_07 waiting. Cannot find any appendable volumes.
Please use the "label"  command to create a new Volume for:
 Storage:  "Tank-large-device" (/opt/bacula)
 Pool: Inc-Pool
 Media type:   Tank-large-file

I  believe my configuration is set to allow for auto labeling:

Pool {
 Name = Inc-Pool
 Pool Type = Backup
 Recycle = yes
 AutoPrune = yes
 Volume Retention = 20 days
 Maximum Volume Jobs = 216 # 6 times number of  
total Jobs, One week of Incs
 Label Format = Inc-
 Maximum Volumes = 7
}

Here's the appropriate section from the SD configuration file:

Device {
   Name = Tank-large-device
   Media Type = Tank-large-file
   Archive Device =  /opt/bacula
   Random Access = yes
   Automatic Mount = yes
   Removable Media = no
   Always Open = no
   Label Media = yes
}


And here's the job definition:


JobDefs {
   Name = "DefaultJob"
   Type = Backup
   Level = Incremental
   Client = tank-fd
   FileSet = "Full Set"
   Schedule = "WeeklyCycle"
   Messages = Standard
   Storage = Storage-tank-large
   Pool = Default
   Write Bootstrap = "/var/db/bacula/%c_%n.bsr"
   Priority = 10
   Full Backup Pool = Full-Pool
   Differential Backup Pool = Diff-Pool
   Incremental Backup Pool = Inc-Pool
}

Job {
   Name = madhaus-home
   Enabled = yes
   JobDefs = DefaultJob
   Client = madhaus-fd
   FileSet = "Home"
}


Here's the Pool Volume info:

+-++---+-+ 
+--+--+-+--+--- 
+-+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes   |  
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType
| LastWritten |
+-++---+-+ 
+--+--+-+--+--- 
+-+-+
|  26 | Inc-0026   | Full  |   1 | 40,815,227,791 | 
9 |1,728,000 |   1 |0 | 0 | Tank-large-file |  
2010-01-25 03:13:46 |
|  54 | Inc-0054   | Full  |   1 | 39,945,080,087 | 
9 |1,728,000 |   1 |0 | 0 | Tank-large-file |  
2010-01-29 03:20:10 |
|  55 | Inc-0055   | Full  |   1 |  4,443,222,157 | 
1 |1,728,000 |   1 |0 | 0 | Tank-large-file |  
2010-01-30 03:08:30 |
|  78 | Inc-0078   | Full  |   1 |  2,171,538,568 | 
0 |1,728,000 |   1 |0 | 0 | Tank-large-file |  
2010-01-30 03:13:46 |
| 245 | Inc-0245   | Error |   1 | 25,158,288,533 | 
5 |1,728,000 |   1 |0 | 0 | Tank-large-file |  
2009-01-22 13:54:26 |
| 344 | Inc-0344   | Full  |   1 | 49,866,197,436 |
11 |1,728,000 |   1 |0 | 0 | Tank-large-file |  
2010-01-20 03:19:11 |
| 399 | Inc-0399   | Full  |   1 | 49,112,140,617 |
11 |1,728,000 |   1 |0 | 0 | Tank-large-file |  
2010-01-13 03:09:55 |
+-++---+-+ 
+--+--+-+--+--- 
+-+-+


Any ideas?


---
Russell P. Sutherland   Email: russ @ madhaus.cns.utoronto.ca
4 Bancroft Ave., Rm. 102Voice: +1.416.978.0470
University of Toronto   Fax:   +1.416.978.6620
Toronto, ON  M5S 1C1
CANADA






--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Shell script question.

2010-03-04 Thread Russell Sutherland


   Why would you do this:

if [ "x$var" = "x" ]; then
...
fi


The above shell programming construct is ancient, well tested and  
reliable as it works on the various flavours of the Bourne/Korn/Bash  
shells.

Keep it simple.

---
Russell P. Sutherland   Email: russ @ madhaus.cns.utoronto.ca
4 Bancroft Ave., Rm. 102Voice: +1.416.978.0470
University of Toronto   Fax:   +1.416.978.6620
Toronto, ON  M5S 1C1
CANADA





--
Download IntelĀ® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users