【Teradata】磁盘碎片整理(ferret工具)

DEFRAGMENT
combines free sectors and moves them to the end of a cylinder.
PACKDISK
fill (or packs) cylinders up to the FSP (Free Space Percentage)

1.使用vncciewer登陆SWS并登录节点并查看数据库状态

登陆SMP001-8节点21.*.*.*
psh pdestate -a
psh sar 1 5
检查数据库状态是否为:tpa is running/started,检查系统繁忙程度正常

2.运行ferret

cnsterm 6
>start ferret
ctrl+c 退出

3.开始packdisk

开始packdisk
cnsterm 1
>packdisk fsp=10     ==>(where fsp = free space percent and nnn equals the percentage of cylinder free space)  
>y

查看packdisk进度
cnsterm 1
>inquire

终止packdisk
>abort

检查cylinder使用率
>showspace

退出
>quit
ctrl+c
原文地址:https://www.cnblogs.com/badboy200800/p/10072612.html