MHVTL and Library Map operation

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

MHVTL and Library Map operation

crippa.andrea
Hello to all,
can someone explain me what is the correct sequence to use the library map ?

If I've undesrtand , when I need to checkin some new tape into library i need to :

TSM : LABEL LIBVOLUME "LIB_NAME" SEARCH=BULK LABELSOURCE=BARCODE CHECKIN=SCRATCH OVERWRITE=NO
vtlcmd open map
vtlcmd load map XXXXXL1
vtlcmd close map

TSM : REPLY XXX

Now i've got the Tape loaded into my library .....

The question is : now i need to update the config file for library and put the TAPE into a SLOT or the file is autoupdated by the software ?
If I have to manually update the file, the first empty slot is OK ?

Thanks for reply

Bye

Crippa Andrea
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL and Library Map operation

Mark Harvey
You got the vtl side of things correct.

now you need to get the application to inventory the library & empty the MAP.

NetBackup, thats a 'vmupdate -rt tld -rn 0 -empty_map -use_barcode_rules' Or use the GUI!

Sent from my iPad

On Jul 4, 2011, at 19:59, "crippa.andrea [via MHVTL - Linux Virtual Tape Library - CommunityForums]" <[hidden email]> wrote:

Hello to all,
can someone explain me what is the correct sequence to use the library map ?

If I've undesrtand , when I need to checkin some new tape into library i need to :

TSM : LABEL LIBVOLUME "LIB_NAME" SEARCH=BULK LABELSOURCE=BARCODE CHECKIN=SCRATCH OVERWRITE=NO
vtlcmd open map
vtlcmd load map XXXXXL1
vtlcmd close map

TSM : REPLY XXX

Now i've got the Tape loaded into my library .....

The question is : now i need to update the config file for library and put the TAPE into a SLOT or the file is autoupdated by the software ?
If I have to manually update the file, the first empty slot is OK ?

Thanks for reply

Bye

Crippa Andrea


To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL and Library Map operation

nia
Administrator
In reply to this post by crippa.andrea
crippa.andrea wrote
The question is : now i need to update the config file for library and put the TAPE into a SLOT or the file is autoupdated by the software ?
If I have to manually update the file, the first empty slot is OK ?
Crippa Andrea
As of right now mhvtl will not keep track of media moving around in/out or within after daemons restart if you don't update manually in /etc/mhvtl/device.conf ...
nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL and Library Map operation

nia
Administrator
nia wrote
As of right now mhvtl will not keep track of media moving around in/out or within after daemons restart if you don't update manually in /etc/mhvtl/device.conf ...
Perhaps I should add this into the GUI to make things a bit easier to update ..

http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/ANNOUNCE-Web-Console-GUI-add-on-for-mhvtl-by-nia-tp3136431p3136431.html
nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL and Library Map operation

nia
Administrator
nia wrote
As of right now mhvtl will not keep track of media moving around in/out or within after daemons restart if you don't update manually in /etc/mhvtl/device.conf ...
I meant /etc/mhvtl/library_contents.* not /etc/mhvtl/device.conf

nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL and Library Map operation

crippa.andrea
In reply to this post by nia
Tomorrow i'll try to take a look to the Gui.

By the way ..... I've wrote to the scst-devel mailing list for the crash that happens when use iscsi initiator in conjunction with IBM driver.

Today i've tested the scst target with TD1 drive type and the result is that TD1 doesn't crash the scst software.

P.S. :
The GUI is written completely by you ?
Can I give a look to the code ?

Bye

Crippa Andrea

nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL and Library Map operation

nia
Administrator
crippa.andrea wrote
By the way ..... I've wrote to the scst-devel mailing list for the crash that happens when use iscsi initiator in conjunction with IBM driver.

Today i've tested the scst target with TD1 drive type and the result is that TD1 doesn't crash the scst software.

Crippa Andrea
Ok, cool .. There should be also an option to turn on/off before you compile scst that may stop the crashing. I think.

~# pwd
~#/scst/src
~# grep USE_EXPECTED_VALUES Makefile
EXTRA_CFLAGS += -DCONFIG_SCST_USE_EXPECTED_VALUES



crippa.andrea wrote
P.S. :
The GUI is written completely by you ?
Can I give a look to the code ?

Crippa Andrea
Yes, I have written all of it by myself. The code is GPL, so you can do whatever you wish with it ..

You can also contribute to mine, if you wish .. I will provide instructions for that under that post.


nia


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL and Library Map operation

Mark Harvey
In reply to this post by crippa.andrea
Sorry, I mis-understood your query.

nia is correct.

Media tracking is not persistent across the vtllibrary restarts.
This is by design.

The /etc/mhvtl/library_contents.XX file is read when 'vtllibrary -q XX' is started and the state initialised the the file contents.

Currently there is no method to keep the in-core and library_contents.XX in sync.
This was one of the items to be added when going across to an xml config file format. However, I've just never quite got there.

Cheers
Mark
Loading...