首页 > 代码库 > gpfs 修改 failure group
gpfs 修改 failure group
1、查看nsd 的failure group
[root@g0 ~]# mmlsdisk gpfs disk driver sector failure holds holds storage name type size group metadata data status availability pool ------------ -------- ------ ----------- -------- ----- ------------- ------------ ------------ metansd00 nsd 512 100 Yes No ready up system metansd01 nsd 512 101 Yes No ready up system metansd02 nsd 512 102 Yes No ready up system datansd00 nsd 512 103 No Yes ready up datapool datansd01 nsd 512 104 No Yes ready up datapool datansd02 nsd 512 105 No Yes ready up datapool
2、修改datansd02 的failure group 为106
编辑nsdfile.cfg
#%pool: pool=system blockSize=512K layoutMap=cluster #%pool: pool=datapool blockSize=2M layoutMap=cluster writeAffinityDepth=1 blockGroupFactor=256 #%nsd: device=/dev/vdb servers=g0 nsd=metansd00 usage=metadataOnly pool=system #%nsd: device=/dev/vdb servers=g0 nsd=metansd00 usage=metadataOnly failureGroup=100 pool=system #%nsd: device=/dev/vdb servers=g1 nsd=metansd01 usage=metadataOnly failureGroup=101 pool=system #%nsd: device=/dev/vdb servers=g2 nsd=metansd02 usage=metadataOnly failureGroup=102 pool=system #%nsd: device=/dev/vdb servers=g1 nsd=metansd01 usage=metadataOnly pool=system #%nsd: device=/dev/vdb servers=g2 nsd=metansd02 usage=metadataOnly pool=system #%nsd: device=/dev/vdb servers=g3 nsd=datansd00 usage=dataOnly failureGroup=103 pool=datapool #%nsd: device=/dev/vdb servers=g4 nsd=datansd01 usage=dataOnly failureGroup=104 pool=datapool #%nsd: device=/dev/vdb servers=g5 nsd=datansd02 usage=dataOnly failureGroup=105 pool=datapool %nsd: device=/dev/vdb servers=g5 nsd=datansd02 usage=dataOnly failureGroup=106 pool=datapool
修改nsd
mmchdisk gpfs change -F nsdfile.cfg
查看修改后的nsd
[root@g0 gpfs_config]# mmlsdisk gpfs disk driver sector failure holds holds storage name type size group metadata data status availability pool ------------ -------- ------ ----------- -------- ----- ------------- ------------ ------------ metansd00 nsd 512 100 Yes No ready up system metansd01 nsd 512 101 Yes No ready up system metansd02 nsd 512 102 Yes No ready up system datansd00 nsd 512 103 No Yes ready up datapool datansd01 nsd 512 104 No Yes ready up datapool datansd02 nsd 512 106 No Yes ready up datapool Attention: Due to an earlier configuration change the file system is no longer properly replicated.
重新平衡副本
# mmrestripefs gpfs -r mmrestripefs gpfs -R
本文出自 “武陵荒草” 博客,请务必保留此出处http://penguintux.blog.51cto.com/3021117/1930179
gpfs 修改 failure group
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。