Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Stop flexVDI Agent

    Code Block
    # service flexvdi-agent stop


  2. Remove the file that stores the registration key.

    Code Block
    # rm /etc/flexvdi/flexvdi-agent-key

     


  3. Then you can run flexvdi-config and register the Host with the flexVDI Manager.

...

Code Block
# restorecon -r /path/to/cifs/share
Q: Removing an OCFS2 kmod RPM package fails at the PREUN scriptlet

A: There is a bug in the PREUN scriptlet in the OCFS2 kmod packages up to kmod-ocfs2-flexvdi-k957-1.5.0-1.el7. Trying to remove one of these packages will fail with an error like:

No Format
...
error: %preun(kmod-ocfs2-flexvdi-k957-1.5.0-1.el7.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package kmod-ocfs2-flexvdi-k693-1.5.0-1.el7.x86_64
...

In order to fix this problem and remove the package, run the following commands:

Code Block
# rpm -ql kmod-ocfs2-flexvdi-k957-1.5.0-1.el7.x86_64 | grep '\.ko$' > /tmp/modules.txt
# yum remove --setopt=tsflags=noscripts kmod-ocfs2-flexvdi-k957-1.5.0-1.el7.x86_64
# cat /tmp/modules.txt | /usr/sbin/weak-modules --remove-modules
# rm /tmp/modules.txt