Fix iscsi openfiler openfiler (iscsi_trgt: blockio_open_path(167) Can't open device)

Fix iscsi openfiler openfiler: error --->  iscsi_trgt: blockio_open_path(167) Can't open device
1/ Comment the following lines
To fix the issue in OpenFiler 2.3 and stop VG activation on the system startup comment the following lines (333-337) in /etc/rc.sysinit

#       if [ -x /sbin/lvm.static ]; then
#               if /sbin/lvm.static vgscan --mknodes --ignorelockingfailure > /dev/null 2>&1 ; then
#                    action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y -ignorelockingfailure
#               fi
#       fi

2/ Comment following line in file /etc/lvm/lvm.conf

#filter = [ "a/.*/" ]

3/ Add following line in file /etc/lvm/lvm.conf

filter = [ "r|/dev/dm-*|", "r|/dev/VG_XenStorage*|", "r|/dev/sr/iscsi|", "a/.*/" ]

4/ Stop service

  service aoe force-stop
  chkconfig aoe off

5/ Restart server

Post a Comment