SUSE Linux逻辑卷扩容


在Azure上面工作的一台SUSE日志盘爆满了,我们可以创建一块Azure托管磁盘,附加到虚拟机上以后,给指定逻辑卷扩容:

PSTIPS01:~ # sudo pvcreate /dev/sdg
  Physical volume "/dev/sdg" successfully created

PSTIPS01:~ # sudo vgextend vg_PSTIPS_log /dev/sdg
  Volume group "vg_PSTIPS_log" successfully extended

PSTIPS01:~ # lvextend -L +480G /dev/vg_PSTIPS_log/PSTIPS_log
 Size of logical volume vg_PSTIPS_log/PSTIPS_log changed from 128.00 GiB (32767 extents) to 608.00 GiB (155647 extents).
 Logical volume PSTIPS_log successfully resized

PSTIPS01:~ # xfs_growfs /dev/vg_PSTIPS_log/PSTIPS_log
meta-data=/dev/mapper/vg_PSTIPS_log-PSTIPS_log isize=256    agcount=4, agsize=8388352 blks
         =                       sectsz=4096  attr=2, projid32bit=1
         =                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=33553408, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=16383, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 33553408 to 159382528
本文链接: https://www.pstips.net/lvextend.html
请尊重原作者和编辑的辛勤劳动,欢迎转载,并注明出处!

关于 Mooser Lee

我是一个Powershell的爱好者,创建了PowerShell中文博客,热衷于Powershell技术的搜集和分享。本站部分内容来源于互联网,不足之处敬请谅解,并欢迎您批评指正。

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注