SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Couple of Newbie Questions
Author Message
Post Couple of Newbie Questions 
I've been having an issue doing restores and I know it has to be something I'm
missing but I can't put my finger on it just yet. The problem is the job
completes successfully but the directory I try to restore doesn't actually
restore (or if it does I don't know where to).

Here's a snip of the log:

15-Mar 06:25 amanda-dir: Bacula 2.0.3 (06Mar07): 15-Mar-2007 06:25:27
JobId: 31
Job: RestoreFiles.2007-03-15_06.20.06
Client: phantom-fd
Start time: 15-Mar-2007 06:20:08
End time: 15-Mar-2007 06:25:27
Files Expected: 7
Files Restored: 8
Bytes Restored: 4,102
Rate: 0.0 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK

15-Mar 06:25 amanda-dir: Begin pruning Jobs.
15-Mar 06:25 amanda-dir: No Jobs found to prune.
15-Mar 06:25 amanda-dir: Begin pruning Files.
15-Mar 06:25 amanda-dir: No Files found to prune.
15-Mar 06:25 amanda-dir: End auto prune.

Now if I check on the host, the directory actually wasn't restored? The
restore was supposed to be /home/clamav on host 'phantom'

[root < at > phantom home]# pwd && ls -ld /home/clamav
/home
ls: /home/clamav: No such file or directory

I tried doing the restore from the client using bconsole and thought maybe it
would restore to my cwd on the client but it's not there either, then I tried
from the master (amanda) and it doesn't seem to restore there either. I'm
pretty sure it's restoring something somewhere but I can't seem to figure out
where :/

Is there a verbose mode for a restore possibly that shows line by line
transactions?

Second question: one error I get is this:

15-Mar 06:22 amanda-sd: Ready to read from volume "BRT000" on device "Drive-1"
(/dev/nst0).
15-Mar 06:22 amanda-sd: Forward spacing Volume "BRT000" to file:block 31:0.
15-Mar 06:24 amanda-sd: Reposition from (file:block) 31:10282 to 33:0
15-Mar 06:25 amanda-sd: End of file 34 on device "Drive-1" (/dev/nst0), Volume
"BRT000"
15-Mar 06:25 amanda-sd: Alert: smartctl version 5.33 [i686-redhat-linux-gnu]
Copyright (C) 2002-4 Bruce Allen
15-Mar 06:25 amanda-sd: Alert: Home page is http://smartmontools.sourceforge.net/
15-Mar 06:25 amanda-sd: Alert:
15-Mar 06:25 amanda-sd: Alert: Smartctl open device: *None* failed: No such
file or directory
15-Mar 06:25 amanda-sd: 3997 Bad alert command: sh -c 'smartctl -d scsi -H -l
error *None*': ERR=Child exited with code 2.

So it looks like it's not reading the %c variable or it's something I have yet
to define maybe? Here is my device config:

Device {
Name = Drive-1 #
Drive Index = 0
Media Type = DLT7000
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = no;
Alert Command = "sh -c 'smartctl -d scsi -H -l error %c'"
}

Does anyone have a better/working line I could use? I know if I try to run it
from the command line I get:

# sh -c 'smartctl -d scsi -H -l error /dev/nst0'
smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl open device: /dev/nst0 failed: Device or resource busy

Maybe I should set AlwaysOpen = yes; to AlwaysOpen = no;?

Comments/suggestions?

Regards,
Lonny
--
"To mess up a Linux box, you need to work at it; to mess up your Windows box,
you just need to work ON it."

Post Couple of Newbie Questions 
On Thu, 15 Mar 2007, Lonny Selinger wrote:

I've been having an issue doing restores and I know it has to be something I'm
missing but I can't put my finger on it just yet. The problem is the job
completes successfully but the directory I try to restore doesn't actually
restore (or if it does I don't know where to).

By default, bacula restores to /tmp/bacula-restores. Docs tell me that the
only way to change that is to choose 'mod' at the "OK to run?" prompt, and
set 'Where:' equal to 'wherever you want to restore the files' (or,
possibly, /).

-- D

Post Couple of Newbie Questions 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Check /tmp/bacula-restores/home/clamav. It looks like you have a
successful restore anyway. Barring that, hell, do a find / -name "clamav".

=R

Lonny Selinger wrote:
I've been having an issue doing restores and I know it has to be something I'm
missing but I can't put my finger on it just yet. The problem is the job
completes successfully but the directory I try to restore doesn't actually
restore (or if it does I don't know where to).

Here's a snip of the log:

15-Mar 06:25 amanda-dir: Bacula 2.0.3 (06Mar07): 15-Mar-2007 06:25:27
JobId: 31
Job: RestoreFiles.2007-03-15_06.20.06
Client: phantom-fd
Start time: 15-Mar-2007 06:20:08
End time: 15-Mar-2007 06:25:27
Files Expected: 7
Files Restored: 8
Bytes Restored: 4,102
Rate: 0.0 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK

15-Mar 06:25 amanda-dir: Begin pruning Jobs.
15-Mar 06:25 amanda-dir: No Jobs found to prune.
15-Mar 06:25 amanda-dir: Begin pruning Files.
15-Mar 06:25 amanda-dir: No Files found to prune.
15-Mar 06:25 amanda-dir: End auto prune.

Now if I check on the host, the directory actually wasn't restored? The
restore was supposed to be /home/clamav on host 'phantom'

[root < at > phantom home]# pwd && ls -ld /home/clamav
/home
ls: /home/clamav: No such file or directory

I tried doing the restore from the client using bconsole and thought maybe it
would restore to my cwd on the client but it's not there either, then I tried
from the master (amanda) and it doesn't seem to restore there either. I'm
pretty sure it's restoring something somewhere but I can't seem to figure out
where :/

Is there a verbose mode for a restore possibly that shows line by line
transactions?

Second question: one error I get is this:

15-Mar 06:22 amanda-sd: Ready to read from volume "BRT000" on device "Drive-1"
(/dev/nst0).
15-Mar 06:22 amanda-sd: Forward spacing Volume "BRT000" to file:block 31:0.
15-Mar 06:24 amanda-sd: Reposition from (file:block) 31:10282 to 33:0
15-Mar 06:25 amanda-sd: End of file 34 on device "Drive-1" (/dev/nst0), Volume
"BRT000"
15-Mar 06:25 amanda-sd: Alert: smartctl version 5.33 [i686-redhat-linux-gnu]
Copyright (C) 2002-4 Bruce Allen
15-Mar 06:25 amanda-sd: Alert: Home page is http://smartmontools.sourceforge.net/
15-Mar 06:25 amanda-sd: Alert:
15-Mar 06:25 amanda-sd: Alert: Smartctl open device: *None* failed: No such
file or directory
15-Mar 06:25 amanda-sd: 3997 Bad alert command: sh -c 'smartctl -d scsi -H -l
error *None*': ERR=Child exited with code 2.

So it looks like it's not reading the %c variable or it's something I have yet
to define maybe? Here is my device config:

Device {
Name = Drive-1 #
Drive Index = 0
Media Type = DLT7000
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = no;
Alert Command = "sh -c 'smartctl -d scsi -H -l error %c'"
}

Does anyone have a better/working line I could use? I know if I try to run it
from the command line I get:

# sh -c 'smartctl -d scsi -H -l error /dev/nst0'
smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl open device: /dev/nst0 failed: Device or resource busy

Maybe I should set AlwaysOpen = yes; to AlwaysOpen = no;?

Comments/suggestions?

Regards,
Lonny

- --
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III
|$&| |__| | | |__/ | \| _| |novosirj < at > um... - 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

iD8DBQFF+VzAmb+gadEcsb4RAnaTAKCLNnZy7rpK0pa5VyMAvFgD+7tODgCeMbHO
8EY/vRIjI72i9vHx/kegPso=
=xhE0
-----END PGP SIGNATURE-----

Post Couple of Newbie Questions 
Check /tmp/bacula-restores/home/clamav. It looks like you have a
successful restore anyway. Barring that, hell, do a find / -name "clamav".

=R

Thanks guys that was it ... I did actually do a find / -name \*clamav\*
however in my haste I didn't realize i was on the wrong host (master rather
than phantom). I'll have to do the mod thing to restore from now on, a couple
of these machines don't have a lot of space in /tmp :)

Thanks again!!

--
Lonny
--
"To mess up a Linux box, you need to work at it; to mess up your Windows box,
you just need to work ON it."

Post Couple of Newbie Questions 
On Thursday 15 March 2007 15:45, David Romerstein wrote:
On Thu, 15 Mar 2007, Lonny Selinger wrote:
I've been having an issue doing restores and I know it has to be
something I'm missing but I can't put my finger on it just yet. The
problem is the job completes successfully but the directory I try to
restore doesn't actually restore (or if it does I don't know where to).

By default, bacula restores to /tmp/bacula-restores. Docs tell me that the
only way to change that is to choose 'mod' at the "OK to run?" prompt, and
set 'Where:' equal to 'wherever you want to restore the files' (or,
possibly, /).


Though the manual may not be very explicit on this, you *should* also be able
to do:

restore where="/xxx"

and then /xxx with be used in place of /tmp/bacula-restores as the "default".

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB