2 Replies Latest reply on Sep 11, 2019 12:14 AM by vilkasimov

    Problem with removing/installing vib package.

    vilkasimov Novice

      Hello.

       

      Could somebody help me please.

      I have an issue with avago storcli package.

       

      When I try to remove this package (sometimes, not every time), I have an error:

       

      /opt/lsi/storcli$ esxcli software vib remove -n vmware-esx-storcli-1.20.15

      [LiveInstallationError]

      Error in running rm /tardisks/vmware_e.v00:

      Return code: 1

      Output: rm: can't remove '/tardisks/vmware_e.v00': Device or resource busy

       

      It is not safe to continue. Please reboot the host immediately to discard the unfinished update.

      Please refer to the log file for more details.

       

      But if I will reboot the host then I can delete this package without any problems. So the question is: What Is causing this situation? Is it possible to remove this package without rebooting host ?

        • 2. Re: Problem with removing/installing vib package.
          vilkasimov Novice

          Hi, Diego.

           

          I found the solution, of this situation.

           

          1. get all storcli processes

           

          lsof | grep storcli

           

          6857535    python                FILE                        0   /opt/lsi/storcli/megaclisas-status.py

          16824766    sh                    FILE                        0   /opt/lsi/storcli/megaclisas-status.py

          15280015    python                FILE                        0   /opt/lsi/storcli/megaclisas-status.py

          15280014    sh                    FILE                        0   /opt/lsi/storcli/megaclisas-status.py

          12063090    storcli               FILE                        0   /opt/lsi/storcli/megaclisas-status.py

          12063090    storcli               PIPE                        1   pipe (r:3,w:4)

          12063090    storcli               PIPE                        2   pipe (r:11,w:12)

          12063090    storcli               CHAR                        3   /vmfs/devices/char/vmkdriver/vmwMgmtNode2

          12063090    storcli               PIPE                        4   pipe (r:4,w:5)

          12063090    storcli               PIPE                        5   pipe (r:4,w:5)

          12063090    storcli               MMAP                       -1   /lib/libpthread.so.0 (prot:--/len:90112)

          12063090    storcli               MMAP                       -1   /lib/libpthread.so.0 (prot:--/len:8192)

          12063090    storcli               MMAP                       -1   /lib/libdl.so.2 (prot:--/len:8192)

          12063090    storcli               MMAP                       -1   /lib/libdl.so.2 (prot:--/len:8192)

          12063090    storcli               MMAP                       -1   /lib/libstdc++.so.6 (prot:--/len:876544)

          12063090    storcli               MMAP                       -1   /lib/libstdc++.so.6 (prot:--/len:20480)

          12063090    storcli               MMAP                       -1   /lib/libm.so.6 (prot:--/len:143360)

          12063090    storcli               MMAP                       -1   /lib/libm.so.6 (prot:--/len:8192)

          12063090    storcli               MMAP                       -1   /lib/libgcc_s.so.1 (prot:--/len:102400)

          12063090    storcli               MMAP                       -1   /lib/libgcc_s.so.1 (prot:--/len:4096)

          12063090    storcli               MMAP                       -1   /lib/libc.so.6 (prot:--/len:1429504)

          12063090    storcli               MMAP                       -1   /lib/libc.so.6 (prot:--/len:12288)

          12063090    storcli               MMAP                       -1   /opt/lsi/storcli/libstorelib.so (prot:--/len:196608)

          12063090    storcli               MMAP                       -1   /opt/lsi/storcli/libstorelib.so (prot:--/len:4096)

          12063090    storcli               MMAP                       -1   /lib/libvmkmgmt.so (prot:--/len:16384)

          12063090    storcli               MMAP                       -1   /lib/libvmkmgmt.so (prot:--/len:8192)

          12063090    storcli               MMAP                       -1   /lib/libvmlibs.so (prot:--/len:2015232)

          12063090    storcli               MMAP                       -1   /lib/libvmlibs.so (prot:--/len:413696)

          12063090    storcli               MMAP                       -1   /lib/libvmksysinfoNoVob.so (prot:--/len:4096)

          12063090    storcli               MMAP                       -1   /lib/libvmksysinfoNoVob.so (prot:--/len:8192)

          12063090    storcli               MMAP                       -1   /lib/libvmkuser.so.0 (prot:--/len:1019904)

          12063090    storcli               MMAP                       -1   /lib/libvmkuser.so.0 (prot:--/len:401408)

          12063090    storcli               MMAP                       -1   /lib/librt.so.1 (prot:--/len:36864)

          12063090    storcli               MMAP                       -1   /lib/librt.so.1 (prot:--/len:8192)

          12063090    storcli               MMAP                       -1   /opt/lsi/storcli/storcli (prot:--/len:6222112)

          12063090    storcli               MMAP                       -1   /opt/lsi/storcli/storcli (prot:--/len:32256)

          12063090    storcli               MMAP                       -1   /lib/ld-linux.so.2 (prot:--/len:112824)

          12063090    storcli               MMAP                       -1   /lib/ld-linux.so.2 (prot:--/len:6232)

          12063089    sh                    FILE                        0   /opt/lsi/storcli/megaclisas-status.py

          12063076    python                FILE                        0   /opt/lsi/storcli/megaclisas-status.py

           

          2. and just kill this processes

           

          kill 12063090

          ...

           

          After that I can remove this package