port NNNN is not secure - Only mentioned in Planner, not amcheck

2006-08-11 Thread Gavin Henry
Dear all,

I am just wondering, since we compiled --with-ssh-security, none of our
amdumps are working due to planner reporting:

planner: ERROR dell2 NAK: host xxx: port 32916 not secure
  planner: ERROR nas1 NAK: host xxx: port 32916 not secure
  planner: ERROR dell1 NAK: host xxx: port 32916 not secure


amcheck doesn't show this error, like mentioned at:

http://wiki.zmanda.com/index.php/Amcheck:_port__is_not_secure

Is this because we aren't using ssh keys?

Lastly:

driver: WARNING: /storage/amanda: 104857600 KB requested, but only
-2147483648 KB
available.

Above seems to be from ou holding disk being 6.9T big. Where can I submit
a bug for amcheck/driver?

Gavin.

-- 
Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E [EMAIL PROTECTED]

Open Source. Open Solutions(tm).

http://www.suretecsystems.com/




amanda client inetd problem

2006-08-11 Thread Jeff Portwine



I'm trying to configure a couple of new amanda 
clients, and when the amanda server was unable to get a response from them I 
looked in the system logs on one of the clients and I saw:

Aug 11 08:32:27client inetd[435]: 
/usr/local/libexec/amandad (pid 2479): exit status 127Aug 11 08:32:27 client 
inetd[435]: /usr/local/libexec/amandad (pid 2480): exit status 127Aug 11 
08:32:27client inetd[435]: amanda/udp server failing (looping or being 
flooded), service terminated for 10 min
The first two lines are actually repeated a whole 
bunch of times before the final message...

Any idea what could be causing 
this? 
My inetd entry looks like:

amanda dgram udp wait backup 
/usr/local/libexec/amandad amandad


Thanks!
-Jeff




Re: amanda client inetd problem

2006-08-11 Thread Paul Bijnens

On 2006-08-11 14:41, Jeff Portwine wrote:
I'm trying to configure a couple of new amanda clients, and when the 
amanda server was unable to get a response from them I looked in the 
system logs on one of the clients and I saw:
 
Aug 11 08:32:27 client inetd[435]: /usr/local/libexec/amandad (pid 
2479): exit status 127
Aug 11 08:32:27 client inetd[435]: /usr/local/libexec/amandad (pid 
2480): exit status 127
Aug 11 08:32:27 client inetd[435]: amanda/udp server failing (looping or 
being flooded), service terminated for 10 min
The first two lines are actually repeated a whole bunch of times before 
the final message...
 
Any idea what could be causing this?   
My inetd entry looks like:
 
amanda dgram udp wait backup /usr/local/libexec/amandad amandad



Or was it nowait, and you changed it to wait (or fixed the username 
backup), but forgot to sig-HUP the inetd process after you fixed it?


What happens when you execute the command /usr/local/libexec/amandad
as user backup manually?

It should timeout after 30 seconds; or if you type something on the 
keyboard, it will abort immediatly.


More tips to check:

http://wiki.zmanda.com/index.php/Amcheck:_selfcheck_request_failed



--
Paul Bijnens, xplanation Technology ServicesTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: amanda client inetd problem

2006-08-11 Thread Jeff Portwine



amanda dgram udp wait backup /usr/local/libexec/amandad amandad



Or was it nowait, and you changed it to wait (or fixed the username 
backup), but forgot to sig-HUP the inetd process after you fixed it?


No, I added the inetd entry as listed above and then actually rebooted the 
machine to make sure inetd restarted properly.




What happens when you execute the command /usr/local/libexec/amandad
as user backup manually?


$ /usr/local/libexec/amandad
/usr/local/libexec/amandad: error in loading shared libraries: 
libamclient-2.5.0p2.so: cannot open shared object file: No such file or 
directory


However, that library does exist...
$ ls -l /usr/local/lib/libam*
-rwxr-xr-x1 root root   361796 Aug 11 08:07 
/usr/local/lib/libamanda-2.5.0p2.so
-rw-r--r--1 root root  1270664 Aug 11 08:07 
/usr/local/lib/libamanda.a
-rwxr-xr-x1 root root  875 Aug 11 08:07 
/usr/local/lib/libamanda.la
lrwxrwxrwx1 root root   20 Aug 11 08:07 
/usr/local/lib/libamanda.so - libamanda-2.5.0p2.so
-rwxr-xr-x1 root root99610 Aug 11 08:07 
/usr/local/lib/libamclient-2.5.0p2.so
-rw-r--r--1 root root   239810 Aug 11 08:07 
/usr/local/lib/libamclient.a
-rwxr-xr-x1 root root  889 Aug 11 08:07 
/usr/local/lib/libamclient.la
lrwxrwxrwx1 root root   22 Aug 11 08:07 
/usr/local/lib/libamclient.so - libamclient-2.5.0p2.so


so I'm not sure what the problem is.


http://wiki.zmanda.com/index.php/Amcheck:_selfcheck_request_failed


I've been going through this list .. but so far not found exactly what the 
problem is :\


Thanks,
Jeff



Re: amanda client inetd problem

2006-08-11 Thread Matt Hyclak
On Fri, Aug 11, 2006 at 09:36:21AM -0400, Jeff Portwine enlightened us:
 amanda dgram udp wait backup /usr/local/libexec/amandad amandad
 
 
 Or was it nowait, and you changed it to wait (or fixed the username 
 backup), but forgot to sig-HUP the inetd process after you fixed it?
 
 No, I added the inetd entry as listed above and then actually rebooted the 
 machine to make sure inetd restarted properly.
 
 
 What happens when you execute the command /usr/local/libexec/amandad
 as user backup manually?
 
 $ /usr/local/libexec/amandad
 /usr/local/libexec/amandad: error in loading shared libraries: 
 libamclient-2.5.0p2.so: cannot open shared object file: No such file or 
 directory
 
 However, that library does exist...
 $ ls -l /usr/local/lib/libam*
 -rwxr-xr-x1 root root   361796 Aug 11 08:07 
 /usr/local/lib/libamanda-2.5.0p2.so
 -rw-r--r--1 root root  1270664 Aug 11 08:07 
 /usr/local/lib/libamanda.a
 -rwxr-xr-x1 root root  875 Aug 11 08:07 
 /usr/local/lib/libamanda.la
 lrwxrwxrwx1 root root   20 Aug 11 08:07 
 /usr/local/lib/libamanda.so - libamanda-2.5.0p2.so
 -rwxr-xr-x1 root root99610 Aug 11 08:07 
 /usr/local/lib/libamclient-2.5.0p2.so
 -rw-r--r--1 root root   239810 Aug 11 08:07 
 /usr/local/lib/libamclient.a
 -rwxr-xr-x1 root root  889 Aug 11 08:07 
 /usr/local/lib/libamclient.la
 lrwxrwxrwx1 root root   22 Aug 11 08:07 
 /usr/local/lib/libamclient.so - libamclient-2.5.0p2.so
 
 so I'm not sure what the problem is.
 

Is /usr/local/lib in your ld.so.conf and did you run ldconfig after
installing amanda?

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263


Re: amanda client inetd problem

2006-08-11 Thread Jeff Portwine
That was my first thought too, but /usr/local/lib is already in 
/etc/ld.so.conf




Have you the directory /usr/local/lib listed on /etc/ld.so.conf? This file 
is a kind of path for finding libraries. You probably don't have it.


After adding it you have to run ldconfig to update the cache used to find 
libraries.





-Jeff



Re: amanda client inetd problem

2006-08-11 Thread rom

Jeff Portwine wrote:




What happens when you execute the command /usr/local/libexec/amandad
as user backup manually?


$ /usr/local/libexec/amandad
/usr/local/libexec/amandad: error in loading shared libraries: 
libamclient-2.5.0p2.so: cannot open shared object file: No such file or 
directory


However, that library does exist...

The library may exist but the system could not find it.

Have you the directory /usr/local/lib listed on /etc/ld.so.conf? This 
file is a kind of path for finding libraries. You probably don't have it.


After adding it you have to run ldconfig to update the cache used to 
find libraries.


If amandad doesn't work when called by hand it won't work when called by 
inetd... ;-)



Bye!



Re: amanda client inetd problem

2006-08-11 Thread Jon LaBadie
On Fri, Aug 11, 2006 at 09:36:21AM -0400, Jeff Portwine wrote:
 
 amanda dgram udp wait backup /usr/local/libexec/amandad amandad
 
 
 Or was it nowait, and you changed it to wait (or fixed the username 
 backup), but forgot to sig-HUP the inetd process after you fixed it?
 
 No, I added the inetd entry as listed above and then actually rebooted the 
 machine to make sure inetd restarted properly.
 
 
 What happens when you execute the command /usr/local/libexec/amandad
 as user backup manually?
 
 $ /usr/local/libexec/amandad
 /usr/local/libexec/amandad: error in loading shared libraries: 
 libamclient-2.5.0p2.so: cannot open shared object file: No such file or 
 directory
 
 However, that library does exist...
 $ ls -l /usr/local/lib/libam*
 -rwxr-xr-x1 root root   361796 Aug 11 08:07 

From a few things I'm guessing that both client and server are
running on linux systems.  Out of curiosity, which distros
still use inetd rather than xinetd?

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: amanda client inetd problem - solved

2006-08-11 Thread Jeff Portwine
I guess the problem was simply that it couldn't find the libraries in 
/usr/local/lib afterall, though I don't really know why.   I tried making a 
symbolic link in /usr/lib to all the libam libraries in /usr/local/lib and 
it fixed the problem I was having.Maybe just running ldconfig would have 
fixed it afterall... but I didn't add /usr/local/lib to the ld.so.conf file 
myself, it was already there so it shouldn't have needed an ldconfig, but I 
guess you can't assume anything.


At any rate , that particular problem seems to be solved.. thanks for the 
input.


-Jeff



Re: amanda client inetd problem

2006-08-11 Thread Geert Uytterhoeven
On Fri, 11 Aug 2006, rom wrote:
 Jeff Portwine wrote:
   What happens when you execute the command /usr/local/libexec/amandad
   as user backup manually?
  
  $ /usr/local/libexec/amandad
  /usr/local/libexec/amandad: error in loading shared libraries:
  libamclient-2.5.0p2.so: cannot open shared object file: No such file or
  directory
  
  However, that library does exist...

And is it readable by the backup user?

 The library may exist but the system could not find it.
 
 Have you the directory /usr/local/lib listed on /etc/ld.so.conf? This file is
 a kind of path for finding libraries. You probably don't have it.
 
 After adding it you have to run ldconfig to update the cache used to find
 libraries.
 
 If amandad doesn't work when called by hand it won't work when called by
 inetd... ;-)

What does `ldd /usr/local/libexec/amandad' say?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say programmer or something like that.
-- Linus Torvalds


Re: amanda client inetd problem

2006-08-11 Thread Gene Heskett
On Friday 11 August 2006 09:53, Jeff Portwine wrote:
That was my first thought too, but /usr/local/lib is already in
/etc/ld.so.conf

Did you run, by hand, and as root, the ldconfig command to update those 
links?  I have to do this when I install a new snapshot of amanda.  
Always.

 Have you the directory /usr/local/lib listed on /etc/ld.so.conf? This
 file is a kind of path for finding libraries. You probably don't have
 it.

 After adding it you have to run ldconfig to update the cache used to
 find libraries.

-Jeff

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.


Re: amanda client inetd problem - solved

2006-08-11 Thread Gene Heskett
On Friday 11 August 2006 10:22, Jeff Portwine wrote:
I guess the problem was simply that it couldn't find the libraries in
/usr/local/lib afterall, though I don't really know why.   I tried making
 a symbolic link in /usr/lib to all the libam libraries in /usr/local/lib
 and it fixed the problem I was having.Maybe just running ldconfig
 would have fixed it afterall... but I didn't add /usr/local/lib to the
 ld.so.conf file myself, it was already there so it shouldn't have needed
 an ldconfig, but I guess you can't assume anything.

But, here anyway, anytime any of these libraries is updated or installed, 
ldconfig must be run, by root, in order for those libraries to become 
properly softlinked to their more generalized names.

In the linux method of finding a file it needs, if you strace a process, 
you'll see how it searches for the resources a process needs, often by 
making 4 or 5 guesses, which if they fail, it will then consult the list, 
a cache file IIRC, and find the location by scanning this cache file, and 
the next open attempt is then successfull.  But if that cache file isn't 
kept current, even that lookup with fail as the linkage it contains is 
stale.  I believe that was the failure you were seeing.  When usng a 
package manager such as rpm, the 'post-install' script will often do this 
for you, but from tarball installs where the 'make install', which would 
be the logical place to perform this after all the copying has been done, 
usually doesn't do a fresh run of ldconfig.

Maybe we should file a bug against the amanda Makefile?  Possibly, but now 
that I know it needs to do done, its almost a habit to do so, and a 
relatively minor nit to pick.  :)

At any rate , that particular problem seems to be solved.. thanks for the
input.

-Jeff

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.


Re: amanda client inetd problem

2006-08-11 Thread Frank Smith
Jon LaBadie wrote:
 
 From a few things I'm guessing that both client and server are
 running on linux systems.  Out of curiosity, which distros
 still use inetd rather than xinetd?
 
Debian still uses inetd by default, although xinetd and several
other variants are available as optional packages.

Frank

-- 
Frank Smith  [EMAIL PROTECTED]
Sr. Systems Administrator   Voice: 512-374-4673
Hoover's Online   Fax: 512-374-4501


Re: amanda client inetd problem

2006-08-11 Thread Gene Heskett
On Friday 11 August 2006 10:21, Jon LaBadie wrote:
On Fri, Aug 11, 2006 at 09:36:21AM -0400, Jeff Portwine wrote:
 amanda dgram udp wait backup /usr/local/libexec/amandad amandad
 
 Or was it nowait, and you changed it to wait (or fixed the
  username backup), but forgot to sig-HUP the inetd process after you
  fixed it?

 No, I added the inetd entry as listed above and then actually rebooted
 the machine to make sure inetd restarted properly.

 What happens when you execute the command /usr/local/libexec/amandad
 as user backup manually?

 $ /usr/local/libexec/amandad
 /usr/local/libexec/amandad: error in loading shared libraries:
 libamclient-2.5.0p2.so: cannot open shared object file: No such file or
 directory

 However, that library does exist...
 $ ls -l /usr/local/lib/libam*
 -rwxr-xr-x1 root root   361796 Aug 11 08:07

From a few things I'm guessing that both client and server are
running on linux systems.  Out of curiosity, which distros
still use inetd rather than xinetd?

The debian camp and its offspring ubuntu, hasn't made the switch yet that 
I'm aware of.  I just installed kubuntu-6.06 on my milling machines box so 
I could stay reasonably well synched with the emc2 cvs, and was amazed 
that the default install was still using inetd, or at least the 
whole /etc/xinetd.d thing seemed to be missing.  I installed it, but the 
basic install contains only:

[EMAIL PROTECTED]:~$ ls /etc/xinetd.d
chargen  daytime  echo  time

So its not as if the system would die if I did an rm -fR /etc/xinetd.d.

The added advantages of xinetd over inetd would seeem to make it imperitive 
to switch, but then we all know the debian camp moves at glacial speed for 
the core stuff.

Maybe thats an unfair remark Jon, I just did a cat of /etc/inetd.conf and 
found it only contains:
#off# netbios-ssn stream  tcp nowait  
root/usr/sbin/tcpd  /usr/sbin/smbd

so what the heck *are* they doing to control daemon launching?  Me wanders 
off, scratching head in wonderment.

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.


tape_splitsize 20 Gb and 200GB LTO2 Tapes

2006-08-11 Thread Gavin Henry
Dear All,

We are trying to dump over 300GB to go across 2 tapes, as per:

http://wiki.zmanda.com/index.php/Splitting_dumps_across_tapes

But keep getting:

nas1:/storage/samba 0 planner: [dump larger than available tape space,
280606560 KB, but cannot incremental dump new disk]

Our dumptype is:

define dumptype user-tar-span {
   root-tar
   tape_splitsize 20 Gb
   comment tape-spanning user partitions dumped with tar
   priority medium
}

Any tips?

Thanks.

-- 
Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E [EMAIL PROTECTED]

Open Source. Open Solutions(tm).

http://www.suretecsystems.com/




Amanda migration from SGI-Irix to Linux

2006-08-11 Thread Luc Lalonde

Hello Folks,

I'm getting this error when I try to use the tapes (LTO1) on a 
StorageTek L40 Jukebox:


st1: Block limits 1 - 16777215 bytes.
st1: Incorrect block size.
st1: Incorrect block size.
scsi(0): Resetting Cmnd=0x01004a871b00, Handle=0x0202, 
action=0x2

scsi(0:1:15:0): Queueing device reset command.
st1: Error with sense data: Current st1: sense key Not Ready
Additional sense: Logical unit not ready, cause not reportable

I'm in the process of migrating Amanda from a SGI (Origin 300) server to 
a Linux server.   I'm hoping that I don't have to re-label all my tapes 
and lose the backups created with the old SGI Amanda server.


Thanks!

--
Luc Lalonde, analyste
-
Département de génie informatique:
Éole polytechnique de Montréal
(514) 340-4711 x5049
[EMAIL PROTECTED]
-
Never try to teach a pig to sing. It wastes your time, and it annoys 
the pig.
- 



Re: tape_splitsize 20 Gb and 200GB LTO2 Tapes

2006-08-11 Thread Paul Bijnens

On 2006-08-11 17:27, Gavin Henry wrote:

Dear All,

We are trying to dump over 300GB to go across 2 tapes, as per:

http://wiki.zmanda.com/index.php/Splitting_dumps_across_tapes

But keep getting:

nas1:/storage/samba 0 planner: [dump larger than available tape space,
280606560 KB, but cannot incremental dump new disk]

Our dumptype is:

define dumptype user-tar-span {
   root-tar
   tape_splitsize 20 Gb
   comment tape-spanning user partitions dumped with tar
   priority medium
}

Any tips?


You probably still have runtapes 1.  Increase it.
Or set maxdumpsize to an appropriate value.


--
Paul Bijnens, xplanation Technology ServicesTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: amanda client inetd problem

2006-08-11 Thread Frank Smith
Gene Heskett wrote:

 The debian camp and its offspring ubuntu, hasn't made the switch yet that 
 I'm aware of.  I just installed kubuntu-6.06 on my milling machines box so 
 I could stay reasonably well synched with the emc2 cvs, and was amazed 
 that the default install was still using inetd, or at least the 
 whole /etc/xinetd.d thing seemed to be missing.  I installed it, but the 
 basic install contains only:
 
 [EMAIL PROTECTED]:~$ ls /etc/xinetd.d
 chargen  daytime  echo  time
 
 So its not as if the system would die if I did an rm -fR /etc/xinetd.d.
 
 The added advantages of xinetd over inetd would seeem to make it imperitive 
 to switch, but then we all know the debian camp moves at glacial speed for 
 the core stuff.
 
 Maybe thats an unfair remark Jon, I just did a cat of /etc/inetd.conf and 
 found it only contains:
 #off# netbios-ssn stream  tcp nowait  
 root/usr/sbin/tcpd  /usr/sbin/smbd
 
 so what the heck *are* they doing to control daemon launching?  Me wanders 
 off, scratching head in wonderment.
 
They add init scripts and run them as daemons, naturally.  There is
considerable delay in starting a program of any size, so leaving
it running gives better response time.  Back in the old days, there
were memory constraints so many services were only started when needed
via inetd, trading off response time for memory space.
   Any service called with any frequency should be run as a daemon.
Amanda is one of those one-offs in that it usually only gets invoked
once a day.

Frank

-- 
Frank Smith  [EMAIL PROTECTED]
Sr. Systems Administrator   Voice: 512-374-4673
Hoover's Online   Fax: 512-374-4501


Re: port NNNN is not secure - Only mentioned in Planner, not amcheck

2006-08-11 Thread Paddy Sreenivasan

On 8/11/06, Gavin Henry [EMAIL PROTECTED] wrote:

Dear all,

I am just wondering, since we compiled --with-ssh-security, none of our
amdumps are working due to planner reporting:

planner: ERROR dell2 NAK: host xxx: port 32916 not secure
  planner: ERROR nas1 NAK: host xxx: port 32916 not secure
  planner: ERROR dell1 NAK: host xxx: port 32916 not secure


amcheck doesn't show this error, like mentioned at:

http://wiki.zmanda.com/index.php/Amcheck:_port__is_not_secure

Is this because we aren't using ssh keys?


Yes. Which version of Amanda are you using? You can find ssh
configuration procedure at
http://wiki.zmanda.com/index.php/Configuring_SSH_authentication



Lastly:

driver: WARNING: /storage/amanda: 104857600 KB requested, but only
-2147483648 KB
available.

Above seems to be from ou holding disk being 6.9T big. Where can I submit
a bug for amcheck/driver?


Use http://sourceforge.net/tracker/?group_id=120atid=100120

Thanks,
Paddy


Gavin.

--
Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E [EMAIL PROTECTED]

Open Source. Open Solutions(tm).

http://www.suretecsystems.com/






--

Amanda documentation: http://wiki.zmanda.com
Amanda forums: http://forums.zmanda.com


Re: Amanda migration from SGI-Irix to Linux

2006-08-11 Thread Jon LaBadie
On Fri, Aug 11, 2006 at 11:52:04AM -0400, Luc Lalonde wrote:
 Hello Folks,
 
 I'm getting this error when I try to use the tapes (LTO1) on a 
 StorageTek L40 Jukebox:
 
 st1: Block limits 1 - 16777215 bytes.
 st1: Incorrect block size.
 st1: Incorrect block size.
 scsi(0): Resetting Cmnd=0x01004a871b00, Handle=0x0202, 
 action=0x2
 scsi(0:1:15:0): Queueing device reset command.
 st1: Error with sense data: Current st1: sense key Not Ready
 Additional sense: Logical unit not ready, cause not reportable
 
 I'm in the process of migrating Amanda from a SGI (Origin 300) server to 
 a Linux server.   I'm hoping that I don't have to re-label all my tapes 
 and lose the backups created with the old SGI Amanda server.
 

Guessing only.

Drives can generally use a fixed record (or block) size, set in the
hardware (possibly set by mt), or allow variably sized blocks set by
the writing application software.

Looks like your drive is saying it allows hardware settings from
1 byte to 16M.

Typically variable block size is set by giving a blocksize of zero.

Perhaps your drive does not accept a 0 as meaning variable but
considers it to be a real block size (not very useful ;).

Try using mt (maybe setblk or defsetblk) to set a variable block
size.  Alternatively, amanda typically uses 32kb records, so you
might try setting a default block size of 32768,

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: Amanda migration from SGI-Irix to Linux

2006-08-11 Thread Jean-Francois Malouin
* Luc Lalonde [EMAIL PROTECTED] [20060811 11:52]:
 Hello Folks,
 
 I'm getting this error when I try to use the tapes (LTO1) on a 
 StorageTek L40 Jukebox:
 
 st1: Block limits 1 - 16777215 bytes.
 st1: Incorrect block size.
 st1: Incorrect block size.
 scsi(0): Resetting Cmnd=0x01004a871b00, Handle=0x0202, 
 action=0x2
 scsi(0:1:15:0): Queueing device reset command.
 st1: Error with sense data: Current st1: sense key Not Ready
 Additional sense: Logical unit not ready, cause not reportable
 
 I'm in the process of migrating Amanda from a SGI (Origin 300) server to 
 a Linux server.   I'm hoping that I don't have to re-label all my tapes 
 and lose the backups created with the old SGI Amanda server.

I'm in the middle of relocating our entire computer room so I'll be
brief :) I have a bunch of LTO1s in a L80 hooked to a O3k so that's
essentially what you have. I'll be moving this to a Debian system soon
and in my testings I could drive the library and tape drives with mtx
and mt no problem except for the hardware compression bit on the
drive: after much mucking around with stinit I couldn't disable it but
seems the for LTO that's not a problem. Still looking for a way to
disable it though.

To your problem: what does 'mt status' says?

Here's what I got on a Debian system running 2.6.x

~# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (4101):
 BOT ONLINE IM_REP_EN

~# ./amtapetype -o -f /dev/nst0 -e 100g
Writing 1024 Mbyte   compresseable data:  35 sec
Writing 1024 Mbyte uncompresseable data:  69 sec
WARNING: Tape drive has hardware compression enabled
Estimated time to write 2 * 102400 Mbyte: 13800 sec = 3 h 50 min
wrote 3178496 32Kb blocks in 97 files in 6880 seconds (short write)
wrote 3194880 32Kb blocks in 195 files in 6886 seconds (short write)
define tapetype unknown-tapetype {
comment just produced by tapetype prog (hardware compression on)
length 99584 mbytes
filemark 0 kbytes
speed 14815 kps
}

HTH
jf

 
 Thanks!
 
 -- 
 Luc Lalonde, analyste
 -
 Département de génie informatique:
 Éole polytechnique de Montréal
 (514) 340-4711 x5049
 [EMAIL PROTECTED]
 -
 Never try to teach a pig to sing. It wastes your time, and it annoys 
 the pig.
 - 

-- 
° 


dumpcycle

2006-08-11 Thread Joe

Having read the docs about amanda.conf...

I have 7 tapes.  Every day I want a full dump on
the tape.  So...

dumpcycle 0 days
runspercycle 1
tapecycle 7 tapes

Correct?


Re: tape_splitsize 20 Gb and 200GB LTO2 Tapes

2006-08-11 Thread Gavin Henry
quote who=Paul Bijnens
 On 2006-08-11 17:27, Gavin Henry wrote:
 Dear All,

 We are trying to dump over 300GB to go across 2 tapes, as per:

 http://wiki.zmanda.com/index.php/Splitting_dumps_across_tapes

 But keep getting:

 nas1:/storage/samba 0 planner: [dump larger than available tape space,
 280606560 KB, but cannot incremental dump new disk]

 Our dumptype is:

 define dumptype user-tar-span {
root-tar
tape_splitsize 20 Gb
comment tape-spanning user partitions dumped with tar
priority medium
 }

 Any tips?

 You probably still have runtapes 1.  Increase it.
 Or set maxdumpsize to an appropriate value.

/me hides head in shame. I thought I did, must have been thinking of
runspercycle. Doh!

Thanks!



 --
 Paul Bijnens, xplanation Technology ServicesTel  +32 16 397.511
 Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
 http://www.xplanation.com/  email:  [EMAIL PROTECTED]
 ***
 * I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
 * F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
 * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
 * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
 * init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
 * ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
 ***





Re: dumpcycle

2006-08-11 Thread Joshua Baker-LePain

On Fri, 11 Aug 2006 at 4:09pm, Joe wrote


Having read the docs about amanda.conf...

I have 7 tapes.  Every day I want a full dump on
the tape.  So...

dumpcycle 0 days
runspercycle 1
tapecycle 7 tapes


Yep -- you got it.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


Re: dumpcycle

2006-08-11 Thread Jon LaBadie
On Fri, Aug 11, 2006 at 04:09:08PM -0400, Joe wrote:
 Having read the docs about amanda.conf...
 
 I have 7 tapes.  Every day I want a full dump on
 the tape.  So...
 
 dumpcycle 0 days
 runspercycle 1
 tapecycle 7 tapes
 
 Correct?

By gosh, I think he's got it.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: dumpcycle

2006-08-11 Thread Pavel Pragin

Hello,

Another way to force a full dump on every run is to add strategy noinc 
to the the dumptype definition you are using for

this backup.
Pavel
*
Example:*
define dumptype root-tar {
  program GNUTAR
  compress none
  index yes
  strategy noinc
}



Joshua Baker-LePain wrote:


On Fri, 11 Aug 2006 at 4:09pm, Joe wrote


Having read the docs about amanda.conf...

I have 7 tapes.  Every day I want a full dump on
the tape.  So...

dumpcycle 0 days
runspercycle 1
tapecycle 7 tapes



Yep -- you got it.





Re: Amanda migration from SGI-Irix to Linux

2006-08-11 Thread Luc Lalonde

Hello Jean-François,

I'm getting this weird message with 'mt':

[EMAIL PROTECTED] ~]# mt -f /dev/nst0 status
Unknown tape drive type (0x72):
  residual= 0   ds = 200   er = 0
  file no= 0   block no= 0

What I don't understand is that it seems to be correctly recognized by 
the system:


[EMAIL PROTECTED] ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
 Vendor: STK  Model: L40  Rev: 0215
 Type:   Medium Changer   ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 15 Lun: 00
 Vendor: SEAGATE  Model: ULTRIUM06242-XXX Rev: 1619
 Type:   Sequential-AccessANSI SCSI revision: 03
Host: scsi0 Channel: 01 Id: 15 Lun: 00
 Vendor: SEAGATE  Model: ULTRIUM06242-XXX Rev: 1619
 Type:   Sequential-AccessANSI SCSI revision: 03

Any ideas?   By the way, the jukebox is connected to the server via a 
Qlogic QLA1240.   What are you using on your Linux box?


Thanks again.
PS:  'mtx -f /dev/sg0 status' seems to work fine.  I get a full report 
of the contents of my library.


Jean-Francois Malouin wrote:

* Luc Lalonde [EMAIL PROTECTED] [20060811 11:52]:
  

Hello Folks,

I'm getting this error when I try to use the tapes (LTO1) on a 
StorageTek L40 Jukebox:


st1: Block limits 1 - 16777215 bytes.
st1: Incorrect block size.
st1: Incorrect block size.
scsi(0): Resetting Cmnd=0x01004a871b00, Handle=0x0202, 
action=0x2

scsi(0:1:15:0): Queueing device reset command.
st1: Error with sense data: Current st1: sense key Not Ready
Additional sense: Logical unit not ready, cause not reportable

I'm in the process of migrating Amanda from a SGI (Origin 300) server to 
a Linux server.   I'm hoping that I don't have to re-label all my tapes 
and lose the backups created with the old SGI Amanda server.



I'm in the middle of relocating our entire computer room so I'll be
brief :) I have a bunch of LTO1s in a L80 hooked to a O3k so that's
essentially what you have. I'll be moving this to a Debian system soon
and in my testings I could drive the library and tape drives with mtx
and mt no problem except for the hardware compression bit on the
drive: after much mucking around with stinit I couldn't disable it but
seems the for LTO that's not a problem. Still looking for a way to
disable it though.

To your problem: what does 'mt status' says?

Here's what I got on a Debian system running 2.6.x

~# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (4101):
 BOT ONLINE IM_REP_EN

~# ./amtapetype -o -f /dev/nst0 -e 100g
Writing 1024 Mbyte   compresseable data:  35 sec
Writing 1024 Mbyte uncompresseable data:  69 sec
WARNING: Tape drive has hardware compression enabled
Estimated time to write 2 * 102400 Mbyte: 13800 sec = 3 h 50 min
wrote 3178496 32Kb blocks in 97 files in 6880 seconds (short write)
wrote 3194880 32Kb blocks in 195 files in 6886 seconds (short write)
define tapetype unknown-tapetype {
comment just produced by tapetype prog (hardware compression on)
length 99584 mbytes
filemark 0 kbytes
speed 14815 kps
}

HTH
jf

  

Thanks!




Re: dumpcycle

2006-08-11 Thread Jon LaBadie
On Fri, Aug 11, 2006 at 02:39:09PM -0700, Pavel Pragin wrote:
 Hello,
 
 Another way to force a full dump on every run is to add strategy noinc 
 to the the dumptype definition you are using for
 this backup.
 Pavel
 *
 Example:*
 define dumptype root-tar {
   program GNUTAR
   compress none
   index yes
   strategy noinc
 }
 


Is that correct?

Or if I have a dumpcycle of 7 and a strategy noinc,
will I just get a dump, a full one, every 7 days?

I know what I describe is true of skip-incr.
Not certain about strategy noinc.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)