configuring of tape library and devices

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

configuring of tape library and devices

Albatross
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: configuring of tape library and devices

Mark Harvey
I agree, the php web tool is very cool.

Manually updating the config files in /etc/mhvtl is a pain. Anything to automate/make this simple "is a good thing".

Re: Backup software.
You have lots of options here. But you do need something. Tape devices are 'sequential' devices and the data can not be accessed like a disk.
Standard unix tools are 'tar' (Tape ARchiver), and cpio. These can write to tape. You need to manually load/unload tapes and handle situations where the tape becomes full.
The utility 'mtx' can be used to control a medium changer.

Bacula and Amanda are two open source backup software packages. I've had reports that bacula works well.
Commercial software includes:
- NetBackup
- NetWorker
- TSM
- BackupExec
- ArcServe


Re: MAP.
This is a (relatively) standard acronym for "Media Access Port". Other comon names are 'mail slots', 'Cartridge Access Port'
SCSI Standard call them 'Import/Export Elements'.
i.e. It's the access port to put/extract media into/out-of the library.

Yeah, I know, doesn't really make sense for a VTL. But I designed this to emulate real hardware so I can support backup software in my day-to-day job (NetBackup). Lots of features within the mhVTL do not make much sense for a VTL, but are there so I can see/test/emulate real hardware situations.

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

Re: configuring of tape library and devices

crippa.andrea
In reply to this post by Albatross
Hi Satya ...

Bye

2011/9/2 satya [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>
Hi everybody,

                  I am very much glad finally I came to know that we can create backup environment  in virtual machine.
I have got mhvtl and successfully installed in the RHEL 5.4 version.  but the thing is I am not finding way to configure the tape devices and library so I have tried for php web tool , Its really cool.

Can any one tell me what are the steps to configure tapedevices, tape library and how to work with them using mhvtl .I am new to this topics , so I need to understand the what are maps and some concepts .please help me out....

 I dont have backup software, heard that it should have license, Also can one help me out what to do and how to manage complete setup in the Vmware workstation.

This is my first post. Hope I would get some really helpful answers ...

waiting for valuable reply......

Cheers,
Albatross




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.



--
Crippa Andrea


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

Re: configuring of tape library and devices

Albatross
Hi crippa,

         That was good I have already configured in my RHEL 5.4 machine , The tape drives are also visible through the php web access.

But the prob is I need to have a backup software where I can work and learn take the backup and restore the files.

One of my friend replied me that there are open source s/w like amanda and bacula.

Can we not have veritas netbackup kind of environment where I have master and media servers. and storage is attached to media servers and where I can access the tape drives and so on....

I knew my question would be like an unreal kind of thing, But as we are techie guys , I hope we would have a solution for my unrealistic question.

Anyways veritas netbackup is licensed s/w but would there be any trial versions so that I can install them and work around with it......

 I would be grateful to you guys....

Awaiting for valuable replies

cheers,
Albatross






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

Re: configuring of tape library and devices

nia
Administrator
There are no trial versions for NetBackup as far as I know ...

But, If you like to try TSM by IBM, you download and use for 30-40 days or so :
 ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/

Or NetWorker by EMC also gives you a 30-45 days trial as well:

ftp://ftp.legato.com/pub/NetWorker/Cumulative_Hotfixes/7.6/

You will be able to re-install to renew the trial periods for both TSM and NetWorker if you like also ..


-nia


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

Re: configuring of tape library and devices

Albatross
Hi

         I just wanna tell you that I finally installed netback up software verison 5.0 in my Win 2k3 machine. But I am not having any idea how to configure these MHVTL virtual tape drives with wink2k3 box.

I have installed on RedHat box and working fine. all the drives are visible.  So This box is acting as media server for me ??? if I am not wrong ....or do I need to install separately.

Is there any s/w that we can install on windows too as we did it on REdhat box.

when I am going to configure master server in the win2k3 box it is asking for configuring the devices, also popping up that there should be removable media attached to it. But there is no such media attached to the Master server.

I have also installed NBU client successfully.

I dont have any Idea how to configure a default environment thats with

1.Master server with storage attached to it,
2. Media server with Media attached to it ( In my case Redhat Box with MHVTL )
3. Client

My environment in the VM workstation consists of one Win2k3 box ( Master server ) one xp box ( client ) and one redhat box ( where MHVTL is installed )

So suggest me what to do how can I connect this and how to make my environment successfully run......

Waiting for your valuable replies........

Cheers,
Albatross








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

Re: configuring of tape library and devices

crippa.andrea
You need to' install a iscsi target software like scst or tgtd.

For tgtd in redhat simple install via yum.

In W2K3 connect via iscsi initiator.

Inviato da iPhone
Crippa Andrea

Il giorno 11/set/2011, alle ore 15:39, "Albatross [via MHVTL - Linux Virtual Tape Library - Community Forums]" <[hidden email]> ha scritto:

Hi

         I just wanna tell you that I finally installed netback up software verison 5.0 in my Win 2k3 machine. But I am not having any idea how to configure these MHVTL virtual tape drives with wink2k3 box.

I have installed on RedHat box and working fine. all the drives are visible.  So This box is acting as media server for me ??? if I am not wrong ....or do I need to install separately.

Is there any s/w that we can install on windows too as we did it on REdhat box.

when I am going to configure master server in the win2k3 box it is asking for configuring the devices, also popping up that there should be removable media attached to it. But there is no such media attached to the Master server.

I have also installed NBU client successfully.

I dont have any Idea how to configure a default environment thats with

1.Master server with storage attached to it,
2. Media server with Media attached to it ( In my case Redhat Box with MHVTL )
3. Client

My environment in the VM workstation consists of one Win2k3 box ( Master server ) one xp box ( client ) and one redhat box ( where MHVTL is installed )

So suggest me what to do how can I connect this and how to make my environment successfully run......

Waiting for your valuable replies........

Cheers,
Albatross











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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: configuring of tape library and devices

Albatross
Hi Crippa,

              That was good , I could not get tgtd with yum install . so I have installed iscsi-target in redhat box.
before that I wanna show u this is the output i get when I fire lssci -g

[root@vtl ~]# lsscsi -g
[0:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda  /dev/sg0
[0:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb  /dev/sg1
[1:0:0:0]    mediumx STK      L700             550V  -         /dev/sg10
[1:0:1:0]    tape    IBM      ULT3580-TD5      550V  /dev/st0  /dev/sg2
[1:0:2:0]    tape    IBM      ULT3580-TD5      550V  /dev/st1  /dev/sg3
[1:0:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st2  /dev/sg4
[1:0:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st3  /dev/sg5
[1:0:8:0]    mediumx SPECTRA  PYTHON           550V  -         /dev/sg11
[1:0:9:0]    tape    IBM      ULT3580-TD4      550V  /dev/st4  /dev/sg6
[1:0:10:0]   tape    IBM      ULT3580-TD4      550V  /dev/st5  /dev/sg7
[1:0:11:0]   tape    IBM      ULT3580-TD4      550V  /dev/st6  /dev/sg8
[1:0:12:0]   tape    IBM      ULT3580-TD4      550V  /dev/st7  /dev/sg9


Can you tell me how do I configure Iscsi-target for this. Have I configured mhvtl in a right way or did I commit any mistake...

when I fire fdisk -l in redhat it shows

[root@vtl ~]# fdisk -l

Disk /dev/sda: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           6       48163+  83  Linux
/dev/sda2               7         515     4088542+  83  Linux
/dev/sda3             516         776     2096482+  82  Linux swap / Solaris
/dev/sda4             777        1958     9494415    5  Extended
/dev/sda5             777        1958     9494383+  83  Linux

Disk /dev/sdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1305    10482381   42  SFS

This is the below entry I have given in the /etc/iet/ietd.conf file,

Target iqn.2009-01.com.cool:abcd.1234
Lun 0 Path=/dev/sda
Alias iSCSI-TAPEDRIVE

also tried to change the drive and made entry

Target iqn.2009-01.com.cool:satya.1234
Lun 0 Path=/dev/sdb
Alias iSCSI-TAPEDRIVE


/etc/init.d/iscsi-target service is started successfully, I am able to get the target id there in windows .

But unable to find the tape devices in the device management....

Also I tried to install device drivers from bin folder of veritas it work out....

is there any thing I need to change , But I am not able to find the tape devices in the win2k3 system. I have sucessfully configured veritas 6.5

Help me out ..... I would be very grateful........

waiting for your valuable replies..............


cheers
Albatross.....





























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

Re: configuring of tape library and devices

crippa.andrea
Hi .... iscsi-target is effectively tgtd ..... you have done the correct procedure to install it.

[root@vtl ~]# lsscsi -g
[0:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda  /dev/sg0
[0:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb  /dev/sg1
[1:0:0:0]    mediumx STK      L700             550V  -         /dev/sg10
[1:0:1:0]    tape    IBM      ULT3580-TD5      550V  /dev/st0  /dev/sg2
[1:0:2:0]    tape    IBM      ULT3580-TD5      550V  /dev/st1  /dev/sg3
[1:0:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st2  /dev/sg4
[1:0:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st3  /dev/sg5
[1:0:8:0]    mediumx SPECTRA  PYTHON           550V  -         /dev/sg11
[1:0:9:0]    tape    IBM      ULT3580-TD4      550V  /dev/st4  /dev/sg6
[1:0:10:0]   tape    IBM      ULT3580-TD4      550V  /dev/st5  /dev/sg7
[1:0:11:0]   tape    IBM      ULT3580-TD4      550V  /dev/st6  /dev/sg8
[1:0:12:0]   tape    IBM      ULT3580-TD4      550V  /dev/st7  /dev/sg9


This seems to be ok

 

Can you tell me how do I configure Iscsi-target for this. Have I configured mhvtl in a right way or did I commit any mistake...

when I fire fdisk -l in redhat it shows

[root@vtl ~]# fdisk -l

Disk /dev/sda: 16.1 GB, <a href="tel:16106127360" value="+16106127360" target="_blank">16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           6       48163+  83  Linux
/dev/sda2               7         515     4088542+  83  Linux
/dev/sda3             516         776     2096482+  82  Linux swap / Solaris
/dev/sda4             777        1958     9494415    5  Extended
/dev/sda5             777        1958     9494383+  83  Linux

Disk /dev/sdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1305    10482381   42  SFS

This is the below entry I have given in the /etc/iet/ietd.conf file,

Target iqn.2009-01.com.cool:satya.1234
Lun 0 Path=/dev/sda
Alias iSCSI-TAPEDRIVE

also tried to change the drive and made entry

Target iqn.2009-01.com.cool:satya.1234
Lun 0 Path=/dev/sdb
Alias iSCSI-TAPEDRIVE




I don't understand why you have created a config file pointing to /dev/sda and /dev/sdb. Due to your fdisk sda and sdb is your primary/secondary disk where os resides. You need to pass to W2K3 via iSCSI the library and tape drives. So not /dev/sda and /dev/sdb.

You need to create config for /dev/sg10-2-3-4-5 and /dev/sg11-6-7-8-9 for having both libraries to work.

Unfortunately I'm not on my Server so I can write out a running config ..... maybe Nia can help you if he is on a PC.

Or finding in the forum for a sample running config.

Maybe you want to install MHVTL-GUI developed by Nia and available via Git-Hub.
Some post before , i've writed a step-by-step guide for installing mhvtl on centos 5, follow the steps for installing mhvtl-gui and remember to disable selinux.
After that you can use the gui to write the tgtd config for you.


 
/etc/init.d/iscsi-target service is started successfully, I am able to get the target id there in windows .

But unable to find the tape devices in the device management....

Also I tried to install device drivers from bin folder of veritas it work out....

is there any thing I need to change , But I am not able to find the tape devices in the win2k3 system. I have sucessfully configured veritas 6.5

Help me out ..... I would be very grateful........

waiting for your valuable replies..............


Same as before

--
Crippa Andrea


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

Re: configuring of tape library and devices

Albatross
Hi Crippa,

       Can you tell me how to create config for /dev/sg10-2-3-4-5 and /dev/sg11-6-7-8-9 for having both libraries to work.

I have succefully installed GUI its showng this way





Also if there is any step by step procedure  I Would be grateful to you...

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

Re: configuring of tape library and devices

crippa.andrea

       Can you tell me how to create config for /dev/sg10-2-3-4-5 and /dev/sg11-6-7-8-9 for having both libraries to work.

I have succefully installed GUI its showng this way


Hi,
I'm not an a PC, but I remember a menu (Remote Client) and then the tgt section (different from the scst section)

If the service is already started, you can use the auto-create configuration button and let the Gui to do the work for you.

Then , simple connect the iScsi dev from w2k3.

Bye


--
Crippa Andrea


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

Re: connecting tape drives to windows via scsi and scst

Albatross
Hi,

         I am unable to create the config file in graphical way for /dev/sg10-2-3-4-5 and /dev/sg11-6-7-8-9 for having both libraries to work.

when I log in to webconsole and try to config its not working out. when I go to remote clients and hit on button it gives

SCSI Target via STGT (http://stgt.sourceforge.net/)  link it gives me the below way..



and when I hit start for the service it is starting but the state is stopped...

It is giving the following



so got source an tried to compile.


I tried to start the scst services but failed

[root@vtl scstadmin-2.1.0]# /etc/init.d/scst start
Loading and configuring the mid-level SCSI target SCSTFATAL: Module scst not found.
                                                           [FAILED]


It says scst module not loaded

I have downloaded the scst package from sourceforge and compiled...but no luck in installing scst...

I have installed scsi-target but unable to get tape drives in win2k3 box via iscsi initiator..I am able to get the iscsi partition created on redhat box on which mhvtl installed....but not tape drives...


I dont know what to do ..... please help me out....

cheers,
Albatross








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

Re: connecting tape drives to windows via scsi and scst

nia
Administrator
Hello,

The GIT Repo for stgt has been down for few days now, so the Web Console installer will not work ..

Try to download directly from http://stgt.sourceforge.net/releases/tgt-1.0.19.tar.gz

Once, installed, then try to configure via the Web console. Also, make sure mhvtl is already started before.


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

Re: connecting tape drives to windows via scsi and scst

Albatross
Hi Nia,

             That was great. I have installed and start the service of tgt in web console.. it worked But when I tried to configure Create Automatic iSCSI Configuration its throwing error. I have jpeg for that please look into it and guide me what to do...



Its giving errors like begin failed --compilation .......you can find it at the bottom of the jpeg... above...

Also when I hit the same automatic configuration of STT SCSI config...its throwing below error....

Automatic STGT iscsi Target :
---------------------------------------
Creating Target for mediumx /dev/sg10
TARGET 1 iqn.1994-05.com.redhat:db3dadc764d:mhvtl:stgt:1
tgtadm: this target already exists
STATUS=0 Failed ...
---------------------------------------
Exporting Target iqn.1994-05.com.redhat:db3dadc764d:mhvtl:2 to ALL ...
tgtadm: this access control rule already exists
STATUS=1 Failed ...





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

Re: connecting tape drives to windows via scsi and scst

nia
Administrator
Regarding the Perl Config...General.pm error, it may be fine and should not affect your iSCSI targets, but if you install the following it will fix it # yum install perl-Config-General

Regarding already exists target errors, this is probably a result of rerunning automatic config again .. to restart clean, just stop/start stgt then rerun the Automatic Target Creation again.

But as this looks, you should be ready to connect from your iSCSI Windows host.

-nia

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

Re: connecting tape drives to windows via scsi and scst

crippa.andrea

Also when I hit the same automatic configuration of STT SCSI config...its throwing below error....
......

Regarding already exists target errors, this is probably a result of rerunning automatic config again .. to restart clean, just stop/start stgt then rerun the Automatic Target Creation again.

Also make sure that /etc/tgt/target.conf is empty 


--
Crippa Andrea


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

Re: connecting tape drives to windows via scsi and scst

Albatross
In reply to this post by nia
Hi ,
          I have started the iscsi target in the redhat machine.. I have also detected in win box. also successfully logged on to target.

but problem is in the device detection . I am attaching the screen shots may be you can help me ...

This is how it is detected in win2kbox.....Its not showing any kind of tape drives in device manager.





and this is the error in the device manager , i have tried for drivers , please help me how to solve this problem....







cheers
Albatross



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

Re: connecting tape drives to windows via scsi and scst

Mark Harvey
Comments inline...

Sent from my iPad

On Sep 14, 2011, at 17:33, "Albatross [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:

Hi ,
          I have started the iscsi target in the redhat machine.. I have also detected in win box. also successfully logged on to target.

but problem is in the device detection . I am attaching the screen shots may be you can help me ...

This is how it is detected in win2kbox.....Its not showing any kind of tape drives in device manager.





I assume this was taken earlier, otherwise you wouldn't be seeing devices in next screen shot.


and this is the error in the device manager , i have tried for drivers , please help me how to solve this problem....





You need to go to IBM web site and download/install their tape drivers.

I dont have URL handy, but I've seen it on this forum before.

cheers
Albatross



Cheers
Mark


           


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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: connecting tape drives to windows via scsi and scst

crippa.andrea
In reply to this post by Albatross



and this is the error in the device manager , i have tried for drivers , please help me how to solve this problem....





What kind of backup software are you plan to use ?

For Tivoli I know that there is the TSM driver ..... You need to download and install them. Again i'm not on my home PC so i can't give you the ftp address ... maybe you can try a search on the forum or wait this evening ..... ;) 


--
Crippa Andrea


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

Re: connecting tape drives to windows via scsi and scst

Mark Harvey
In reply to this post by Albatross

This should do the trick

Sent from my iPad

On Sep 14, 2011, at 17:33, "Albatross [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:

Hi ,
          I have started the iscsi target in the redhat machine.. I have also detected in win box. also successfully logged on to target.

but problem is in the device detection . I am attaching the screen shots may be you can help me ...

This is how it is detected in win2kbox.....Its not showing any kind of tape drives in device manager.





and this is the error in the device manager , i have tried for drivers , please help me how to solve this problem....







cheers
Albatross



           


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.
12
Loading...