Uninstall the DC/OS Storage Service
- Uninstall the storage service using the following command:
dcos package uninstall storage
WARNING: This action cannot be undone. This will uninstall [storage] and delete all of its persistent data (logs, configurations, database artifacts, everything). Please type the name of the service to confirm: storage Uninstalled package [storage] version [...]
- Remove the storage package from the package registry using the following command:
dcos registry remove --package-name=storage --package-version=$PACKAGE_VERSION
Manually remove DSS volume providers and their configuration from an agent
If DSS cannot remove a volume or volume provider, follow the steps below to manually remove them from an agent.
- Stop the agent.
- Kill all CSI plugin processes (such as,
csilvm
anddevices-plugin
).pkill csilvm && pkill devices-plugin
- Remove files under the Mesos resource provider configuration directory.
rm /var/lib/dcos/mesos/resource-providers/*
- Remove checkpointed CSI volume state.
rm -r /var/lib/mesos/slave/csi/
- Remove the latest symlink for each Mesos resource provider.
rm /var/lib/mesos/slave/meta/slaves/latest/resource_providers/org.apache.mesos.rp.local.storage/*/latest
- Remove any DSS-created LVM volume groups and/or volumes.
vgremove -f some-volumegroup-name
Manually remove remaining DSS configuration from ZooKeeper
Uninstalling the DSS package does not remove records for storage assets that DSS tracks in ZooKeeper. Follow the steps below to remove storage state information from ZooKeeper.
- Remove the top-level DSS ZooKeeper node.
curl -X DELETE --cacert dcos-ca.crt -H "Authorization: token=$(dcos config show core.dcos_acs_token)" \ "$(dcos config show core.dcos_url)/exhibitor/exhibitor/v1/explorer/znode/dcos-storage/dss"