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