Parastor200存储系统巡检

39 篇文章 1 订阅


1、状态检查
/home/parastor/bin/sysctl/parastor_monitor checkstat
nodetype:MGR#nodeid:1#ha_status:mgsha_active#status:ok
nodetype:MGR#nodeid:2#ha_status:mgsha_standby#status:ok
nodetype:oStor#nodeid:1#phy_status:healthy#status:ok
nodetype:oStor#nodeid:2#phy_status:healthy#status:ok
nodetype:oStor#nodeid:3#phy_status:healthy#status:ok
nodetype:oStor#nodeid:4#phy_status:healthy#status:ok
nodetype:oPara#nodeid:1#mosgrp_state:ok#phy_status:healthy#status:ok
nodetype:oPara#nodeid:2#mosgrp_state:ok#phy_status:healthy#status:ok
nodetype:parastor#nodeid:0#status:ok
#所有项目应当标记为OK


2、坏块检查
/home/parastor/bin/sysctl/parastor_monitor checkperf
nodetype:parastor#nodeid:0#parastor_total_disknr:100
nodetype:parastor#nodeid:0#parastor_total_bytes:288056926273536
nodetype:parastor#nodeid:0#parastor_used_bytes:758141190144
nodetype:parastor#nodeid:0#parastor_avail_bytes:263874624061440
nodetype:parastor#nodeid:0#parastor_bad_objs:18
nodetype:parastor#nodeid:0#parastor_rcvr_objs:1
nodetype:parastor#nodeid:0#parastor_repair_speed:1
nodetype:parastor#nodeid:0#parastor_total_inodes:453145708
nodetype:parastor#nodeid:0#parastor_use_inodes:268057
nodetype:parastor#nodeid:0#parastor_free_inodes:452877651
nodetype:parastor#nodeid:0#parastor_files:258091
nodetype:parastor#nodeid:0#parastor_dirs:9966
nodetype:parastor#nodeid:0#cpu_us:1.3#cpu_sy:1.3#mem_total:262491736#mem_used:302835

36#mem_free:232208200
nodetype:parastor#nodeid:0#parastor_read_ps:128
nodetype:parastor#nodeid:0#parastor_write_ps:107
nodetype:parastor#nodeid:0#switchboard_nr:0
nodetype:parastor#nodeid:0#perf-read:[iops:0 avgtime:0 maxtime:0

mintime:9223372036854775807]
nodetype:parastor#nodeid:0#perf-write:[iops:0 avgtime:0 maxtime:0

mintime:9223372036854775807]
nodetype:parastor#nodeid:0#perf-create:[iops:1335 avgtime:2371 maxtime:82248

mintime:1064]
nodetype:parastor#nodeid:0#perf-mkdir:[iops:18 avgtime:1443 maxtime:8614

mintime:697]
nodetype:parastor#nodeid:0#perf-unlink:[iops:1021 avgtime:822 maxtime:11478

mintime:407]
nodetype:parastor#nodeid:0#perf-rmdir:[iops:12 avgtime:831 maxtime:2104 mintime:583]
nodetype:parastor#nodeid:0#perf-setattr:[iops:58590 avgtime:4126 maxtime:1653283

mintime:593]
nodetype:parastor#nodeid:0#perf-getattr:[iops:135854 avgtime:274 maxtime:69115

mintime:87]
nodetype:parastor#nodeid:0#perf-statfs:[iops:1004485 avgtime:730 maxtime:21543

mintime:203]
nodetype:parastor#nodeid:0#parastor_recent_read_bytes:3013310
nodetype:parastor#nodeid:0#parastor_recent_write_bytes:3579377
nodetype:parastor#nodeid:0#parastor_recent_disk_read_bytes:0
nodetype:parastor#nodeid:0#parastor_recent_disk_write_bytes:12130167
#parastor_bad_objs:应当为0,否则有坏块。


3、查看版本信息
/home/parastor/bin/oMgs  -v
Parastor-2.0.0.31206.0.Pagesize:        4KB-Built on Wed Mar 18 18:14:56 CST 2015

Compiled Flags:
Pagesize:       4KB
ErasualCode:    ON


4、查看坏块信息
/home/parastor/bin/sysctl/parastor_envctl get_badfiles
nodetype:oPara#nodeid:1#badfiles_nr:12#inode:44289#fsid:1#inode:173318401#fsid:1#ino

de:173312513#fsid:1#inode:169379585#fsid:1#inode:140579585#fsid:1#inode:173315585#fs

id:1#inode:171465473#fsid:1#inode:169464065#fsid:1#inode:173315329#fsid:1#inode:1733

19169#fsid:1#inode:173317633#fsid:1#inode:173318913#fsid:1
nodetype:oPara#nodeid:2#badfiles_nr:0


5、强制修复逻辑坏块
/home/parastor/bin/sysctl/parastor_envctl repair_badfiles force=1
REPAIR_BADFILES##oPara-1##REPAIR_BADFILES node (oPara 1) ok: 0
REPAIR_BADFILES##oPara-2##REPAIR_BADFILES node (oPara 2) ok: 0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值