Re: Changer policy

2008-08-21 Thread Gerrit A. Smit -TI-
I use

tpchanger chg-disk# VTAPES the tape-changer glue script


#   This changer script is based on a directory structure like:
#   slot_root_dir -|
#  |- info
#  |- data - slot1
#  |- slot1
#  |- slot2
#  |- ...
#  |- slotn
#   where 'slot_root_dir' is the tapedev 'file:xxx' parameter and
#   'n' is the tapecycle parameter.
#   
#   To use this driver, just put the line 'tpchanger chg-disk' in
#   your amanda.conf.


Gerrit


Re: Changer policy

2008-08-21 Thread Olivier Nicole
Hi Gerrit,

 I use
 tpchanger chg-disk# VTAPES the tape-changer glue script

So do I, for the n first vtapes in the first disk, but chg-disk cannot
access the vtapes n+1 t0 2n that are on the second disk: this second
disk should be manually loaded first.

Olivier



Re: Changer policy

2008-08-21 Thread Dustin J. Mitchell
On Thu, Aug 21, 2008 at 8:55 AM, Olivier Nicole [EMAIL PROTECTED] wrote:
 Does it exist a changer that allow the manual change of a caroussel,
 so I don't have to redesign everything from scratch? (I mean the
 Amanda phylosophy, not the exact way to load/eject a caroussel or
 mout/unmout a disk).

I *think* that chg-manual will do what you want, perhaps with a little
bit of tweaking to recognize when vtapes are on the same disk.

This is a fairly common use-case, so if you're working against 2.6.0,
I'm sure a lot of other people would like to see your solution.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Changer policy

2008-08-21 Thread Jon LaBadie
On Thu, Aug 21, 2008 at 07:55:26PM +0700, Olivier Nicole wrote:
 Hi,
 
 I have a brand new Amanda server, that uses virtual tapes.
 
 My virtual tapes are set on external hard disks, but I can only
 physically connect one disk at a time.
 
 I uses runtapes 5.
 
 So I can end up in a situation where I have 2 vtapes left one a disk,
 and where I must change disk in the middle of a dump.
 
 I beleive this is close to the situation of a tape caroussel, where
 one wants to reload the caroussel in the middle of a dump.
 
 I'd like to know if the model bellow makes sense with Amanda, does it
 break the general idea or not?
 
 Will it work if I write a changer that would wait for manual change of
 the disk? The dumps would finish to the holding disks and the taper
 would wait for manual change of the disk before finishing to write on
 the tape (wait would be several hours).
 
 I see that amcheck physically tries to access the tapes, so in a
 situation with 2 tapes left on a disk and 3 tapes from the new disk,
 amcheck would request the user tou change disk, that is not really
 necessary, is there any other command that is likely to access the
 changer (beside the amdump/amflush and restore).

My setup is probably similar except I have 2 usb drives plus some space
on the hard disk for my vtapes.  However I don't typically unplug the
external drives.

My changer slots are actually symbolic links to the actual location
of the mounted vtapes.  If a drive were off line (or more frequently
in my case too full) amanda just looks for the next available vtape.
If none are available it finishes to the holding disk like you suggest.

I wonder if an modified changer script is even needed.  If you have
the auto flush parameter set in amanda.conf, the next time you run
amdump it will check the holding disk and begin flushing the old
dumps immediately.  I think this begins even while estimates are
being done.  So just bring online the other drive and let amanda
do its thing next amdump.

 
 Is there a command to get the label of the tape loaded in the tape
 device?

From memory, amtape ... show or current.
 
 Does it exist a changer that allow the manual change of a caroussel,
 so I don't have to redesign everything from scratch? (I mean the
 Amanda phylosophy, not the exact way to load/eject a caroussel or
 mout/unmout a disk).
 

I was running an HP SureStore DDS3 changer for a long while.  It uses
a 6 tape magazine and I adapted to its size by dumping weekdays and
Sunday night for the weekend.  But I had 7 magazines of tapes and
never noted a changer script that automatically or manually tried to
deal with magazines/caroussels.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 12027 Creekbend Drive  (703) 787-0884
 Reston, VA  20194  (703) 787-0922 (fax)


Re: Changer policy

2008-08-21 Thread Ian Turner
Oliver,

The simple answer is to use chg-manual, which waits for operator intervention. 
You will have to adjust a symlink as well as the disk connections.

If it is possible to script the disk switch, you should be able to write a 
changer script that does what you want.

--Ian

On Thursday 21 August 2008 08:55:26 Olivier Nicole wrote:
 Hi,

 I have a brand new Amanda server, that uses virtual tapes.

 My virtual tapes are set on external hard disks, but I can only
 physically connect one disk at a time.

 I uses runtapes 5.

 So I can end up in a situation where I have 2 vtapes left one a disk,
 and where I must change disk in the middle of a dump.

 I beleive this is close to the situation of a tape caroussel, where
 one wants to reload the caroussel in the middle of a dump.

 I'd like to know if the model bellow makes sense with Amanda, does it
 break the general idea or not?

 Will it work if I write a changer that would wait for manual change of
 the disk? The dumps would finish to the holding disks and the taper
 would wait for manual change of the disk before finishing to write on
 the tape (wait would be several hours).

 I see that amcheck physically tries to access the tapes, so in a
 situation with 2 tapes left on a disk and 3 tapes from the new disk,
 amcheck would request the user tou change disk, that is not really
 necessary, is there any other command that is likely to access the
 changer (beside the amdump/amflush and restore).

 Is there a command to get the label of the tape loaded in the tape
 device?

 Does it exist a changer that allow the manual change of a caroussel,
 so I don't have to redesign everything from scratch? (I mean the
 Amanda phylosophy, not the exact way to load/eject a caroussel or
 mout/unmout a disk).

 Best regards,

 Olivier
-- 
Wiki for Amanda documentation: http://wiki.zmanda.com/