In My setup i have Dell TL-2000, so here below i am showing you some steps how to connect Bacula server with TL-2000
In Previous section you read, Bacula setup
http://raman-kumar.blogspot.com/2013/01/bacula-setup-by-rpm-in-centos-63.html
Now after that
Make sure you install iscsi-initiator and MTX
The mtx command controls single or multi-drive SCSI media changers such as tape changers, autoloaders, tape libraries, or optical media
To Install, follow the following Steps.
#yum install mtx
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mtx.x86_64 0:1.3.12-5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mtx x86_64 1.3.12-5.el6 dir1 119 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 119 k
Installed size: 348 k
Is this ok [y/N]: y
Downloading Packages:
mtx-1.3.12-5.el6.x86_64.rpm | 119 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : mtx-1.3.12-5.el6.x86_64 1/1
Verifying : mtx-1.3.12-5.el6.x86_64 1/1
Installed:
mtx.x86_64 0:1.3.12-5.el6
Complete!
#yum install iscsi-initiator-utils
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package iscsi-initiator-utils.x86_64 0:6.2.0.872-41.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
iscsi-initiator-utils x86_64 6.2.0.872-41.el6 dir1 654 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 654 k
Installed size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
iscsi-initiator-utils-6.2.0.872-41.el6.x86_64.rpm | 654 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : iscsi-initiator-utils-6.2.0.872-41.el6.x86_64 1/1
Verifying : iscsi-initiator-utils-6.2.0.872-41.el6.x86_64 1/1
Installed:
iscsi-initiator-utils.x86_64 0:6.2.0.872-41.el6
Complete!
Make Sure service always on once machine restarted as well.
[root@backup01 bacula]# chkconfig iscsi on
after that do some changes in conf file
#vi /etc/iscsi/iscsid.conf
node.startup = automatic
node.session.timeo.replacement_timeout = 144
Save the file and start the iscsi services.
then try to discover your tape drive. with following command.
iscsiadm –m discovery –t st -p
If everything goes ok then you can able to find this output
[root@backup01 bacula]# iscsiadm -m discovery -t st -p 192.168.200.177
Starting iscsid: [ OK ]
192.168.200.177:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98003.0
192.168.200.178:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98003.0
192.168.200.177:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98002.0
192.168.200.178:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98002.0
here is a trick then go under /dev/st or sg but you cannot see anything...after that restart services again now you can see output like this.
[root@tbmh2ubackup01 bacula]# /etc/init.d/iscsi restart
Stopping iscsi: [ OK ]
Starting iscsi: [ OK ]
Now you can see lot of devise.
[root@tbmh2ubackup01 bacula]# ls /dev/st
st0 st0m st1l st2a st3 st3m stdout
st0a st1 st1m st2l st3a stderr
st0l st1a st2 st2m st3l stdin
In Previous section you read, Bacula setup
http://raman-kumar.blogspot.com/2013/01/bacula-setup-by-rpm-in-centos-63.html
Now after that
Make sure you install iscsi-initiator and MTX
The mtx command controls single or multi-drive SCSI media changers such as tape changers, autoloaders, tape libraries, or optical media
To Install, follow the following Steps.
#yum install mtx
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mtx.x86_64 0:1.3.12-5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mtx x86_64 1.3.12-5.el6 dir1 119 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 119 k
Installed size: 348 k
Is this ok [y/N]: y
Downloading Packages:
mtx-1.3.12-5.el6.x86_64.rpm | 119 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : mtx-1.3.12-5.el6.x86_64 1/1
Verifying : mtx-1.3.12-5.el6.x86_64 1/1
Installed:
mtx.x86_64 0:1.3.12-5.el6
Complete!
#yum install iscsi-initiator-utils
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package iscsi-initiator-utils.x86_64 0:6.2.0.872-41.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
iscsi-initiator-utils x86_64 6.2.0.872-41.el6 dir1 654 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 654 k
Installed size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
iscsi-initiator-utils-6.2.0.872-41.el6.x86_64.rpm | 654 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : iscsi-initiator-utils-6.2.0.872-41.el6.x86_64 1/1
Verifying : iscsi-initiator-utils-6.2.0.872-41.el6.x86_64 1/1
Installed:
iscsi-initiator-utils.x86_64 0:6.2.0.872-41.el6
Complete!
Make Sure service always on once machine restarted as well.
[root@backup01 bacula]# chkconfig iscsi on
after that do some changes in conf file
#vi /etc/iscsi/iscsid.conf
node.startup = automatic
node.session.timeo.replacement_timeout = 144
Save the file and start the iscsi services.
then try to discover your tape drive. with following command.
iscsiadm –m discovery –t st -p
If everything goes ok then you can able to find this output
[root@backup01 bacula]# iscsiadm -m discovery -t st -p 192.168.200.177
Starting iscsid: [ OK ]
192.168.200.177:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98003.0
192.168.200.178:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98003.0
192.168.200.177:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98002.0
192.168.200.178:3260,1 iqn.1988-11.com.dell.202dca:eui.5000e11150b98002.0
here is a trick then go under /dev/st or sg but you cannot see anything...after that restart services again now you can see output like this.
[root@tbmh2ubackup01 bacula]# /etc/init.d/iscsi restart
Stopping iscsi: [ OK ]
Starting iscsi: [ OK ]
Now you can see lot of devise.
[root@tbmh2ubackup01 bacula]# ls /dev/st
st0 st0m st1l st2a st3 st3m stdout
st0a st1 st1m st2l st3a stderr
st0l st1a st2 st2m st3l stdin
More Info you can find by this way as well.
[root@backup01 bacula]# cat /proc/scsi/scsi
Attached devices:
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: ULT3580-HH4 Rev: BBNF
Type: Sequential-Access ANSI SCSI revision: 06
Host: scsi4 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: ULT3580-HH4 Rev: BBNF
Type: Sequential-Access ANSI SCSI revision: 06
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: ULT3580-HH4 Rev: BBNF
Type: Sequential-Access ANSI SCSI revision: 06
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: ULT3580-HH4 Rev: BBNF
Type: Sequential-Access ANSI SCSI revision: 06
[root@backup01 bacula]# dmesg | grep IBM
scsi 5:0:0:0: Sequential-Access IBM ULT3580-HH4 BBNF PQ: 0 ANSI: 6
scsi 4:0:0:0: Sequential-Access IBM ULT3580-HH4 BBNF PQ: 0 ANSI: 6
scsi 3:0:0:0: Sequential-Access IBM ULT3580-HH4 BBNF PQ: 0 ANSI: 6
scsi 2:0:0:0: Sequential-Access IBM ULT3580-HH4 BBNF PQ: 0 ANSI: 6
after that go to backup server and start teh srvices make it permanet as well
[root@backup01 bacula]# /etc/init.d/bacula-dir start
Starting bacula-dir: [ OK ]
[root@backup01 bacula]# chkconfig bacula-dir on
[root@backup01 bacula]# /etc/init.d/bacula-sd start
Starting bacula-sd: [ OK ]
[root@backup01 bacula]# chkconfig bacula-sd on
[root@backup01 bacula]# /etc/init.d/bacula-fd start
Starting bacula-fd: [ OK ]
[root@ubackup01 bacula]# chkconfig bacula-fd on
I Next Section i will share main configuration of dir.conf and sd.conf as well.
Enjoy.
Note :- Keep it Simple
0 comments:
Post a Comment