的客户想对现有的HBA存储扩容,但是发现扩容后xenserver仍然无法识别到扩容后的容量
背景:HBA storage,开启多路径
查询下storage对应的SCSI id
2. 在xenserver的console上运行#multipath –ll 查看上述SCSI ID对应的多路径配置信息eg.
reload: 36006016001202f00e6c4f837b374e111 dm-1 DGC,RAID 5
[size=1000G][features=0 ][hwhandler=1 emc ][rw ]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:3:1 sdbs 68:96 [active][ready]
\_ 3:0:6:1 sddp 71:112 [active][ready]
\_ 5:0:2:1 sdgk 132:0 [active][ready]
\_ 5:0:7:1 sdjr 65:336 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:5:1 sddc 70:160 [active][ready]
\_ 3:0:7:1 sdec 128:64 [active][ready]
\_ 5:0:5:1 sdir 135:176 [active][ready]
\_ 5:0:6:1 sdje 8:384 [active][ready]
3. 在xenserver console上运行命令#multipathd -k
multipathd>
输入multipathd> reconfigure
Ok
4. 再次运行multipath –ll,此时信息已经更新,但是我们要resize PV
reload: 36006016001202f00e6c4f837b374e111 dm-1 DGC,RAID 5
[size=1200G][features=0 ][hwhandler=1 emc ][rw ]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:3:1 sdbs 68:96 [active][ready]
\_ 3:0:6:1 sddp 71:112 [active][ready]
\_ 5:0:2:1 sdgk 132:0 [active][ready]
\_ 5:0:7:1 sdjr 65:336 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:5:1 sddc 70:160 [active][ready]
\_ 3:0:7:1 sdec 128:64 [active][ready]
\_ 5:0:5:1 sdir 135:176 [active][ready]
\_ 5:0:6:1 sdje 8:384 [active][ready]
5. Resize PV,从上面信息我们可以看到SCSI ID对应的device为dm-1,在xenserver上运行以下命令:
#pvresize /dev/dm-1
6. 回到xencenter
找到原来的SR,重新扫描,此时存储的信息已经更新
Note:iscsi 扩容比较简单,只要detach后reattach就可以了