Re: [Bacula-users] HP msl5030 misfunctions ...

2009-03-04 Thread mimmo lariccia

Hi Michael and thanks for fast answer...
Hi all

I hope you're right.
But these are results of my tests:

# lsscsi 
[0:0:0:0]mediumx COMPAQ   MSL5000 Series   0423  -   
[0:0:0:1]tapeHP   Ultrium 1-SCSI   E38W  /dev/st0
[0:0:0:2]storage HP   NS E1200-160 530b  -   

# mtx -f /dev/sg0 status
  Storage Changer /dev/sg0:2 Drives, 30 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 4 Loaded):VolumeTag = TFW546L2

Data Transfer Element 1:Full (Storage Element 3 Loaded):VolumeTag = TFW559L2

  Storage Element 1:Empty
  Storage Element 2:Full :VolumeTag=TFW539L2
  Storage Element 3:Empty
  Storage Element 4:Empty
  Storage Element 5:Full :VolumeTag=TFW605L2
  Storage Element 6:Full :VolumeTag=TFW537L2
  Storage Element 7:Full :VolumeTag=TFW550L2
  Storage Element 8:Full :VolumeTag=TFW564L2
  Storage Element 9:Full :VolumeTag=TFW552L2
  Storage Element 10:Full :VolumeTag=TFW560L2
  Storage Element 11:Full :VolumeTag=TFW565L2
  Storage Element 12:Full :VolumeTag=TFW536L2
  Storage Element 13:Full :VolumeTag=TFW549L2
  Storage Element 14:Full :VolumeTag=TFW562L2
  Storage Element 15:Full :VolumeTag=TFW563L2
  Storage Element 16:Full :VolumeTag=TFW547L2
  Storage Element 17:Full :VolumeTag=TFW540L2
  Storage Element 18:Full :VolumeTag=TFW554L2
  Storage Element 19:Full :VolumeTag=TFW561L2
  Storage Element 20:Full :VolumeTag=TFW555L2
  Storage Element 21:Full :VolumeTag=TFW558L2
  Storage Element 22:Full :VolumeTag=TFW566L2
  Storage Element 23:Full :VolumeTag=TFW556L2
  Storage Element 24:Full :VolumeTag=TFW567L2
  Storage Element 25:Full :VolumeTag=TFW568L2
  Storage Element 26:Full :VolumeTag=TFW557L2
  Storage Element 27:Full :VolumeTag=TFW551L2
  Storage Element 28:Full :VolumeTag=TFW553L2
  Storage Element 29:Full :VolumeTag=EPP993L1
  Storage Element 30 IMPORT/EXPORT:Full :VolumeTag=CLNU01L1 
   

# mtx -f /dev/sg1 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 24
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: Field in Error = 05
mtx: Request Sense: BPV=yes
mtx: Request Sense: Error in CDB=yes
mtx: Request Sense: SKSV=yes
mtx: Request Sense: Field Pointer = 00 02
Mode sense (0x1A) for Page 0x1D failed
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 20
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed

# mtx -f /dev/sg2 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 24
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
Mode sense (0x1A) for Page 0x1D failed
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 20
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed

Some other suggestions ?
Thanks a lot anyway...

 Date: Tue, 3 Mar 2009 20:32:56 -0500
 From: m...@ornl.gov
 Subject: Re: [Bacula-users] HP msl5030 misfunctions ...
 To: mum_la...@hotmail.com
 CC: bacula-users@lists.sourceforge.net
 
 On Tue, Mar 03

Re: [Bacula-users] HP msl5030 misfunctions ...

2009-03-04 Thread Michael Galloway
On Wed, Mar 04, 2009 at 08:29:37AM +, mimmo lariccia wrote:
 
 Hi Michael and thanks for fast answer...
 Hi all
 
 I hope you're right.
 But these are results of my tests:
 
 # lsscsi 
 [0:0:0:0]mediumx COMPAQ   MSL5000 Series   0423  -   
 [0:0:0:1]tapeHP   Ultrium 1-SCSI   E38W  /dev/st0
 [0:0:0:2]storage HP   NS E1200-160 530b  -   


you indicated that there are two drives in your library. do both drives show up
in the scsi bios when you boot the system? it would seem that the os is not 
seeing
the first drive for some reason.

-- michael
 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] HP msl5030 misfunctions ...

2009-03-04 Thread John Drescher
On Wed, Mar 4, 2009 at 3:29 AM, mimmo lariccia mum_la...@hotmail.com wrote:
 Hi Michael and thanks for fast answer...
 Hi all

 I hope you're right.
 But these are results of my tests:

 # lsscsi
 [0:0:0:0]    mediumx COMPAQ   MSL5000 Series   0423  -
 [0:0:0:1]    tape    HP   Ultrium 1-SCSI   E38W  /dev/st0
 [0:0:0:2]    storage HP   NS E1200-160 530b  -

 # mtx -f /dev/sg0 status
   Storage Changer /dev/sg0:2 Drives, 30 Slots ( 1 Import/Export )
Use the tapeinfo command instead

tapeinfo -f /dev/sg0

This works on any sg device

 # tapeinfo -f /dev/sg0
Product Type: CD-ROM
Vendor ID: 'LITE-ON '
Product ID: 'DVDRW LDW-851S  '
Revision: 'GS0C'
Attached Changer: No
SCSI ID: 0
SCSI LUN: 0
Ready: no

# tapeinfo -f /dev/sg1
Product Type: Disk Drive
Vendor ID: 'ATA '
Product ID: 'ST3750330AS '
Revision: 'SD04'
Attached Changer: No
SerialNumber: '3QK02QVL'
SCSI ID: 0
SCSI LUN: 0
Ready: yes

I don't have a tape drive connected here at home so I can not show you
tape or changer results but I know this works at work.

John

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] HP msl5030 misfunctions ...

2009-03-04 Thread mimmo lariccia

 Date: Wed, 4 Mar 2009 08:19:42 -0500
 From: m...@ornl.gov
 Subject: Re: [Bacula-users] HP msl5030 misfunctions ...
 To: mum_la...@hotmail.com
 CC: gallowa...@ornl.gov; bacula-users@lists.sourceforge.net
 
 On Wed, Mar 04, 2009 at 08:29:37AM +, mimmo lariccia wrote:
  
  Hi Michael and thanks for fast answer...
  Hi all
  
  I hope you're right.
  But these are results of my tests:
  
  # lsscsi 
  [0:0:0:0]mediumx COMPAQ   MSL5000 Series   0423  -   
  [0:0:0:1]tapeHP   Ultrium 1-SCSI   E38W  /dev/st0
  [0:0:0:2]storage HP   NS E1200-160 530b  -   
 
 
 you indicated that there are two drives in your library. do both drives show 
 up
 in the scsi bios when you boot the system? it would seem that the os is not 
 seeing
 the first drive for some reason.
 
 -- michael

Hi Michael.
My O.S. indicates during boot the same devices You see in the lsscsi...
This may be due to a configuration of Storage_Router, inside the Tape Library, 
that bridges FC connection with SCSI ones on Tapes.
But I think hardware problem may not exclude in this way communications between 
bacula and its items...
There's something that I'm missing...

Thanks anyway!!!
:)
Cheers.

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] HP msl5030 misfunctions ...

2009-03-04 Thread mimmo lariccia

 Date: Wed, 4 Mar 2009 08:34:09 -0500
 Subject: Re: [Bacula-users] HP msl5030 misfunctions ...
 From: dresche...@gmail.com
 To: mum_la...@hotmail.com; Bacula-users@lists.sourceforge.net
 
 On Wed, Mar 4, 2009 at 3:29 AM, mimmo lariccia mum_la...@hotmail.com wrote:
  Hi Michael and thanks for fast answer...
  Hi all
 
  I hope you're right.
  But these are results of my tests:
 
  # lsscsi
  [0:0:0:0]mediumx COMPAQ   MSL5000 Series   0423  -
  [0:0:0:1]tapeHP   Ultrium 1-SCSI   E38W  /dev/st0
  [0:0:0:2]storage HP   NS E1200-160 530b  -
 
  # mtx -f /dev/sg0 status
Storage Changer /dev/sg0:2 Drives, 30 Slots ( 1 Import/Export )
 Use the tapeinfo command instead
 
 tapeinfo -f /dev/sg0
 
 This works on any sg device
 
  # tapeinfo -f /dev/sg0
 Product Type: CD-ROM
 Vendor ID: 'LITE-ON '
 Product ID: 'DVDRW LDW-851S  '
 Revision: 'GS0C'
 Attached Changer: No
 SCSI ID: 0
 SCSI LUN: 0
 Ready: no
 
 # tapeinfo -f /dev/sg1
 Product Type: Disk Drive
 Vendor ID: 'ATA '
 Product ID: 'ST3750330AS '
 Revision: 'SD04'
 Attached Changer: No
 SerialNumber: '3QK02QVL'
 SCSI ID: 0
 SCSI LUN: 0
 Ready: yes
 
 I don't have a tape drive connected here at home so I can not show you
 tape or changer results but I know this works at work.
 
 John

Hi John.
It works correctly on /dev/sg0.
Shows me the model HP MSL5030, the revision and so on, as in Your example...
On /dev/sg1 I see the TAPEDRIVE data...
On /dev/sg2 I see the Storage_Router data...

I agree with You: there's something wrong in the Storage_Router configuration.
But I'm thinking if this condition may confuse bacula or not, because I've 
excluded 2.nd drive from Storage-daemon configuration.

Thanks anyway.
:)
Cheers.

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] HP msl5030 misfunctions ... ‏ Part 1 / 2

2009-03-04 Thread mimmo lariccia

I did it!!!

(And of course solution was in this mailing list - archives!).


All my troubles was in rights assigned to /usr/sbin/b_files of bacula-mysql' 
rpm (everyone root:root).

Perhaps, changing nologin to bacula user in a real shell, I've verified that 
btape _ test , working perfectly by root, but wasn't operative if executed by 
bacula.

Now all /usr/sbin/b_files from rpm bacula-mysql has owner root:disk, and 
library works perfectly...

---

Now I've to work to Part 2 / 2 that need revision of Storage_Router 
configuration of my Tape Library, but I can do it with less pression!

Thanks to all for Your help!
Cheers...

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] HP msl5030 misfunctions ...

2009-03-03 Thread mimmo lariccia

Hi all.
Sorry for annoying with another strange request, but...
It's making me fool!

Using: 
- Centos 5.2 Final
- bacula 2.4.2
- I'm not able to make any kind of manage of autochanger, but btape test 
works perfectly (after I've loaded the drive manually with mtx-changer); also 
an update slots gives me an answer as:
 3999 Device Autochanger not found or could not be opened.

Of course backup on FileStorage works perfectly...

From my point of view may be strange that linux detect only a /dev/nst0 
instead of 2 LTO1 drives into TapeLibrary, but it's not first time I see a Hp 
msl kind library, works with only a drive, instead two or more...

ls /dev 
- 
[...]
/dev/sg0 
/dev/sg1 
/dev/sg2 
[...]
/dev/nst0
[...]

bacula-sd.conf

Autochanger {
Name = HPMSL5030
Device = Drive1
Changer Device = /dev/sg0
Changer Command = /usr/lib/bacula/mtx-changer %c %o %S %a %d
} 

Device {
Name = Drive1
Device Type = Tape
Media Type = Ultrium1
Archive Device = /dev/nst0
Removable Media = yes
Random Access = no
}

Can anyone help me please?
Thanks...


_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] HP msl5030 misfunctions ...

2009-03-03 Thread Michael Galloway
On Tue, Mar 03, 2009 at 10:29:24PM +, mimmo lariccia wrote:
 
 Hi all.
 Sorry for annoying with another strange request, but...
 It's making me fool!
 
 Using: 
 - Centos 5.2 Final
 - bacula 2.4.2
 - I'm not able to make any kind of manage of autochanger, but btape test 
 works perfectly (after I've loaded the drive manually with mtx-changer); also 
 an update slots gives me an answer as:
  3999 Device Autochanger not found or could not be opened.
 
 Of course backup on FileStorage works perfectly...
 
 From my point of view may be strange that linux detect only a /dev/nst0 
 instead of 2 LTO1 drives into TapeLibrary, but it's not first time I see a 
 Hp msl kind library, works with only a drive, instead two or more...
 
 ls /dev 
 - 
 [...]
 /dev/sg0 
 /dev/sg1 
 /dev/sg2 
 [...]
 /dev/nst0
 [...]
 
 bacula-sd.conf
 
 Autochanger {
 Name = HPMSL5030
 Device = Drive1
 Changer Device = /dev/sg0
 Changer Command = /usr/lib/bacula/mtx-changer %c %o %S %a %d
 } 
 
 Device {
 Name = Drive1
 Device Type = Tape
 Media Type = Ultrium1
 Archive Device = /dev/nst0
 Removable Media = yes
 Random Access = no
 }
 
 Can anyone help me please?
 Thanks...


clearly /dev/sg0 is not your changer device. have a look at lsscsi and then 
test with mtx to see what device is your changer. mine:

krait:~ # lsscsi
[0:0:0:0]diskATA  ST980813AS   3.AA  /dev/sda
[1:0:0:0]diskATA  ST980813AS   3.AA  /dev/sdb
[6:0:2:0]tapeHP   Ultrium 4-SCSI   U26W  /dev/st0
[6:0:2:1]mediumx HP   MSL G3 Series6.30  -   
[6:0:3:0]tapeHP   Ultrium 4-SCSI   U26W  /dev/st1
[7:0:0:0]diskAdaptec  Device 0 V1.0  /dev/sdc

and /dev/sg3 is my changer 

krait:~ # mtx -f /dev/sg3 status
  Storage Changer /dev/sg3:2 Drives, 48 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = BR0728L4

Data Transfer Element 1:Empty
  Storage Element 1:Full :VolumeTag=BR0729L4
  Storage Element 2:Full :VolumeTag=BR0725L4
  Storage Element 3:Empty
  Storage Element 4:Full :VolumeTag=BR0727L4
 etc

-- michael


 
 
 _
 Invite your mail contacts to join your friends list with Windows Live Spaces. 
 It's easy!
 http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H

 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users