MHVTL only Write 5 Gb on The tape

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

MHVTL only Write 5 Gb on The tape

oliveiraped
Hi have installed mhvtl with bacula version 5.2.13, and i am having problems in the writing size of the tapes.

Apears thar it only writes 4 Gb bytes on the tapes, here is my configs.

System :

Centos 6.5
Bacula 5.2.13
Postgres 9.3
The /opt/mhvtl is ln to external mount point       mhvtl -> /data/mhvtl/

The emulation mode is Hp esl series LTO-5

Here is my Bacula config


########## VIRTUAL TAPE LIBRARY #####################
STORAGE-SD

Autochanger {
        Name = VTL
        Device = Drive-VTL-1
        Device = Drive-VTL-2
        Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
        Changer Device = /dev/sg8
}


Device {
        Name = Drive-VTL-1
        Drive Index = 0
  Device Type = Tape
        Media Type = LTO-5
        Archive Device = /dev/nst3
        AutomaticMount = yes;
        AlwaysOpen = yes;
        RemovableMedia = yes;
        RandomAccess = no;
        AutoChanger = yes
        LabelMedia = yes
        Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"

}

Pool

#################### Pools ##############
Pool {
  Name = VTL
  Pool Type = Backup
  Recycle = yes
  Recycle Oldest Volume = yes
  AutoPrune = yes
  Volume Retention = 2 months
  File Retention = 2 months
  Job Retention = 2 months
  MaximumVolumeBytes = 1500 G
  LabelFormat = "V"
  Cleaning Prefix = "CLN"
}

### STorage
Storage {
  Name = VTL-XXXXXX
  Address = XXXXXXXXXX
  SDPort = 9103
  Password = XXXXXXXX
  Device = VTL
  Media Type = LTO-5
  Autochanger = yes
  Maximum Concurrent Jobs = 30
  Heartbeat Interval = 1 min;
}



Bacula Pool :

   33 | H00001L5   | Full      |       1 | 4,692,602,880 |        5 |    5,184,000 |       1 |    1 |         1 | LTO-5     | 2013-12-09 16:37:26 |
|      34 | H00002L5   | Full      |       1 | 3,806,401,536 |        4 |    5,184,000 |       1 |    2 |         1 | LTO-5     | 2013-12-09 16:40:52 |
|      35 | H00003L5   | Full      |       1 | 4,572,094,464 |        5 |    5,184,000 |       1 |    3 |         1 | LTO-5     | 2013-12-09 16:45:08 |


lsscisi

[12:4:0:0]   mediumx HP       EML E-Series     1068  /dev/sch0  /dev/sg8
[12:4:0:1]   tape    HP       Ultrium 5-SCSI   N11G  /dev/st3   /dev/sg6
[12:4:0:2]   tape    HP       Ultrium 5-SCSI   N11G  /dev/st4   /dev/sg7

This is Driving my nutts can you help me ?

Best Regards to this great project.


Reply | Threaded
Open this post in threaded view
|

Re: MHVTL only Write 5 Gb on The tape

Mark Harvey
Administrator
What sort of error are you seeing ?

Can you make the syslog available for review ? (Typically /var/log/messages)

Sent from my iPhone

On 10 Dec 2013, at 4:01, "oliveiraped [via mhVTL - A Linux Virtual Tape Library]" <[hidden email]> wrote:

Hi have installed mhvtl with bacula version 5.2.13, and i am having problems in the writing size of the tapes.

Apears thar it only writes 4 Gb bytes on the tapes, here is my configs.

System :

Centos 6.5
Bacula 5.2.13
Postgres 9.3
The /opt/mhvtl is ln to external mount point       mhvtl -> /data/mhvtl/

The emulation mode is Hp esl series LTO-5

Here is my Bacula config


########## VIRTUAL TAPE LIBRARY #####################
STORAGE-SD

Autochanger {
        Name = VTL
        Device = Drive-VTL-1
        Device = Drive-VTL-2
        Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
        Changer Device = /dev/sg8
}


Device {
        Name = Drive-VTL-1
        Drive Index = 0
  Device Type = Tape
        Media Type = LTO-5
        Archive Device = /dev/nst3
        AutomaticMount = yes;
        AlwaysOpen = yes;
        RemovableMedia = yes;
        RandomAccess = no;
        AutoChanger = yes
        LabelMedia = yes
        Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"

}

Pool

#################### Pools ##############
Pool {
  Name = VTL
  Pool Type = Backup
  Recycle = yes
  Recycle Oldest Volume = yes
  AutoPrune = yes
  Volume Retention = 2 months
  File Retention = 2 months
  Job Retention = 2 months
  MaximumVolumeBytes = 1500 G
  LabelFormat = "V"
  Cleaning Prefix = "CLN"
}

### STorage
Storage {
  Name = VTL-XXXXXX
  Address = XXXXXXXXXX
  SDPort = 9103
  Password = XXXXXXXX
  Device = VTL
  Media Type = LTO-5
  Autochanger = yes
  Maximum Concurrent Jobs = 30
  Heartbeat Interval = 1 min;
}



Bacula Pool :

   33 | H00001L5   | Full      |       1 | 4,692,602,880 |        5 |    5,184,000 |       1 |    1 |         1 | LTO-5     | 2013-12-09 16:37:26 |
|      34 | H00002L5   | Full      |       1 | 3,806,401,536 |        4 |    5,184,000 |       1 |    2 |         1 | LTO-5     | 2013-12-09 16:40:52 |
|      35 | H00003L5   | Full      |       1 | 4,572,094,464 |        5 |    5,184,000 |       1 |    3 |         1 | LTO-5     | 2013-12-09 16:45:08 |


lsscisi

[12:4:0:0]   mediumx HP       EML E-Series     1068  /dev/sch0  /dev/sg8
[12:4:0:1]   tape    HP       Ultrium 5-SCSI   N11G  /dev/st3   /dev/sg6
[12:4:0:2]   tape    HP       Ultrium 5-SCSI   N11G  /dev/st4   /dev/sg7

This is Driving my nutts can you help me ?

Best Regards to this great project.





If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/MHVTL-only-Write-5-Gb-on-The-tape-tp4025713.html
To start a new topic under mhVTL - A Linux Virtual Tape Library, email [hidden email]
To unsubscribe from mhVTL - A Linux Virtual Tape Library, click here.
NAML
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL only Write 5 Gb on The tape

oliveiraped
Here is my /varlog/messages

ec 10 09:32:59 titan vtltape[9141]: ssc_tur(): Test Unit Ready (432005) ** : No, Cleaning cart loaded
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432006) (delay 11205): 12 00 00 00 38 00
Dec 10 09:32:59 titan vtllibrary[9167]: spc_inquiry(): INQUIRY ** (432006)
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432007) (delay 805): 1a 08 1d 00 88 00
Dec 10 09:32:59 titan vtllibrary[9167]: spc_mode_sense(): MODE SENSE 6 (432007) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432008) (delay 805): b8 12 03 e8 00 15 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432008) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432009) (delay 805): b8 13 00 0a 00 01 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432009) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432010) (delay 805): b8 14 01 f4 00 02 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432010) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432011) (delay 405): b8 11 00 01 00 01 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432011) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432012) (delay 2805): 12 00 00 00 38 00
Dec 10 09:32:59 titan vtllibrary[9167]: spc_inquiry(): INQUIRY ** (432012)
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432013) (delay 405): 1a 08 1d 00 88 00
Dec 10 09:32:59 titan vtllibrary[9167]: spc_mode_sense(): MODE SENSE 6 (432013) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432014) (delay 405): b8 12 03 e8 00 15 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432014) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432015) (delay 405): b8 13 00 0a 00 01 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432015) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432016) (delay 405): b8 14 01 f4 00 02 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432016) **
Dec 10 09:32:59 titan vtllibrary[9167]: CDB (432017) (delay 405): b8 11 00 01 00 01 00 00 08 5c 00 00
Dec 10 09:32:59 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (432017) **
Dec 10 09:32:59 titan vtltape[9155]: CDB (432018) (delay 1000005): 00 00 00 00 00 00

#############


 9 18:57:29 titan vtllibrary[9167]: smc_read_element_status(): READ ELEMENT STATUS (426647) **
Dec  9 18:57:29 titan vtllibrary[9167]: CDB (426648) (delay 405): a5 00 00 01 03 f8 01 f4 00 00 00 00
Dec  9 18:57:29 titan vtllibrary[9167]: smc_move_medium(): MOVE MEDIUM (426648) **
Dec  9 18:57:29 titan vtllibrary[9167]: smc_move_medium(): Moving from slot 1016 to slot 500 using transport 1, Invert media: no
Dec  9 18:57:29 titan vtllibrary[9167]: move_slot2drive(): About to send cmd: 'lload H00017L5' to drive 1
Dec  9 18:57:29 titan vtltape[9141]: processMessageQ(): Sender id: 110, msg : lload H00017L5
Dec  9 18:57:29 titan vtltape[9141]: loadTape(): Media type 'LTO5' loaded with S/No. : H00017L5_1386605649
Dec  9 18:57:29 titan vtltape[9141]: return_sense(): [Key/ASC/ASCQ] [06 28 00]
Dec  9 18:57:29 titan vtltape[9141]: loadTape(): Media is writable
Dec  9 18:57:29 titan vtltape[9141]: loadTape(): Setting MediumDensityCode to LTO5 (0x58) Media type: 0x00
Dec  9 18:57:29 titan vtltape[9141]: CDB (426649) (delay 18405): 00 00 00 00 00 00
Dec  9 18:57:29 titan vtltape[9141]: ssc_tur(): Test Unit Ready (426649) ** : Yes
Dec  9 18:57:29 titan vtltape[9141]: CDB (426650) (delay 5): 05 00 00 00 00 00
Dec  9 18:57:29 titan vtltape[9141]: ssc_read_block_limits(): READ BLOCK LIMITS (426650) **
Dec  9 18:57:29 titan vtltape[9141]: CDB (426651) (delay 5): 1a 00 00 00 0c 00
Dec  9 18:57:29 titan vtltape[9141]: spc_mode_sense(): MODE SENSE 6 (426651) **
Dec  9 18:57:29 titan bacula-dir: 09-Dez 18:57  Message delivery ERROR: fopen /opt/bacula/log/bacula.log failed: ERR=No such file or directory
Dec  9 18:57:29 titan vtltape[9141]: CDB (426652) (delay 1605): 00 00 00 00 00 00
Dec  9 18:57:29 titan vtltape[9141]: ssc_tur(): Test Unit Ready (426652) ** : Yes
Dec  9 18:57:29 titan vtltape[9141]: CDB (426653) (delay 5): 05 00 00 00 00 00
Dec  9 18:57:29 titan vtltape[9141]: ssc_read_block_limits(): READ BLOCK LIMITS (426653) **
Dec  9 18:57:29 titan vtltape[9141]: CDB (426654) (delay 5): 1a 00 00 00 0c 00
Dec  9 18:57:29 titan vtltape[9141]: spc_mode_sense(): MODE SENSE 6 (426654) **
Dec  9 18:57:29 titan vtltape[9141]: CDB (426655) (delay 405): 01 00 00 00 00 00
Dec  9 18:57:29 titan vtltape[9141]: ssc_rewind(): REWINDING (426655) **
Dec  9 18:57:29 titan vtltape[9141]: rewind_tape(): Media is writable
Dec  9 18:57:29 titan vtltape[9141]: CDB (426656) (delay 405): 00 00 00 00 00 00
Dec  9 18:57:29 titan vtltape[9141]: ssc_tur(): Test Unit Ready (426656) ** : Yes
Dec  9 18:57:29 titan vtltape[9141]: CDB (426657) (delay 5): 05 00 00 00 00 00
Dec  9 18:57:29 titan vtltape[9141]: ssc_read_block_limits(): READ BLOCK LIMITS (426657) **
Dec  9 18:57:29 titan vtltape[9141]: CDB (426658) (delay 5): 1a 00 00 00 0c 00

Hi Dont see any error.:




Reply | Threaded
Open this post in threaded view
|

Re: MHVTL only Write 5 Gb on The tape

oliveiraped
Just Solved the problem, i was postgres 9.3 that was causing that problem, strange i will open i bug tracker on bacula.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL only Write 5 Gb on The tape

oliveiraped
And there is other issue, if you use zfs mount point, you must disable compression on mhvtl, if not you can have speed problems, and strange issues.

Best Regards.