① multipath多路徑,linux系統底層存儲擴容了,如何擴大文件系統
linux伺服器通過multipath多路徑連接到共享存儲,那麼當文件系統空間不足的時候,有幾種方式可以擴展文件系統的大小:
1、pv不變,原lun存儲擴大容量,擴大lv,擴大文件系統
2、新增pv,加入到vg中,擴大lv,擴大文件系統
下文是針對場景1的情況下如何操作(但是個人建議採取新建pv的方式2進行):
Environment
If you have this specific scenario, you can use the following steps:
Note: if these lv's are part of a clustered vg, steps 1 and 2 need to be performed on all nodes. 注意:集群模式下步驟1和步驟2兩個節點都需要執行。
1) Update block devices
Note: This step needs to be run against any sd devices mapping to that lun. When using multipath, there will be more than one. 通過multipath -ll命令查看每個聚合卷對應的路徑。
2) Update multipath device
例子:
3) Resize the physical volume, which will also resize the volume group
4) Resize your logical volume (the below command takes all available space in the vg)
5) Resize your filesystem
6) Verify vg, lv and filesystem extension has worked appropriately
模擬存儲端擴容testlv增加
查看客戶端多路徑情況
客戶端更新存儲
更新聚合設備
更新pv空間
更新lv空間
更新文件系統空間