Question & Answer
Question
How to resolve EBUSY error while performing ontape archive on linux
Cause
EBUSY failure from write() when writing large blocks (>256k) of data on linux
Answer
While performing ontape archive following error is seen.
ontape -s -L 0
Please mount tape 1 on /dev/st0 and press Return to continue ...
could not write archive tape.
Please mount tape 1 on /dev/st0 and press Return to continue ...
could not write archive tape.
If strace or equivalent trace output of ontape command shows EBUSY as follows
25706 readlink(0xffd35c54, 0x2afd64c0, 4095) = 12
25706 write(4, 0x2afe4800, 1048576) = -1 EBUSY (Device or resource busy)
Then modify TAPEBLK from 1024 to 256 and see if it works.
[{"Product":{"code":"SSB2ML","label":"Informix Dynamic Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"11.5","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
Modified date:
01 June 2022
UID
swg21578460