查看本地回环设备的详细 [root@localhost esxi_img]# ll /dev/loop3* brw-rw---- 1 root disk 7, 3 Aug 28 15:41 /dev/loop3 brw-rw---- 1 root disk 259, 0 Aug 28 15:41 /dev/loop3p1 brw-rw---- 1 root disk 259, 1 Aug 28 15:41 /dev/loop3p2 [root@localhost esxi_img]#
分区信息
1 2 3 4 5 6 7 8 9 10 11 12 13
查看设备文件的分区 [root@localhost esxi_img]# fdisk -l -u /dev/loop3 Disk /dev/loop3: 214.7 GB, 214748364800 bytes, 419430400 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x000ca118
Device Boot Start End Blocks Id System /dev/loop3p1 * 2048 2099199 1048576 83 Linux /dev/loop3p2 2099200 419430399 208665600 8e Linux LVM [root@localhost esxi_img]#
[root@localhost esxi_img]# vgdisplay --- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size <277.68 GiB PE Size 4.00 MiB Total PE 71085 Alloc PE / Size 71084 / 277.67 GiB Free PE / Size 1 / 4.00 MiB VG UUID hQxRYe-8PMB-X4AM-QTxd-7FdG-fvvv-gfdoWO
--- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 5 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size <199.00 GiB PE Size 4.00 MiB Total PE 50943 Alloc PE / Size 50942 / 198.99 GiB Free PE / Size 1 / 4.00 MiB VG UUID YbC0T6-GYzS-kUk6-ZwXn-l68S-gHig-Xlz9xP
[root@localhost esxi_img]# [root@localhost esxi_img]# vgscan Reading volume groups from cache. Found volume group "centos" using metadata type lvm2 Found volume group "centos" using metadata type lvm2 [root@localhost esxi_img]#
[root@localhost esxi_img]# vgscan -v Wiping cache of LVM-capable devices Wiping internal VG cache Reading volume groups from cache. Found volume group "centos" using metadata type lvm2 Archiving volume group "centos" metadata (seqno 4). Archiving volume group "centos" metadata (seqno 4). Creating volume group backup "/etc/lvm/backup/centos" (seqno 4). Cache: Duplicate VG name centos: Prefer existing hQxRYe-8PMB-X4AM-QTxd-7FdG-fvvv-gfdoWO vs new YbC0T6-GYzS-kUk6-ZwXn-l68S-gHig-Xlz9xP Found volume group "centos" using metadata type lvm2 Archiving volume group "centos" metadata (seqno 4). Archiving volume group "centos" metadata (seqno 4). Creating volume group backup "/etc/lvm/backup/centos" (seqno 4). [root@localhost esxi_img]# [root@localhost esxi_img]#