move Unmount/mount а volume to grpc

Chris Lu 2018-10-15 01:49:19 -07:00
parent 3f4632c3f8
commit 1bd5e00c48

@ -33,22 +33,6 @@ curl -X DELETE http://127.0.0.1:8080/3,01637037d6
curl http://127.0.0.1:8080/3,01637037d6?cm=false
```
### Unmount/mount а volume
This API should be protected!
This deactivates a given volume. This is useful to process a volume stopping the volume server. Possible use cases are compaction, index recreation or moving the volume to another server. As soon as a volume is unmounted it won't be accessed by the volume any more and can be safely changed or moved away.
```bash
curl "http://localhost:8080/admin/volume/unmount?volume=volumeId"
```
The counterpart is to mount a volume. This adds a volume file to a volume server without the need to restart the volume server. A use case is to mount a previously unmounted volume again or to add a volume, that has been moved to another server to the new server.
```bash
curl "http://localhost:8080/admin/volume/mount?volume=volumeId"
```
### Check Volume Server Status
```bash