随同 admin() 或 task() 函数,使用 drop chunk to storagepool 参数来从空 chunk 归还空间到存储池。
元素 | 描述 | 关键考虑 |
---|---|---|
space_name | chunk 所在其中的存储空间的名称。 | |
path_name | chunk 的路径。 | |
offset | chunk 的偏移量,以 KB 为单位。 |
下列命令在名为 bigdbs 的 dbspace 中删除空 chunk,并将所有释放的空间添加到存储池。
EXECUTE FUNCTION task("drop chunk to storagepool", "bigdbs", "/dev/rawdisk23", "100 KB");