Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 2611 20458496 8e Linux LVM
Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 2611 20458496 8e Linux LVM
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').
Command (m for help): n #输入n表示创建新分区 Command action e extended p primary partition (1-4) p #输入p Partition number (1-4): 3 #输入3,表示sda3,前面已经有2个了 First cylinder (2611-3916, default 2611): #回车,默认值 Using default value 2611 Last cylinder, +cylinders or +size{K,M,G} (2611-3916, default 3916): #回车,默认值 Using default value 3916
Command (m for help): w #输入w保存,退出 The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 设备或资源忙. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks.
Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 2611 20458496 8e Linux LVM /dev/sda3 2611 3916 10483750 83 Linux
Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 2611 20458496 8e Linux LVM /dev/sda3 2611 3916 10483750 83 Linux
mke2fs 1.41.12 (17-May-2010) 文件系统标签= 操作系统:Linux 块大小=4096 (log=2) 分块大小=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 655360 inodes, 2620937 blocks 131046 blocks (5.00%) reserved for the super user 第一个数据块=0 Maximum filesystem blocks=2684354560 80 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
--- Volume group --- VG Name vg_rxf System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 2 Act PV 2 VG Size 29.50 GiB PE Size 4.00 MiB Total PE 7553 Alloc PE / Size 4994 / 19.51 GiB Free PE / Size 2559 / 10.00 GiB VG UUID KFyuD1-cj5n-cukx-z1Zf-Gg2T-IQLT-v6BD4N
Free PE / Size 就是可以提供分配的自由空间,最多10.00 GiB,在扩展时输入小于该值 9:扩充磁盘空间
Filesystem at /dev/mapper/vg_rxf-lv_root is mounted on /; on-line resizing required old desc_blocks = 2, new_desc_blocks = 2 Performing an on-line resize of /dev/mapper/vg_rxf-lv_root to 6965248 (4k) blocks. The filesystem on /dev/mapper/vg_rxf-lv_root is now 6965248 blocks long.
Last cylinder, +cylinders or +size{K,M,G} (2611-3916, default 3916): #回车,默认值。11:使用resize2fs指令来增大或者搜索未加载的"ext2/ext3"文件系统的大小(此处可能出现问题,没办法增大扩容空间)11-1(如果11步出现问题,因为我的centos7的某些分区用的是xfs的文件系统(使用df -T查看即可知道)Partition number (1-4): 3 #输入3,表示sda3,前面已经有2个了。