cancel
Showing results for 
Search instead for 
Did you mean: 
Mike_Gavrilov
Moderator
Moderator
Partner    VIP    Accredited Certified

Symptoms

Jobs end with an error:

0/18/2016 11:41:16 - Error bptm (pid=1312) cannot write image to media id 129365, drive index 8, Value too large for defined data type
10/18/2016 11:41:18 - Info bptm (pid=1312) EXITING with status 84 <----------

Diagnosis

On RHEL media servers you might get this error in /var/log/messages

Oct 18 11:41:16 my-dear-media-srv kernel: st32: Can't allocate 524288 byte tape buffer.

Solution

The  lpfc driver is set to a smaller buffer size than the st driver. This causes the I/O to fail. You need to set corrcet vaules.

For example in /etc/modprobe.d/st.conf

options st buffer_kbs=2048   

and in the /etc/modprobe.d/lpfc.conf
options lpfc lpfc_sg_seg_cnt=512    

You should remember that  buffer_kbs = 4 x lpfc_sg_seg_cnt

Version history
Last update:
‎10-24-2016 12:38 PM
Updated by:
Contributors