​1、卸载挂载中的数据盘:

umount /dev/sdb1

2、使用parted工具读取磁盘分区表信息;先使用 ​​p​​ 查看可扩容磁盘大小,再通过​​unit s​​命令定义默认使用sectors展示,获取起始位置信息:

磁盘扩容_磁盘

3、创建新分区。先使用 ​​rm + 序列号​​ 来删除老的分区表;然后使用 ​​mkpart​​ 命令来创建即可,这里需要注意的是parted工具里END的值,由于一般大家都不清楚具体的扇区数量,可以使用容量来替代。

  • 请注意以下操作步骤需要处于​​unit s​​​的​​sectors​​扇区模式中操作,否则将导致数据盘扩展异常
rm 1
mkpart primary ext4 2048 32.2G

CentOS6(ext4):# resize2fs /dev/vg01/lv00

CentOS7(xfs):  # xfs_growfs /dev/vg01/lv00



https://www.cnblogs.com/wanlipiao/p/15137985.html
https://deepinout.com/linux-cmd/linux-lvm-raid-management-cmd/linux-cmd-lvextend.html
https://www.jianshu.com/p/4c7acf819046
https://www.thegeekdiary.com/lvextend-command-examples-in-linux/
https://www.jianshu.com/p/4c7acf819046
https://cloud.tencent.com/developer/article/2085243?from=15425
https://cloud.tencent.com/developer/article/1623208?from=15425
https://cloud.tencent.com/developer/article/1634538?from=15425
https://cloud.tencent.com/developer/article/1634538?from=15425

http://www.manongjc.com/detail/25-nwcxiyorxlssmmp.html

https://cloud.tencent.com/developer/article/2095799?from=15425
https://cloud.tencent.com/developer/article/1888664?from=15425
https://blog.csdn.net/weixin_39894778/article/details/116557588

https://blog.csdn.net/weixin_42499201/article/details/116803389
https://blog.csdn.net/JangBingYang/article/details/127781868
https://blog.csdn.net/weixin_42551508/article/details/116901623
https://blog.csdn.net/qq_35855719/article/details/118495504



https://www.liuzhishi.com/11423.html
https://zhuanlan.zhihu.com/p/103696055 重点

http://www.manongjc.com/detail/25-nwcxiyorxlssmmp.html
https://blog.csdn.net/weixin_44953658/article/details/125732379
https://www.modb.pro/db/247075
https://zhuanlan.zhihu.com/p/103696055



https://www.cnblogs.com/peterjiang520/p/15957753.html zhongdian
https://help.aliyun.com/document_detail/25451.htm
https://www.cnblogs.com/LincentLliang/p/13098834.html
https://blog.51cto.com/navyaijm/821329
https://www.jianshu.com/p/ac445d94db89