Cta-rmcd won't start

Hi there,

Not sure why but the media changer won’t start at all. Any clues?

contents of /etc/cta/TPCONFIG

6,2,3 ctajaglib /dev/st0 smc0
#6,2,4 ctajaglib /dev/st1 smc1
#6,3,1 ctajaglib /dev/st2 smc2
#6,4,1 ctajaglib /dev/st3 smc3

udev rules

SUBSYSTEM=="scsi_generic", KERNEL=="sg*", ATTRS{type}=="8", SYMLINK:="smc"

# Set the permissions and group of the tape devices
KERNEL=="nst*", MODE:="0666"
KERNEL=="st*",  MODE:="0666"
KERNEL=="sg*",  MODE:="0666"


12/16 17:10:27 14329 rmc_serv: Trying to get geometry of tape library: attempt_nb=3
12/16 17:10:27 14329 lasterror: Function entered: asc=0 ascq=0 save_errno=2 rc=-1 sensekey=0 skvalid=0
12/16 17:10:27 14329 rmc_serv: RMC02 - get_geometry error : /dev/smc : stat error : No such file or directory

thank you.


send me the output of:

[root@tpsrv460 ~]# ls -la /dev/smc
lrwxrwxrwx. 1 root root 3 dec 16 12:25 /dev/smc -> sg1

[root@tpsrv460 ~]# sg_inq /dev/smc
standard INQUIRY:
  PQual=0  Device_type=8  RMB=1  version=0x03  [SPC]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=0  3PC=0  Protect=0  [BQue=0]
  EncServ=0  MultiP=1 (VS=1)  [MChngr=0]  [ACKREQQ=0]  Addr16=0
  [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=1
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=58 (0x3a)   Peripheral device type: medium changer
 Vendor identification: IBM
 Product identification: 03584L32
 Product revision level: 1705
 Unit serial number: 0000078BB2840401

From your log message you are missing /dev/smc → /dev/sgX link.

Alternatively, find what is the medium changer device in your setup.


hi Vladimir,

yes you are right, i am missing the media changer device on this host.

thank you.