Oracle Cloud Infrastructure Documentation

Uninstalling Storage Gateway

This topic describes how to uninstall Storage Gateway.

Uninstalling

To uninstall Storage Gateway

  1. Log in to the on-premises host or compute instance from which you want to uninstall Storage Gateway.
  2. Stop Storage Gateway:

    sudo ocisg down
  3. If the ocisg_data container exists in docker ps -a output, remove it:

    sudo docker rm -v ocisg_data
  4. Delete the image in docker:

    sudo docker rmi $(sudo docker images| grep ocisg | awk '{print $3}')
  5. Delete all the files in /usr/bin/ that begin with ocisg:

    sudo rm /usr/bin/ocisg*
  6. View the contents of the file gateway_config:

    cat /etc/gateway_config

    Sample output:

    $ cat /etc/gateway_config
                            

    DATASTORAGE=/ocisg/cache

    MDSTORAGE=/ocisg/metadata

    LOGSTORAGE=/ocisg/log

    PROXY=

    USE_SSL=

    MEMORY=

    NETWORK=bridge

    HTTP_FRAMEWORK=

    ADMINPORT=443

    NFSPORT=32769

    RESTPORT=32768

  7. Delete the DATASTORAGE directory, for example:

    sudo rm -rf /ocisg/cache
  8. Delete the MDSTORAGE directory , for example:

    sudo rm -rf /ocisg/metadata
  9. Delete the LOGSTORAGE directory , for example:

    sudo rm -rf /ocisg/log
  10. Delete the gateway_config file:

    sudo rm /etc/gateway_config
  11. Delete the Storage Gateway installation directory ocisg:

    sudo rm -rf /opt/ocisg