Fantasyfilmfest

Fantasyfilmfest – I’m coming ;)

There will be lots of blood this weekend. I will take a closer look at these two movies on sunday: Solomon Kane and Monsters.

Soloman Kane Trailer

Monsters Trailer

Posted in Uncategorized | Tagged , , , , | Leave a comment

Networker and MHVTL in a VirtualBox VM part6

EMC Networker – first steps

configure MHVTL tape library

start terminal

opensuse@nwsrv:~> su -
Password: reverse
nwsrv:~ # lsscsi -g
[0:0:0:0]    disk    ATA      VBOX HARDDISK    1.0   /dev/sda  /dev/sg0
[0:0:1:0]    disk    ATA      VBOX HARDDISK    1.0   /dev/sdb  /dev/sg1
[1:0:0:0]    cd/dvd  VBOX     CD-ROM           1.0   /dev/sr0  /dev/sg2
[2:0:0:0]    mediumx SPECTRA  PYTHON           550V  /dev/sch0  /dev/sg11
[2:0:1:0]    tape    IBM      ULT3580-TD4      550V  /dev/st0  /dev/sg3
[2:0:2:0]    tape    IBM      ULT3580-TD4      550V  /dev/st1  /dev/sg4
[2:0:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st2  /dev/sg5
[2:0:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st3  /dev/sg6
[2:1:0:0]    mediumx SPECTRA  PYTHON           550V  /dev/sch1  /dev/sg12
[2:1:1:0]    tape    IBM      ULT3580-TD4      550V  /dev/st4  /dev/sg7
[2:1:2:0]    tape    IBM      ULT3580-TD4      550V  /dev/st5  /dev/sg8
[2:1:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st6  /dev/sg9
[2:1:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st7  /dev/sg10
nwsrv:~ # ls -l /dev/*st0*
crw-rw---- 1 root tape 9, 128 Aug 25 17:11 /dev/nst0
crw-rw---- 1 root tape 9, 224 Aug 25 17:11 /dev/nst0a
crw-rw---- 1 root tape 9, 160 Aug 25 17:11 /dev/nst0l
crw-rw---- 1 root tape 9, 192 Aug 25 17:11 /dev/nst0m
crw-rw---- 1 root tape 9,   0 Aug 25 17:11 /dev/st0
crw-rw---- 1 root tape 9,  96 Aug 25 17:11 /dev/st0a
crw-rw---- 1 root tape 9,  32 Aug 25 17:11 /dev/st0l
crw-rw---- 1 root tape 9,  64 Aug 25 17:11 /dev/st0m

As I wrote before Networker won’t recognize the second VTL. Let’s configure the first one.

Note
Networker needs NO REWIND tape devices (/dev/nst*). If you don’t use them your tapes will be overwritten!!!

nwsrv:~ # jbconfig

Jbconfig is running on host nwsrv.site (Linux 2.6.31.12-0.2-default),
  and is using nwsrv.site as the NetWorker server.

         1) Configure an AlphaStor Library.
         2) Configure an Autodetected SCSI Jukebox.
         3) Configure an Autodetected NDMP SCSI Jukebox.
         4) Configure an SJI Jukebox.
         5) Configure an STL Silo.

What kind of Jukebox are you configuring? [1] 2
14484:jbconfig: Scanning SCSI buses; this may take a while ...
Installing 'Spectralogic' jukebox - scsidev@2.0.0.

What name do you want to assign to this jukebox device? jb1
15814:jbconfig: Attempting to detect serial numbers on the jukebox and drives ...

15815:jbconfig: Will try to use SCSI information returned by jukebox to configure drives.

Turn NetWorker auto-cleaning on (yes / no) [yes]?
The drives in this jukebox cannot be auto-configured with the available
 information. You will need to provide the path for the drives.
Is (any path of) any drive intended for NDMP use? (yes / no) [no]
Is any drive going to have more than one path defined? (yes / no) [no]

Please enter the device path information in one of the following formats:

/dev/nst0 --for local path or
host:device-path --for remote node or NDMP device(s) or
host:drive-letter:directory path --for Windows disk file

Drive  1, element 1
Drive path ? /dev/nst0

Drive  2, element 2
Drive path ? /dev/nst1

Drive  3, element 3
Drive path ? /dev/nst2

Drive  4, element 4
Drive path ? /dev/nst3

Please select the appropriate drive type number:
  1) 3480                  25) 9840C                 48) SAIT-2
  2) 3570                  26) 9840D                 49) SD3
  3) 3590                  27) 9940                  50) sdlt
  4) 3592                  28) 9940B                 51) sdlt320
  5) 4890                  29) adv_file              52) sdlt600
  6) 4mm                   30) Atmos COS             53) SLR
  7) 4mm 12GB              31) dlt                   54) T10000
  8) 4mm 20GB              32) dlt vs160             55) T10000B
  9) 4mm 4GB               33) dlt-s4                56) tkz90
 10) 4mm 8GB               34) dlt-v4                57) travan10
 11) 4mm DAT160            35) dlt1                  58) TS1120
 12) 4mm DAT72             36) dlt7000               59) TS1130
 13) 8mm                   37) dlt8000               60) tz85
 14) 8mm 20GB              38) file                  61) tz86
 15) 8mm 5GB               39) himt                  62) tz87
 16) 8mm AIT               40) logical               63) tz88
 17) 8mm AIT-2             41) LTO Ultrium           64) tz89
 18) 8mm AIT-3             42) LTO Ultrium-2         65) tz90
 19) 8mm AIT-4             43) LTO Ultrium-3         66) tzs20
 20) 8mm AIT-5             44) LTO Ultrium-4         67) VXA
 21) 8mm Mammoth-2         45) optical               68) VXA-172
 22) 9490                  46) qic                   69) VXA-2
 23) 9840                  47) SAIT-1                70) VXA-320
 24) 9840b

Enter the drive type of drive 1? 44
Are all the drives the same model? (yes / no) [yes]

Jukebox has been added successfully

The following configuration options have been set:

> Jukebox description to the control port and model.
> Autochanger control port to the port at which we found it.
> Networker managed tape autocleaning on.
> Barcode reading to on.
> Volume labels that match the barcodes.
> Slot intended to hold cleaning cartridge to 22.  Please insure that a
        cleaning cartridge is in that slot
> Number of times we will use a new cleaning cartridge to 5.
> Cleaning interval for the tape drives to 6 months.

You can review and change the characteristics of the autochanger and its
        associated devices using the NetWorker Management Console.

Would you like to configure another jukebox? (yes/no) [no]
nwsrv:~ # nsrjb
                1:      jb1     [enabled]
There is only one enabled and configured jukebox: jb1

Jukebox jb1: (Ready to accept commands)
14118:nsrjb: No volumes found in the media database...continuing.
slot  volume                            pool  barcode   volume id  recyclable
   1: -*                                      DD1001S3  -
   2: -*                                      DD1002S3  -
   3: -*                                      DD1003S3  -
   4: -*                                      DD1004S3  -
   5: -*                                      DD1005S3  -
   6: -*                                      DD1006S3  -
   7: -*                                      DD1007S3  -
   8: -*                                      DD1008S3  -
   9: -*                                      DD1009S3  -
  10: -*                                      DD1010S3  -
  11: -*                                      UD1011L4  -
  12: -*                                      UD1012L4  -
  13: -*                                      UD1013L4  -
  14: -*                                      UD1014L4  -
  15: -*                                      UD1015L4  -
  16: -*                                      UD1016L4  -
  17: -*                                      UD1017L4  -
  18: -*                                      UD1018L4  -
  19: -*                                      UD1019L4  -
  20: -*                                      UD1020L4  -
  21: -*                                      CLN100S3  -
  22: Cleaning Tape (5 uses left)             CLN101L4  -
        *not registered in the NetWorker media data base

drive 1 (/dev/nst0) slot   :
drive 2 (/dev/nst1) slot   :
drive 3 (/dev/nst2) slot   :
drive 4 (/dev/nst3) slot   :

login to NMC

start firefox and run URL http://nwsrv:9000

press start, open with > other > javaws

Now set the password for NMC user Administrator

Let’s use the NMC.

PressEnterprise > select server nwsrv in enterprise > double click at networker

MHVTL tape library

In new windows press devices > select library jb1

You can see that there are 2 cleaning tapes and 18 unlabeled tapes. Lets label some tapes…

Backup to Disk

Networker uses Advanced Filetype devices (AFTD) for disk backup. Let’s create a AFTD on mountpoint /aftd.

O.k. Now you have an up and running Networker server with a VTL and AFTD. You can use shell or NMC to administrate Networker.

conclusion

I hope you enjoyed this step by step howto. Some feedback would be nice ;)

Kind regards, Otmanix

Posted in Backup, EMC, Linux | Tagged , , , , , | Leave a comment

Networker and MHVTL in a VirtualBox VM part5

EMC Networker

download

You can get all latest EMC Networker revisions for different platforms here.

Download latest EMC Networker 7.6.x packages for Linux/32bit.

install Networker server

run terminal

opensuse@nwsrv:~> su -
Password:
Directory: /root
Wed Aug 25 18:09:16 EDT 2010
nwsrv:~ # cd /home/opensuse/Download/
nwsrv:/home/opensuse/Download # ls -l
total 204428
-rw-r--r-- 1 opensuse users    154834 Aug 25 17:00 mhvtl-0.16-13.src.rpm
-rw-r--r-- 1 opensuse users     14634 Aug 25 17:14 mhvtl.txt
-rw-r--r-- 1 root     root  209158490 Aug 25 18:08 nw76_linux_x86.tar.gz
nwsrv:/home/opensuse/Download # tar xfz nw76_linux_x86.tar.gz
nwsrv:/home/opensuse/Download # cd linux_x86/
nwsrv:/home/opensuse/Download/linux_x86 # ls -l
total 204688
-rwxr-xr-x 1 root cdrom      4250 Aug  6 18:12 LGTO_METAFILE.linuxx86
-rw-rw-r-- 1 root cdrom 112865810 Aug  6 18:44 lgtoclnt-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom   4023078 Aug  6 18:44 lgtofr-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom   4036005 Aug  6 18:44 lgtoja-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom   3843775 Aug  6 18:44 lgtoko-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom    775878 Aug  6 18:44 lgtolicm-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom    279769 Aug  6 18:44 lgtoman-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom  50109657 Aug  6 18:46 lgtonmc-7.6.0-1.i686.rpm
-rw-rw-r-- 1 root cdrom  12185276 Aug  6 18:45 lgtonode-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom  17469742 Aug  6 18:45 lgtoserv-7.6.0.7-1.i686.rpm
-rw-rw-r-- 1 root cdrom   3934305 Aug  6 18:45 lgtozh-7.6.0.7-1.i686.rpm
-rwxr-xr-x 1 root cdrom     43027 Aug  6 18:12 sd_products.res
nwsrv:/home/opensuse/Download/linux_x86 # rpm -ivh lgtoclnt-7.6.0.7-1.i686.rpm
Preparing...                ########################################### [100%]
   1:lgtoclnt               ########################################### [100%]
Installing Home base agent........
EMC HomeBase Agent is supported only on following platforms.
1) Red Hat Linux Version 4 or 5 on x86 and amd64
2) Solaris Version 8 or 9 on SPARC.
3) Aix 5.2 or 5.3 on PPC.
HomeBase Agent not installed
nwsrv:/home/opensuse/Download/linux_x86 # rpm -ivh lgtoman-7.6.0.7-1.i686.rpm
Preparing...                ########################################### [100%]
   1:lgtoman                ########################################### [100%]
nwsrv:/home/opensuse/Download/linux_x86 # rpm -ivh lgtonode-7.6.0.7-1.i686.rpm
Preparing...                ########################################### [100%]
   1:lgtonode               ########################################### [100%]
nwsrv:/home/opensuse/Download/linux_x86 # rpm -ivh lgtoserv-7.6.0.7-1.i686.rpm
Preparing...                ########################################### [100%]
   1:lgtoserv               ########################################### [100%]
nwsrv:/home/opensuse/Download/linux_x86 # /etc/init.d/networker start
nwsrv:/home/opensuse/Download/linux_x86 # nsrwatch
...

Press CTRL+C to exit nsrwatch command line tool.

You can see that Networker server is up and running. Evaluation license will expire in 30 days.

install Networker Management Console

run terminal

opensuse@nwsrv:~> su -
nwsrv:/home/opensuse/Download/linux_x86 # rpm -ivh lgtonmc-7.6.0-1.i686.rpm
Preparing...                ########################################### [100%]
   1:lgtonmc                ########################################### [100%]

NOTE: To complete configuration execute the following script as root:
      /opt/lgtonmc/bin/nmc_config

nwsrv:/home/opensuse/Download/linux_x86 # kwrite /opt/lgtonmc/bin/nmc_config

OpenSUSE uses a later version of rpm compared to SLES. Therefore the nmc_config script will fail because of a non supported rpm option. One has to edit the script manually as workaround.

case "$ARCH" in
    Linux )
#           base=`rpm -q --qf "%{INSTALLPREFIX}\n" lgtonmc 2> /dev/null`
            base="/opt/lgtonmc"
            ;;

Now complete the installation of NMC. Always press return for NMC install options to get default values…

nwsrv:/home/opensuse/Download/linux_x86 # cd /opt/lgtonmc/
nwsrv:/opt/lgtonmc # /opt/lgtonmc/bin/nmc_config

For optimum security, the embedded web server inside this product must
run as a non root user. Please specify a local user name and group name
the web server must run as. It is recommended that the user and group
you specify have limited privileges and file access permissions. Please
create such a local user and group first if required.
Please specify in the format user/group. For example nobody/nobody.

Please specify the user/group for the web server [nobody/nobody]?

Using nobody as user name and nobody as group name

What port should the web server use [9000]?

What port should the GST server use [9001]?

What directory should be used for the LGTOnmc database [/opt/lgtonmc/lgto_gstdb]?

Where are the NetWorker binaries installed [/usr/sbin]?

Start daemons at end of configuration [n]?

Creating installation log in /opt/lgtonmc/logs/install.log.

Performing initialization. Please wait...

Installation successful.
nwsrv:/opt/lgtonmc # /etc/init.d/gst start
Starting GST:
GST Services, Version 7.6.0.Build.194

done.
nwsrv:/opt/lgtonmc #

O.k. Now MHVTL, Networker server and NMC are up and running on OpenSUSE 11.2 in a VirtualBox VM.

Posted in Backup, EMC, Linux | Tagged , , , , , | Leave a comment

Networker and MHVTL in a VirtualBox VM part4

MHVTL – Linux virtual tape library

download

The homepage of MHVTL project is here.

Mark Harvey is the developer of this OpenSource Software (GPL v2).

First of all download latest stable version 0.16-13 (source rpm).

installation

run terminal

opensuse@nwsrv:~> su -
Password: reverse
nwsrv:~ # cd /home/opensuse/Download/
nwsrv:/home/opensuse/Download # ls -l
total 152
-rw-r--r-- 1 opensuse users 154834 Aug 25 17:00 mhvtl-0.16-13.src.rpm
nwsrv:/home/opensuse/Download # rpm -Uvh mhvtl-0.16-13.src.rpm
   1:mhvtl                  warning: user markh does not exist - using root
warning: user markh does not exist - using root3%)
########################################### [100%]
nwsrv:/home/opensuse/Download # cd /usr/src/packages/BUILD
nwsrv:/usr/src/packages/BUILD # tar xfz ../SOURCES/mhvtl-2010-05-09.tgz
nwsrv:/usr/src/packages/BUILD # cd mhvtl-0.16/kernel/
nwsrv:/usr/src/packages/BUILD/mhvtl-0.16/kernel # make
make -C /lib/modules/2.6.31.12-0.2-default/build SUBDIRS=/usr/src/packages/BUILD/mhvtl-0.16/kernel modules
make[1]: Entering directory `/usr/src/linux-2.6.31.12-0.2-obj/i386/default'
make -C ../../../linux-2.6.31.12-0.2 O=/usr/src/linux-2.6.31.12-0.2-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/mhvtl-0.16/kernel/mhvtl.o
In file included from /usr/src/packages/BUILD/mhvtl-0.16/kernel/mhvtl.c:337:
/usr/src/packages/BUILD/mhvtl-0.16/kernel/fetch27.c: In function âvtl_sg_copy_userâ:
/usr/src/packages/BUILD/mhvtl-0.16/kernel/fetch27.c:54: warning: cast from pointer to integer of different size
/usr/src/packages/BUILD/mhvtl-0.16/kernel/fetch27.c:55: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/packages/BUILD/mhvtl-0.16/kernel/mhvtl.mod.o
  LD [M]  /usr/src/packages/BUILD/mhvtl-0.16/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/linux-2.6.31.12-0.2-obj/i386/default'
nwsrv:/usr/src/packages/BUILD/mhvtl-0.16/kernel # make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/
depmod -ae
WARNING: -e needs -E or -Fnwsrv:/usr/src/packages/BUILD/mhvtl-0.16/kernel #
nwsrv:/usr/src/packages/BUILD/mhvtl-0.16/kernel # cd ..
nwsrv:/usr/src/packages/BUILD/mhvtl-0.16 # make
make -C scripts MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/scripts'
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' update_device.conf.in > update_device.conf
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/scripts'
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/vtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic vtllib.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic spc.c
cc -shared  -o libvtlscsi.so vtllib.o spc.o
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtltape.o vtltape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o q.o q.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtltape vtltape.o q.o -L. -lz -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o dump_tape.o dump_tape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o dump_tape dump_tape.o
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtlcmd.o vtlcmd.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtlcmd q.o vtlcmd.o
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o dump_messageQ q.o dump_messageQ.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o mktape.o mktape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o mktape mktape.o
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtllibrary.o vtllibrary.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.16.13\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/vtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtllibrary vtllibrary.o q.o -L. -lvtlscsi
sed -e s'/@HOME_PATH@/\/opt\/vtl/' make_vtl_media.in > make_vtl_media.1
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' make_vtl_media.1 > make_vtl_media
rm -f make_vtl_media.1
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/usr'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/vtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/etc'
make[1]: `mhvtl' is up to date.
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/etc'
nwsrv:/usr/src/packages/BUILD/mhvtl-0.16 # make install
make usr
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16'
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/vtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/usr'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/usr'
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16'
make -C usr install /usr
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/usr'
install -d -m 755 /usr/lib
install -o root -g bin -m 755 libvtlscsi.so /usr/lib/
install -d -m 755 /usr/bin
install -o root -g vtl -m 4750 vtltape /usr/bin/
install -o root -g vtl -m 4750 vtllibrary /usr/bin/
install -o vtl -g vtl -m 750 vtlcmd /usr/bin/
install -o vtl -g vtl -m 750 mktape /usr/bin/
install -m 700 build_library_config /usr/bin/
install -m 700 make_vtl_media /usr/bin/
install -m 700 make_vtl_devices /usr/bin/
make[1]: Nothing to be done for `/usr'.
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/usr'
make etc
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/vtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/etc'
make[2]: `mhvtl' is up to date.
make[2]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/etc'
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16'
make -C scripts install
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/scripts'
install -m 700 update_device.conf /usr/bin/
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/scripts'
make -C etc install
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-0.16/etc'
install -d -m 755 /etc
install -d -m 755 /etc/init.d
install -m 700 mhvtl /etc/init.d/
test ! -x /sbin/insserv || /sbin/insserv mhvtl
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-0.16/etc'
nwsrv:/usr/src/packages/BUILD/mhvtl-0.16 # /etc/init.d/mhvtl start
Could not locate library config file: /etc/mhvtl/library_contents.10
Creating a default one
Please stop mhvtl & edit /etc/mhvtl/library_contents.10 to suit your requirements
Could not locate library config file: /etc/mhvtl/library_contents.30
Creating a default one
Please stop mhvtl & edit /etc/mhvtl/library_contents.30 to suit your requirements
vtltape: version 0.16.13
vtltape: version 0.16.13
vtltape: version 0.16.13
vtltape: version 0.16.13
vtltape: version 0.16.13
vtltape: version 0.16.13
vtltape: version 0.16.13
vtltape: version 0.16.13
vtllibrary: version 0.16.13
vtllibrary process PID is 6126
vtllibrary: version 0.16.13
vtllibrary process PID is 6129
                                                                                                               done

Lets have a look at the SCSI devices…

nwsrv:/usr/src/packages/BUILD/mhvtl-0.16 # lsscsi -g
[0:0:0:0]    disk    ATA      VBOX HARDDISK    1.0   /dev/sda  /dev/sg0
[0:0:1:0]    disk    ATA      VBOX HARDDISK    1.0   /dev/sdb  /dev/sg1
[1:0:0:0]    cd/dvd  VBOX     CD-ROM           1.0   /dev/sr0  /dev/sg2
[2:0:0:0]    mediumx SPECTRA  PYTHON           550V  /dev/sch0  /dev/sg11
[2:0:1:0]    tape    IBM      ULT3580-TD4      550V  /dev/st0  /dev/sg3
[2:0:2:0]    tape    IBM      ULT3580-TD4      550V  /dev/st1  /dev/sg4
[2:0:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st2  /dev/sg5
[2:0:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st3  /dev/sg6
[2:1:0:0]    mediumx SPECTRA  PYTHON           550V  /dev/sch1  /dev/sg12
[2:1:1:0]    tape    IBM      ULT3580-TD4      550V  /dev/st4  /dev/sg7
[2:1:2:0]    tape    IBM      ULT3580-TD4      550V  /dev/st5  /dev/sg8
[2:1:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st6  /dev/sg9
[2:1:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st7  /dev/sg10
nwsrv:/usr/src/packages/BUILD/mhvtl-0.16 #

You can see that there are 2 Spectra Python tape libraries, each containing 4 IBM LTO4 tape drives.

Note

EMC Networker will not recognize the second tape library. There seems to be a problem that the second tape library has the same SCSI controller number as the first one.

configuration

The MHVTL configuration files are located in /etc/mhvtl. You may stop MHVTL with /etc/init.d/mhvtl stop, change the files as desired and start MHVTL with /etc/init.d/mhvtl start once again.

nwsrv:/etc/mhvtl # ls
device.conf  library_contents.10  library_contents.30  mhvtl.conf

The virtual tapes are located as files in directory /opt/vtl.

nwsrv:/opt/vtl # ls
CLN100S3  DD1001S3  DD1005S3  DD1009S3  DD3003S3  DD3007S3  UD1011L4  UD1015L4  UD1019L4  UD3013L4  UD3017L4
CLN101L4  DD1002S3  DD1006S3  DD1010S3  DD3004S3  DD3008S3  UD1012L4  UD1016L4  UD1020L4  UD3014L4  UD3018L4
CLN300S3  DD1003S3  DD1007S3  DD3001S3  DD3005S3  DD3009S3  UD1013L4  UD1017L4  UD3011L4  UD3015L4  UD3019L4
CLN301L4  DD1004S3  DD1008S3  DD3002S3  DD3006S3  DD3010S3  UD1014L4  UD1018L4  UD3012L4  UD3016L4  UD3020L4

MHVTL forum

There’s a forum for MHVTL, run by nia, where you can ask questions, have a look at other configurations and so on…

Posted in Backup, EMC, Linux | Tagged , , , , , | Leave a comment