Uninstalling Storage Gateway

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. Delete those remaining files not removed from the previous step:

    sudo rm -f /usr/bin/host_disk_speed_test.sh /usr/bin/support-bundle.sh /usr/bin/health-check.sh
  7. 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
    • Delete the DATASTORAGE directory, for example:

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

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

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

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

      sudo rm -rf /opt/ocisg