Updated Tiered Storage (markdown)

Chris Lu 2021-02-22 01:35:16 -08:00
parent 6e439233ec
commit 454eafe71d

@ -31,10 +31,18 @@ https://github.com/chrislusf/seaweedfs/wiki/Path-Specific-Configuration
When `volume.balance` or `volume.fix.replication`, the volume disk type would not change. When `volume.balance` or `volume.fix.replication`, the volume disk type would not change.
### Change by `volume.tier.move`
`volume.tier.move` in `weed shell` can be used to change the disk type for one whole collection.
```
volume.tier.move -fromDiskType=hdd -toDiskType=ssd -quietFor=1s -fullPercent=0.001 -collection=benchmark -force
```
### Change by `volume.move`
`volume.move` in `weed shell` can be used to move across volume servers: `volume.move` in `weed shell` can be used to move across volume servers:
``` ```
volume.move -source <source volume server host:port> -target <target volume server host:port> -volumeId <volume id> -disk [hdd|ssd] volume.move -source <source volume server host:port> -target <target volume server host:port> -volumeId <volume id> -disk [hdd|ssd]
``` ```
### Manually move volume files
For now, if you only want to change the disk type of a volume, and the volume server is not running, you can simply move the volume data from ssd directory to hdd directory, or vice versa. For now, if you only want to change the disk type of a volume, and the volume server is not running, you can simply move the volume data from ssd directory to hdd directory, or vice versa.