Re: [Bacula-users] Problems getting restore to work

2010-04-14 Thread Jerry Lowry
Craig,  Actually I found out to late that the restore was doing exactly 
what the documentation said it would do.  It restored to the 'root' 
directory of the client.  So, I just got home last night and I got a 
call from one of the engineers that the root directory of the file 
server was full, "do you know anything about this directory /home...?
OOPS!!!   So we deleted the errant restore and I think they rebooted the 
file server.  
Goes to show that sometimes we can't remember everything!


H, how many times did I try that 4,5,6 with different options.

Anyway, it restored.

thanks,
jerry

Craig Ringer wrote:

On 14/04/10 00:19, Jerry Lowry wrote:


I also get an error saying that it can not create a directory on the
same disk for the same reason " ERR= No space left on device". But I
think this is the same type of error.


Betcha you've run out of free inodes on the target file system.

Run "df -i" to see.

--
Craig Ringer
--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Craig Ringer
On 14/04/10 00:19, Jerry Lowry wrote:

> I also get an error saying that it can not create a directory on the
> same disk for the same reason " ERR= No space left on device". But I
> think this is the same type of error.

Betcha you've run out of free inodes on the target file system.

Run "df -i" to see.

--
Craig Ringer

--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Jerry Lowry
thanks Ralf,  after playing around with the setting, that was what it 
was.  It seems to be restoring nowI say seems because the 'st dir' 
show the job waiting on the storage 'File 1', although when I look at 
the disk is has directories and files and is growing in used space.


Any ideas why it says 'waiting on storage 'File1'  and yet it is running?

jerry

Ralf Gross wrote:

Jerry Lowry schrieb:
  
Martin,  I am trying to restore the files to the file system on the  
bacula server.  The client 'swift-fd' definitely does NOT have room on  
the disk to restore all the pdfs.  That is why my restore is configured  
with -> "where= /backup0/bacula-restores".


No,
jlowry:swift 61>ls /home/hardware/backup0
/home/hardware/backup0: No such file or directory

When it tries the restore it fails to create the directory structure on  
the backup server.  This is based on the error message that I get.


12-Apr 13:54 swift-fd JobId 137: Error: restore.c:1133 Write error on 
/backup0/bacula-restores/home/hardware/pdf/rca/sarah.tv.pdf: No space left on 
device



your are trying to restore to the client swift-fd, I guess this is not
what you want. You have to change this in your restore settings.

Ralf

--
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
  
--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Ralf Gross
Jerry Lowry schrieb:
> Martin,  I am trying to restore the files to the file system on the  
> bacula server.  The client 'swift-fd' definitely does NOT have room on  
> the disk to restore all the pdfs.  That is why my restore is configured  
> with -> "where= /backup0/bacula-restores".
>
> No,
> jlowry:swift 61>ls /home/hardware/backup0
> /home/hardware/backup0: No such file or directory
>
> When it tries the restore it fails to create the directory structure on  
> the backup server.  This is based on the error message that I get.
>
> 12-Apr 13:54 swift-fd JobId 137: Error: restore.c:1133 Write error on 
> /backup0/bacula-restores/home/hardware/pdf/rca/sarah.tv.pdf: No space left on 
> device

your are trying to restore to the client swift-fd, I guess this is not
what you want. You have to change this in your restore settings.

Ralf

--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Jerry Lowry
Martin,  I am trying to restore the files to the file system on the 
bacula server.  The client 'swift-fd' definitely does NOT have room on 
the disk to restore all the pdfs.  That is why my restore is configured 
with -> "where= /backup0/bacula-restores".


No,
jlowry:swift 61>ls /home/hardware/backup0
/home/hardware/backup0: No such file or directory

When it tries the restore it fails to create the directory structure on 
the backup server.  This is based on the error message that I get.


12-Apr 13:54 swift-fd JobId 137: Error: restore.c:1133 Write error on 
/backup0/bacula-restores/home/hardware/pdf/rca/sarah.tv.pdf: No space left on 
device

thanks,
jerry


Martin Simmons wrote:

On Tue, 13 Apr 2010 09:19:11 -0700, Jerry Lowry said:


Craig,
The file systems are definitely not full, especially /backup0.  The disk 
backup is on the /backup1 volume, it size is below.


FilesystemSize  Used Avail Use% Mounted on
/dev/sda1 241G  6.5G  222G   3% /
tmpfs 1.7G  236K  1.7G   1% /dev/shm
/dev/sda3 963G   31G  884G   4% /backup0
/dev/sdb1 917G  232G  640G  27% /backup1
/dev/sde1 917G  201G  670G  24% /backup2
/dev/sdf1 917G   72M  871G   1% /backup3
/dev/sdc1 917G  210G  661G  25% /backup4
/dev/sdd1 917G  759G  112G  88% /backup5
/dev/sda4 165G  1.5G  155G   1% /database
++
total 232G
-rw-r- 1 root root 231G 2010-04-10 14:00 hardware-0014

I don't think any of the files are bigger that 2GB as they are all pdf 
documents and tool updates.  At most maybe 30 MB but nothing in the GB 
region.


As for restoring the right client.  I walk through the 'bat' restore and 
select the client ( only have three ) it walks through and creates the 
build list.  The 'bacula-restores' directory is owned by 'root' but is 
wide open as far as privileges.
I have only two different full backups this one and another one.  So 
there aren't alot of .bsr files to select from and they match the client 
that was backed up.


I also get an error saying that it can not create a directory on the 
same disk for the same reason " ERR= No space left on device".  But I 
think this is the same type of error.



When you do a restare, there are two clients to consider: the one from the
original backup and the one where the restore occurs.  By default, they are
the same.

Just to be doubly sure, was that df output generated on the machine running as
swift-fd, which is the where the restore is occurring?

Can you see the
/backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/ directory
on that machine?

__Martin



  

Still no joy in restore.
thanks


Craig Ringer wrote:


On 13/04/10 05:15, Jerry Lowry wrote:
  

Hi,  I am still tweaking a new installation of bacula 5.0.1 on Centos
5.4.  The backups work fine but I am trying to get the restore to work
and I keep getting the following errors:

Volume "hardware-0014" tofile:block  7:2933114700.
10-Apr 12:51 swift-fd JobId 118: Error: restore.c:1133 Write error on 
/backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/81_nios2eds_linux.tar: 
No space left on device


The volume is a disk drive and I am trying to restore it to a dedicated
restore directory on a different disk. I have checked the config files
with an old set that I was running under 1.38 and it look very similar(
ie names of pools and disks were changed).

"No space left on device" can also mean with some file systems "this 
file is bigger than the maximum file size permitted by this file system".


Is 81_nios2eds_linux.tar bigger than 2GB? What file system is being 
restored onto?


Are you *SURE* that /backup0/bacula-restores has the free space 
required (according to "df -h /backup0/bacula-restores" )?


Are you restoring to the right client?

--
Craig Ringer
  


--
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
  
--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Martin Simmons
> On Tue, 13 Apr 2010 09:19:11 -0700, Jerry Lowry said:
> 
> Craig,
> The file systems are definitely not full, especially /backup0.  The disk 
> backup is on the /backup1 volume, it size is below.
> 
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sda1 241G  6.5G  222G   3% /
> tmpfs 1.7G  236K  1.7G   1% /dev/shm
> /dev/sda3 963G   31G  884G   4% /backup0
> /dev/sdb1 917G  232G  640G  27% /backup1
> /dev/sde1 917G  201G  670G  24% /backup2
> /dev/sdf1 917G   72M  871G   1% /backup3
> /dev/sdc1 917G  210G  661G  25% /backup4
> /dev/sdd1 917G  759G  112G  88% /backup5
> /dev/sda4 165G  1.5G  155G   1% /database
> ++
> total 232G
> -rw-r- 1 root root 231G 2010-04-10 14:00 hardware-0014
> 
> I don't think any of the files are bigger that 2GB as they are all pdf 
> documents and tool updates.  At most maybe 30 MB but nothing in the GB 
> region.
> 
> As for restoring the right client.  I walk through the 'bat' restore and 
> select the client ( only have three ) it walks through and creates the 
> build list.  The 'bacula-restores' directory is owned by 'root' but is 
> wide open as far as privileges.
> I have only two different full backups this one and another one.  So 
> there aren't alot of .bsr files to select from and they match the client 
> that was backed up.
> 
> I also get an error saying that it can not create a directory on the 
> same disk for the same reason " ERR= No space left on device".  But I 
> think this is the same type of error.

When you do a restare, there are two clients to consider: the one from the
original backup and the one where the restore occurs.  By default, they are
the same.

Just to be doubly sure, was that df output generated on the machine running as
swift-fd, which is the where the restore is occurring?

Can you see the
/backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/ directory
on that machine?

__Martin



> 
> Still no joy in restore.
> thanks
> 
> 
> Craig Ringer wrote:
> > On 13/04/10 05:15, Jerry Lowry wrote:
> >> Hi,  I am still tweaking a new installation of bacula 5.0.1 on Centos
> >> 5.4.  The backups work fine but I am trying to get the restore to work
> >> and I keep getting the following errors:
> >>
> >> Volume "hardware-0014" tofile:block  7:2933114700.
> >> 10-Apr 12:51 swift-fd JobId 118: Error: restore.c:1133 Write error on 
> >> /backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/81_nios2eds_linux.tar:
> >>  
> >> No space left on device
> >>
> >> The volume is a disk drive and I am trying to restore it to a dedicated
> >> restore directory on a different disk. I have checked the config files
> >> with an old set that I was running under 1.38 and it look very similar(
> >> ie names of pools and disks were changed).
> >
> > "No space left on device" can also mean with some file systems "this 
> > file is bigger than the maximum file size permitted by this file system".
> >
> > Is 81_nios2eds_linux.tar bigger than 2GB? What file system is being 
> > restored onto?
> >
> > Are you *SURE* that /backup0/bacula-restores has the free space 
> > required (according to "df -h /backup0/bacula-restores" )?
> >
> > Are you restoring to the right client?
> >
> > -- 
> > Craig Ringer
> 

--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Jerry Lowry

Craig,
The file systems are definitely not full, especially /backup0.  The disk 
backup is on the /backup1 volume, it size is below.


FilesystemSize  Used Avail Use% Mounted on
/dev/sda1 241G  6.5G  222G   3% /
tmpfs 1.7G  236K  1.7G   1% /dev/shm
/dev/sda3 963G   31G  884G   4% /backup0
/dev/sdb1 917G  232G  640G  27% /backup1
/dev/sde1 917G  201G  670G  24% /backup2
/dev/sdf1 917G   72M  871G   1% /backup3
/dev/sdc1 917G  210G  661G  25% /backup4
/dev/sdd1 917G  759G  112G  88% /backup5
/dev/sda4 165G  1.5G  155G   1% /database
++
total 232G
-rw-r- 1 root root 231G 2010-04-10 14:00 hardware-0014

I don't think any of the files are bigger that 2GB as they are all pdf 
documents and tool updates.  At most maybe 30 MB but nothing in the GB 
region.


As for restoring the right client.  I walk through the 'bat' restore and 
select the client ( only have three ) it walks through and creates the 
build list.  The 'bacula-restores' directory is owned by 'root' but is 
wide open as far as privileges.
I have only two different full backups this one and another one.  So 
there aren't alot of .bsr files to select from and they match the client 
that was backed up.


I also get an error saying that it can not create a directory on the 
same disk for the same reason " ERR= No space left on device".  But I 
think this is the same type of error.


Still no joy in restore.
thanks


Craig Ringer wrote:

On 13/04/10 05:15, Jerry Lowry wrote:

Hi,  I am still tweaking a new installation of bacula 5.0.1 on Centos
5.4.  The backups work fine but I am trying to get the restore to work
and I keep getting the following errors:

Volume "hardware-0014" tofile:block  7:2933114700.
10-Apr 12:51 swift-fd JobId 118: Error: restore.c:1133 Write error on 
/backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/81_nios2eds_linux.tar: 
No space left on device


The volume is a disk drive and I am trying to restore it to a dedicated
restore directory on a different disk. I have checked the config files
with an old set that I was running under 1.38 and it look very similar(
ie names of pools and disks were changed).


"No space left on device" can also mean with some file systems "this 
file is bigger than the maximum file size permitted by this file system".


Is 81_nios2eds_linux.tar bigger than 2GB? What file system is being 
restored onto?


Are you *SURE* that /backup0/bacula-restores has the free space 
required (according to "df -h /backup0/bacula-restores" )?


Are you restoring to the right client?

--
Craig Ringer
--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Matija Nalis
On Mon, Apr 12, 2010 at 02:15:05PM -0700, Jerry Lowry wrote:
> Hi,  I am still tweaking a new installation of bacula 5.0.1 on Centos  
> 5.4.  The backups work fine but I am trying to get the restore to work  
> and I keep getting the following errors:
>
> Volume "hardware-0014" to file:block 7:2933114700.
> 10-Apr 12:51 swift-fd JobId 118: Error: restore.c:1133 Write error on 
> /backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/81_nios2eds_linux.tar:
>  No space left on device
>
> The volume is a disk drive and I am trying to restore it to a dedicated  
> restore directory on a different disk.  I have checked the config files  


It looks to me like you've run out of disk space (Disk full) on
your /backup0/bacula-restores disk

--
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


Re: [Bacula-users] Problems getting restore to work

2010-04-13 Thread Craig Ringer
On 13/04/10 05:15, Jerry Lowry wrote:
> Hi,  I am still tweaking a new installation of bacula 5.0.1 on Centos
> 5.4.  The backups work fine but I am trying to get the restore to work
> and I keep getting the following errors:
>
> Volume "hardware-0014" tofile:block  7:2933114700.
> 10-Apr 12:51 swift-fd JobId 118: Error: restore.c:1133 Write error on 
> /backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/81_nios2eds_linux.tar:
>  No space left on device
>
> The volume is a disk drive and I am trying to restore it to a dedicated
> restore directory on a different disk. I have checked the config files
> with an old set that I was running under 1.38 and it look very similar(
> ie names of pools and disks were changed).

"No space left on device" can also mean with some file systems "this 
file is bigger than the maximum file size permitted by this file system".

Is 81_nios2eds_linux.tar bigger than 2GB? What file system is being 
restored onto?

Are you *SURE* that /backup0/bacula-restores has the free space required 
(according to "df -h /backup0/bacula-restores" )?

Are you restoring to the right client?

--
Craig Ringer

--
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


[Bacula-users] Problems getting restore to work

2010-04-12 Thread Jerry Lowry
Hi,  I am still tweaking a new installation of bacula 5.0.1 on Centos 
5.4.  The backups work fine but I am trying to get the restore to work 
and I keep getting the following errors:


Volume "hardware-0014" to file:block 7:2933114700.
10-Apr 12:51 swift-fd JobId 118: Error: restore.c:1133 Write error on 
/backup0/bacula-restores/home/hardware/pdf/altera/quartus/81_linux/81_nios2eds_linux.tar:
 No space left on device

The volume is a disk drive and I am trying to restore it to a dedicated 
restore directory on a different disk.  I have checked the config files 
with an old set that I was running under 1.38 and it look very similar( 
ie names of pools and disks were changed).


thanks

Here are my config files ( directory and storage):
#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
 Name = "RestoreHardware"
 Type = Restore
 Client=distress-fd
 FileSet="Swift Hardware Set" 
 Storage = File1 
 Pool = Restore

 Messages = Standard
 Where = /backup0/bacula-restores
}
# List of files to be backed up
FileSet {
 Name = "Swift Hardware Set"
 Include {
   Options {
 signature = MD5
   }
#   
#  Put your list of files here, preceded by 'File =', one per line

#or include an external list with:
#
#File = # Do not use "localhost" here   
 Address = distress# N.B. Use a fully qualified name here

 SDPort = 9103
 Password = ""
 Device = FileStorage0
 Media Type = File
}


# Definition of file storage device
Storage {
 Name = File1   # used for home/hardware
# Do not use "localhost" here   
 Address = distress# N.B. Use a fully qualified name here

 SDPort = 9103
 Password = ""
 Device = FileStorage1
 Media Type = File
}
# Default tape pool definition
Pool {
 Name = Restore
 Pool Type = Backup
 Recycle = yes   # Bacula can automatically recycle 
Volumes

 AutoPrune = yes # Prune expired volumes
 Volume Retention = 30 days # one month
}

# File Pool definition
Pool {
 Name = Pool0
 Pool Type = Backup
 Recycle = yes   # Bacula can automatically recycle 
Volumes

 AutoPrune = yes # Prune expired volumes
 Volume Retention = 7 days # one week
 Maximum Volume Bytes = 500G  # Limit Volume size to something 
reasonable

 Maximum Volumes = 2   # Limit number of Volumes in Pool
}

# File Pool definition
Pool {
 Name = Pool1
 Pool Type = Backup
 Recycle = yes   # Bacula can automatically recycle 
Volumes

 AutoPrune = yes # Prune expired volumes
 Volume Retention = 7 days # one week
 Maximum Volume Bytes = 500G  # Limit Volume size to something 
reasonable

 Maximum Volumes = 2   # Limit number of Volumes in Pool
 Label Format = "hardware-"
}
**
bacula-sd
Device {
 Name = Restore
 Media Type = File
 Archive Device = /backup0/bacula-restores
 LabelMedia = yes;   # lets Bacula label unlabeled media
 Random Access = Yes;
 AutomaticMount = yes;   # when device opened, read it
 RemovableMedia = no;
 AlwaysOpen = no;
}

Device {
 Name = FileStorage0
 Media Type = File
 Archive Device = /backup0/DBB
 LabelMedia = yes;   # lets Bacula label unlabeled media
 Random Access = Yes;
 AutomaticMount = yes;   # when device opened, read it
 RemovableMedia = no;
 AlwaysOpen = no;
}

Device {
 Name = FileStorage1
 Media Type = File
 Archive Device = /backup1
 LabelMedia = yes;   # lets Bacula label unlabeled media
 Random Access = Yes;
 AutomaticMount = yes;   # when device opened, read it
 RemovableMedia = no;
 AlwaysOpen = no;
}

--
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