0
我調整大小qcow2圖像以增加它的大小,在這個過程中我通過了錯誤的設備擴展到現在的virt-文件系統顯示:調整大小LVM分區,而無需關閉VM
[[email protected] 35]# virt-filesystems --long --parts --blkdevs -h -a disk.0
Name Type MBR Size Parent
/dev/sda1 partition 83 243M /dev/sda
/dev/sda2 partition 05 1.0K /dev/sda
/dev/sda5 partition 8e 9.8G /dev/sda
/dev/sda device - 40G -
我想調整/ dev/sda5從/ dev/sda中取出所有40G,但在虛擬機fdisk,lv工具中,parted不顯示該空間,我有點不知所措。
任何幫助或指導表示讚賞。
Fdisk的輸出:
[email protected]:~# fdisk -l
Disk /dev/vda: 42.9 GB, 42949672960 bytes
16 heads, 63 sectors/track, 83220 cylinders, total 83886080 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: 0x000bd79d
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 499711 248832 83 Linux
/dev/vda2 499712 83883647 41691968 5 Extended
/dev/vda5 499714 20967425 10233856 8e Linux LVM
Disk /dev/mapper/ubuntu--vg-root: 9940 MB, 9940500480 bytes
255 heads, 63 sectors/track, 1208 cylinders, total 19415040 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/ubuntu--vg-root doesn't contain a valid partition table
Disk /dev/mapper/ubuntu--vg-swap_1: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders, total 1048576 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/ubuntu--vg-swap_1 doesn't contain a valid partition table