lustre常用命令

配额

配额查询
lfs quota -h -u xxx /hpc_stor01
配额设置

# 给用户test 设置lustre空间2T,INODE 文件数600W,soft和hard数据值设置一致
user=test
lfs setquota -u $user -b 2048000000 -B 2048000000 -i 6000000 -I 6000000 /mnt/lustre

PCC【本地缓存】

1. mdt设置HSM
lctl set_param mdt.lustre-MDT0000.hsm_control=enabled
# lctl set_param mdt.lustre-MDT0000.hsm_control=disabled
2. 客户端设置PCC
lhsmtool_posix --daemon --hsm-root /data1/lustre_pcc/ --archive=1 /mnt/lustre < /dev/null > /tmp/copytool_log 2>&1

lctl pcc add /mnt/lustre /data1/lustre_pcc/ --param "uid={0} rwid=1"
3. 验证PCC
lfs pcc attach -i 2 /mnt/lustre/test

lfs pcc state /mnt/lustre/test

lfs pcc detach /mnt/lustre/test
4. 自动缓存配置
grep -q PCC_auto_attach || echo "options lnet PCC_auto_attach=1" >>/etc/modprobe.d/lustre.conf
reboot
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值