[ewg] [PATCH] stop OFED before uninstalling it

Erez Zilber erezz at voltaire.com
Mon Aug 27 03:53:56 PDT 2007


Tziporet Koren wrote:

> Erez Zilber wrote:
>> stop OFED before uninstalling it
>>
>> Signed-off-by: Erez Zilber <erezz at voltaire.com>
>> ---
>>  uninstall.sh |    5 +++++
>>  1 files changed, 5 insertions(+), 0 deletions(-)
>>
>> diff --git a/uninstall.sh b/uninstall.sh
>> index 177b8a1..89ee3f1 100755
>> --- a/uninstall.sh
>> +++ b/uninstall.sh
>> @@ -110,6 +110,11 @@ uninstall()
>>  {
>>      local RC=0
>>      local OLD_PREFIX=""
>> +
>> +    echo "Stopping OFED stack"
>> +    echo
>> +    /etc/init.d/openibd stop
>> +
>>      echo
>>      echo "Removing ${PACKAGE} Software installations"
>>      echo
>>   
>
> What would the install do if this is failing or machine hang?
>
> Tziporet
>

The user will have to stop OFED at some point. If we don't stop OFED
while uninstalling, he will stop it later (and then the machine may hang).

The motivation for this patch is: if the user installs OFED over an
older version (while the old version is running), he will eventually
have a new version of OFED installed with an old loaded version. This
may lead to strange scenarios. For example: if the user tries to load
iSER, modprobe will fail because iSER (from the new OFED version) cannot
use the loaded OFED modules (from the old version). Of course, this can
happen with any OFED module.

Actually, this fix is related to bug #536. Maybe we should move this
discussion to bugzilla.

Erez




More information about the ewg mailing list