设备 Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 629145599 313523200 8e Linux LVM WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Device does not contain a recognized partition table 使用磁盘标识符 0xe953ddd3 创建新的 DOS 磁盘标签。
WARNING: The size of this disk is 2.2 TB (2199023255552 bytes). DOS partition table format can not be used on drives for volumes larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID partition table format (GPT).
命令(输入 m 获取帮助):n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p 分区号 (1-4,默认 1): 起始 扇区 (2048-4294967295,默认为 2048): 将使用默认值 2048 Last 扇区, +扇区 or +size{K,M,G} (2048-4294967294,默认为 4294967294): 将使用默认值 4294967294 分区 1 已设置为 Linux 类型,大小设为 2 TiB
命令(输入 m 获取帮助):w The partition table has been altered!
Calling ioctl() to re-read partition table. 正在同步磁盘。
[root@dbrecover ~]# pvdisplay --- Physical volume --- PV Name /dev/sda2 VG Name centos PV Size <299.00 GiB / not usable 3.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 76543 Free PE 0 Allocated PE 76543 PV UUID shOicv-OgSt-YjBa-PclN-5Kdt-aw3W-swwFmm
--- Physical volume --- PV Name /dev/sdb1 VG Name centos PV Size 1.95 TiB / not usable 2.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 511999 Free PE 0 Allocated PE 511999 PV UUID JJguRM-Ktl0-MJQ8-3ICs-uzPd-ysZO-5dUKiG
--- Physical volume --- PV Name /dev/sdc VG Name centos PV Size 600.00 GiB / not usable 4.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 153599 Free PE 0 Allocated PE 153599 PV UUID Qj0dxi-Z3bs-pZ0g-KPL6-ZyXQ-dEFV-5W95z8
[root@dbrecover ~]# vgdisplay --- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 3 Metadata Sequence No 8 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 3 Act PV 3 VG Size 2.83 TiB PE Size 4.00 MiB Total PE 742141 Alloc PE / Size 742141 / 2.83 TiB Free PE / Size 0 / 0 VG UUID T9WvpJ-XlyM-yckQ-YDPf-sTIy-AYih-YWQWSR
[root@dbrecover ~]# vgextend centos /dev/sdf1 Volume group "centos" successfully extended
---如果是创建卷组,则使用以下命令 vgcreate vg01 /dev/sdd1
[root@dbrecover ~]# vgdisplay --- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 6 Metadata Sequence No 11 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 6 Act PV 6 VG Size 8.78 TiB PE Size 4.00 MiB Total PE 2302714 Alloc PE / Size 742141 / 2.83 TiB Free PE / Size 1560573 / 5.95 TiB VG UUID T9WvpJ-XlyM-yckQ-YDPf-sTIy-AYih-YWQWSR