linux扩容vg空间 ****************** [root@ymgit01 ~]#fdisk -l [root@ymgit01 ~]#fdisk /dev/sdb n p t 8e p w [root@ymgit01 ~]#partprobe [root@ymgit01 ~]# pvcreate /dev/sdc Physical volume "/dev/sdb1" successfully created [root@ymgit01 ~]# vgextend appvg /dev/sdc Volume group "vg_redhat6" successfully extended [root@ymgit01 ~]# lvextend -l +100%FREE /dev/appvg/applv Size of logical volume vg_redhat6/LogVol01 changed from 183.80 GiB (47053 extents) to 383.80 GiB (98252 extents). Logical volume LogVol01 successfully resized. [root@ymgit01 ~]#resize2fs /dev/appvg/applv [root@ymgit01 ~]#xfs_growfs /dev/appvg/applv 新增一个新vg [root@ymgit01 ~]# pvcreate /dev/sdb [root@ymgit01 ~]# vgcreate -s 32M appvg /dev/sdb [root@nbumaster1 ~]# lvcreate -l 100%FREE -n applv appvg [root@nbumaster1 ~]# lvscan [root@nbumaster1 ~]# mkfs.xfs /dev/appvg/applv //如果已有其他文件系统创建在此分区,必须加上"-f"参数来覆盖它 [root@nbumaster1 ~]# mount -t xfs /dev/appvg/applv /app umount /app lvremove /dev/appvg/applv vgremove /dev/appvg ####################################
标签:ymgit01,nbumaster1,逻辑,appvg,dev,applv,root From: https://www.cnblogs.com/joyjack/p/18063400