Uninstalling Storage Gateway
Uninstall Storage Gateway.
- Log in to the on-premises host or compute instance from which you want to uninstall Storage Gateway.
-
Stop Storage Gateway:
sudo ocisg down
-
If the
ocisg_data
container exists indocker ps -a output
, remove it:sudo docker rm -v ocisg_data
-
Delete the image in
docker
:sudo docker rmi $(sudo docker images| grep ocisg | awk '{print $3}')
-
Delete all the files in
/usr/bin/
that begin withocisg
:sudo rm /usr/bin/ocisg*
-
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
-
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
-