[CentOS] iscsi-initiator-utils required in 5.6, loads uneeded modules

Sun Apr 10 13:48:33 UTC 2011
Stephen Harris <lists at spuddy.org>

I just updated one of my virtual hosts to 5.6 and on rebooted I spotted
an error about iscsi.

Which surprised me, since I don't use iscsi.

Yet there it is...
  % rpm -qf /etc/init.d/iscsi
  iscsi-initiator-utils-6.2.0.872-6.el5

And they're configured to start
  iscsi           0:off   1:off   2:off   3:on    4:on    5:on    6:off
  iscsid          0:off   1:off   2:off   3:on    4:on    5:on    6:off

And I can't remove it
  % rpm -e iscsi-initiator-utils
  error: Failed dependencies:
          iscsi-initiator-utils is needed by (installed) mkinitrd-5.1.19.6-68.el5.i386

A physical machine still on 5.5 doesn't have iscsi
  % rpm -qa '*iscsi*'
  % ls /etc/init.d/*iscsi*
  /bin/ls: /etc/init.d/*iscsi*: No such file or directory

It appears that yum did, indeed, install this:
  % grep iscsi /var/log/yum.log
  Apr 10 09:24:30 Installed: iscsi-initiator-utils-6.2.0.872-6.el5.i386

The "fix" is to chkconfig off the iscsi and iscsid rc scripts.  This is
a good idea, 'cos these scripts modprobe unnecessary modules.

-- 

rgds
Stephen