- 论坛徽章:
- 0
|
虚拟机上linux系统安装采用了lvm卷管理, 现准备扩大容量, 对LVM不熟悉发现很多问题,望帮忙解决
1. 用fdisk检查发现每个lv 都有这个错doesn't contain a valid partition table;
2. 已经在vmware扩大了硬盘容量为53G(fdisk 可以看到是53G), 但fdisk /dev/sda 增加不了新的空间, pv也只有以前的17G;
root@debian:/home/dev# pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name debian
PV Size 17.76 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 4546
Free PE 0
Allocated PE 4546
PV UUID c0BFiT-BqgM-E3eW-F23s-w3P2-GQCx-ar8a3a
root@debian:/home/dev# fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 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 identifier: 0x000c8123
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 8e Linux LVM
/dev/sda2 501758 37746687 18622465 5 Extended
/dev/sda5 501760 37746687 18622464 8e Linux LVM
Disk /dev/mapper/debian-root: 348 MB, 348127232 bytes
255 heads, 63 sectors/track, 42 cylinders, total 679936 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 identifier: 0x00000000
Disk /dev/mapper/debian-root doesn't contain a valid partition table
Disk /dev/mapper/debian-swap_1: 532 MB, 532676608 bytes
255 heads, 63 sectors/track, 64 cylinders, total 1040384 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 identifier: 0x00000000
Disk /dev/mapper/debian-swap_1 doesn't contain a valid partition table
Disk /dev/mapper/debian-usr: 7176 MB, 7176454144 bytes
255 heads, 63 sectors/track, 872 cylinders, total 14016512 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 identifier: 0x00000000
Disk /dev/mapper/debian-usr doesn't contain a valid partition table
Disk /dev/mapper/debian-var: 2998 MB, 2998927360 bytes
255 heads, 63 sectors/track, 364 cylinders, total 5857280 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 identifier: 0x00000000
Disk /dev/mapper/debian-var doesn't contain a valid partition table
Disk /dev/mapper/debian-tmp: 398 MB, 398458880 bytes
255 heads, 63 sectors/track, 48 cylinders, total 778240 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 identifier: 0x00000000
Disk /dev/mapper/debian-tmp doesn't contain a valid partition table
Disk /dev/mapper/debian-home: 7612 MB, 7612661760 bytes
255 heads, 63 sectors/track, 925 cylinders, total 14868480 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 identifier: 0x00000000
Disk /dev/mapper/debian-home doesn't contain a valid partition table |
|