HANA服务器配额设置disk quota exceed(如何查看和取消配额)

这个是18年时候最坑的一次,因为当时服务器空间设置了配额,导致生产环境宕机显示空间不足,但通过df -h查看空间还有1T,查看服务器日志显示disk quota exceed,

这个查具体的大小命令:mmrepquota -j sapmntdata --block-size auto
Block Limits | File Limits
Name type blocks quota limit in_doubt grace | files quota limit in_doubt grace
root FILESET 4.534G 0 0 0 none | 837 0 0 0 none
hanadata FILESET 918.9G 0 0 0 none | 35 0 0 0 none
hanalog FILESET 153.2G 0 0 0 none | 191 0 0 0 none
hanashared FILESET 2.214T 0 0 79.53M none | 296245 0 0 80 none

命令:mmlscluster

GPFS cluster information

GPFS cluster name: HANAcluster.gpfsnode01
GPFS cluster id: 1484988891163360656
GPFS UID domain: HANAcluster.gpfsnode01
Remote shell command: /usr/bin/ssh
Remote file copy command: /usr/bin/scp
Repository type: CCR

Node Daemon node name IP address Admin node name Designation

1 gpfsnode01 192.168.10.101 gpfsnode01 quorum

#mmlsfs
mmlsfs: Missing arguments.
Usage:
mmlsfs {Device | all | all_local | all_remote} [-A] [-B] [-d] [-D]
[-E] [-f] [-i] [-I] [-j] [-k] [-K] [-L] [-m] [-M] [-n] [-o]
[-P] [-Q] [-r] [-R] [-S] [-t] [-T] [-V] [-Y] [-z]
[–create-time] [–encryption] [–fastea] [–filesetdf]
[–inode-limit] [–is4KAligned] [–log-replicas] [–mount-priority]
[–perfileset-quota] [–rapid-repair] [–write-cache-threshold]

#mmlsfs all

File system attributes for /dev/sapmntdata:

flag value description


-f 32768 Minimum fragment size in bytes
-i 4096 Inode size in bytes
-I 32768 Indirect block size in bytes
-m 1 Default number of metadata replicas
-M 3 Maximum number of metadata replicas
-r 1 Default number of data replicas
-R 3 Maximum number of data replicas
-j cluster Block allocation type
-D nfs4 File locking semantics in effect
-k all ACL semantics in effect
-n 32 Estimated number of nodes that will mount file system
-B 1048576 Block size
-Q user;group;fileset Quotas accounting enabled
user;group;fileset Quotas enforced
none Default quotas enabled
–perfileset-quota no Per-fileset quota enforcement
–filesetdf no Fileset df enabled?
-V 15.01 (4.2.0.0) File system version
–create-time Fri Jun 2 23:03:15 2017 File system creation time
-z no Is DMAPI enabled?
-L 536870912 Logfile size
-E yes Exact mtime mount option
-S no Suppress atime mount option
-K whenpossible Strict replica allocation option
–fastea yes Fast external attributes enabled?
–encryption no Encryption enabled?
–inode-limit 12000256 Maximum number of inodes in all inode spaces
–log-replicas 0 Number of log replicas
–is4KAligned yes is4KAligned?
–rapid-repair yes rapidRepair enabled?
–write-cache-threshold 0 HAWC Threshold (max 65536)
–subblocks-per-full-block 32 Number of subblocks per full block
-P system Disk storage pools in file system
-d data01node01;data02node01;data03node01 Disks in file system
-A yes Automatic mount option
-o none Additional mount options
-T /hana Default mount point
–mount-priority 0 Mount priority

#mmrepquota sapmntdata
Block Limits | File Limits
Name type KB quota limit in_doubt grace | files quota limit in_doubt grace
root USR 4035680 0 0 122880 none | 955 0 0 117 none
hrdadm USR 2376670656 0 0 288608 none | 68657 0 0 294 none
root GRP 3819424 0 0 122880 none | 907 0 0 117 none
sapsys GRP 2376886912 0 0 288608 none | 68705 0 0 294 none
root FILESET 3635840 0 0 0 none | 713 0 0 0 none
hanadata FILESET 927055872 12884901888 12884901888 40960 none | 35 0 0 39 none
hanalog FILESET 205867712 1073741824 1073741824 40960 none | 355 0 0 39 none
hanashared FILESET 1244146912 8287944704 8287944704 330592 none | 68509 0 0 333 none

#mmsetquota sapmntdata:hanadata --block 0:0

#mmsetquota sapmntdata:hanalog --block 0:0

#mmsetquota sapmntdata:hanashard --block 0:0
tssetquota: Unknown fileset ‘hanashard’.
mmsetquota: Command failed. Examine previous error messages to determine cause.

#mmsetquota sapmntdata:hanashared --block 0:0

#mmrepquota sapmntdata
Block Limits | File Limits
Name type KB quota limit in_doubt grace | files quota limit in_doubt grace
root USR 4035680 0 0 122880 none | 955 0 0 117 none
hrdadm USR 2376670656 0 0 288608 none | 68657 0 0 294 none
root GRP 3819424 0 0 122880 none | 907 0 0 117 none
sapsys GRP 2376886912 0 0 288608 none | 68705 0 0 294 none
root FILESET 3635840 0 0 0 none | 713 0 0 0 none
hanadata FILESET 927055872 0 0 40960 none | 35 0 0 39 none
hanalog FILESET 205867712 0 0 40960 none | 355 0 0 39 none
hanashared FILESET 1244146912 0 0 289696 none | 68509 0 0 293 none
mmrepquota -u -v sapmntdata
*** Report for USR quotas on sapmntdata
Block Limits | File Limits
Name type KB quota limit in_doubt grace | files quota limit in_doubt grace entryType
root USR 4035680 0 0 122880 none | 955 0 0 117 none i
hrdadm USR 2376670656 0 0 288608 none | 68657 0 0 294 none i

#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 126G 50G 70G 42% /
sapmntdata 21T 2.3T 19T 11% /hana

#mmsetquota sapmntdata --user hrdadm --block 19T:19T

#mmrepquota -u -v sapmntdata
*** Report for USR quotas on sapmntdata
Block Limits | File Limits
Name type KB quota limit in_doubt grace | files quota limit in_doubt grace entryType
root USR 4035680 0 0 122880 none | 955 0 0 117 none i
hrdadm USR 2376670656 20401094656 20401094656 248736 none | 68657 0 0 254 none e

#mmrepquota -g -v sapmntdata
*** Report for GRP quotas on sapmntdata
Block Limits | File Limits
Name type KB quota limit in_doubt grace | files quota limit in_doubt grace entryType
root GRP 3819424 0 0 122880 none | 907 0 0 117 none i
sapsys GRP 2376886944 0 0 288576 none | 68705 0 0 294 none i

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

巧克力-8883

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值