Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
4657
Description
there is an error in libecho continue to detach device when obdecho fails to load
[root@fat-amd-3 ~]# /usr/bin/obdfilter-survey
FATAL: Could not open '/lib/modules/2.6.32-220.4.2.el6_lustre.x86_64/updates/kernel/fs/lustre/obdecho.ko': No such file or directory
FATAL: Could not open '/lib/modules/2.6.32-220.4.2.el6_lustre.x86_64/updates/kernel/fs/lustre/obdecho.ko': No such file or directory
Could not install obdecho on localhost
current device is -1 - not set
cleanup: please use 'device name' to set the device name for config commands.
current device is -1 - not set
cleanup: please use 'device name' to set the device name for config commands.
current device is -1 - not set
cleanup: please use 'device name' to set the device name for config commands.
current device is -1 - not set
cleanup: please use 'device name' to set the device name for config commands.
current device is -1 - not set
cleanup: please use 'device name' to set the device name for config commands.
current device is -1 - not set
cleanup: please use 'device name' to set the device name for config commands.
program exited with error
with the fix.
[root@fat-amd-3 ~]# /usr/bin/obdfilter-survey
FATAL: Could not open '/lib/modules/2.6.32-220.4.2.el6_lustre.x86_64/updates/kernel/fs/lustre/obdecho.ko': No such file or directory
FATAL: Could not open '/lib/modules/2.6.32-220.4.2.el6_lustre.x86_64/updates/kernel/fs/lustre/obdecho.ko': No such file or directory
Could not install obdecho on localhost
program exited with error
[root@fat-amd-3 ~]#
the issue is
- do cleanup and exit.
cleanup () {
local exit_status=$1
local host
case=${case:-"disk"}
shift
for ((i = 0; i < $ndevs; i++)); do
host=${host_names[$i]}
if [ -n ${do_teardown_ec[$i]} ]; then
^^^^ use single [] here will be true when do_teardown_ec does not exist
teardown_ec_devno $host ${client_names[$i]}
fi
done
will provide a patch soon
Integrated in
lustre-dev » x86_64,client,el6,inkernel #340
LU-1254iokit: should not use single '[]' (Revision 369f9a5c41e35f63787c2c0f077df5f44048c87f)Result = SUCCESS
Oleg Drokin : 369f9a5c41e35f63787c2c0f077df5f44048c87f
Files :