可以看到我的硬盘目前只有2个逻辑卷,swap分区当然不用于扩展。 6.5 扩展逻辑分区 输入命令:lvextend /dev/VolGroup/lv_root /dev/sda3”。 7 最后将文件系统resize到新的逻辑卷上来 输入命令: quit 退出lvm管理器执行 ext4 文件系统(centos6、ubuntu)输入命令: resize2fs /dev/VolGroup/lv_root xfs 文件系统(ce...
[root@localhost p2v-pool]# virt-resize --expand /dev/sda3 centos7-sda centos7.qcow2 [ 0.0] Examining centos7-sda *** Summary of changes: /dev/sda1: This partition will be left alone. /dev/sda2: This partition will be left alone. /dev/sda3: This partition will be resized from ...
new_desc_blocks = 355 Performing an on-line resize of /dev/mapper/VolGroup-lv_root to 1487098880 (4k) blocks.#等了差不多20分钟, 出来了下面这货:The filesystem on /dev/mapper/VolGroup-LogVol is now 1487098880 blocks long.#赶紧看下扩容成果吧:[root@localhost ~]# df -h Filesystem Size...
[root@glpt1 /]# lvresize --extents +100%FREE --resizefs /dev/mapper/centos_glpt1-root Size of logical volume centos_glpt1/root changed from <35.47 GiB (9080 extents) to 435.50 GiB (111489 extents). Logical volume centos_glpt1/root successfully resized. meta-data=/dev/mapper/centos_glpt...
#把硬盘分区创建成ppvresize /dev/sdb1 (新分区) #把创建成pv的分区 加入vg vgextend centos /dev/sdb1(新分区) #给vg中的/dev/centos/home 扩容 lvextend -L +500G /dev/centos/home #调整XFS文件系统以利用新增的空间。使用xfs_growfs命令来调整XFS文件系统的大小 ...
(parted) resizepart 2 # 调整 sda2 分区大小 End? [107GB]? -0 # 直接充满 (parted) print # 再次查看 Model: Msft Virtual Disk (scsi) Disk /dev/sda: 322GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: ...
help resize resize NUMBER START END resize partition NUMBER and its file system 这里number输入2, start和end参见fdisk的数据(不过parted已经足够智能地将start默认值设置成了sda5的结束,end默认值设置成物理磁盘的末尾) 接着,回到fdisk,使用它创建一个新的logical分区 ...
Partition 1 does not end on cylinder boundary. /dev/sda2 64 5222 41430016 8e Linux LVM /dev/sda3 5222 6527 10485087+ 8e Linux LVM 最后W保存 ps:这里要重启一下服务器,不然挂载不上新建的sda3 # 本次不用reboot的做法 我的系统是centos6.2,partprobe无效,要用kpartx命令重新读取分区。
2.4.1.2 resize 可以增大或减少容量,注意需要指定完整的lv路径,因为不同的vg可以创建名字相同的lv root@vtela:~# lvresize -L +1g /dev/vg1/lv1Sizeof logical volume vg1/lv1 changed from1.00GiB(256extents)to2.00GiB(512extents).Logicalvolume vg1/lv1 successfully resized.root@vtela:~# lvsLVVGAttrLS...
[root@yangcan ftpdata]# resize2fs /dev/vg6/ftpdata resize2fs 1.41.12 (17-May-2010) Filesystem at /dev/vg6/ftpdata is mounted on /ftpdata; on-line resizing required old desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/vg6/ftpdata to 2621440 (4k) blocks...