今天碰到一个POC
的客户想对现有的HBA
存储扩容,但是发现扩容后xenserver
仍然无法识别到扩容后的容量
背景:HBA storage,
开启多路径
1. 先通过xencenter
查询下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
就可以了