Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
linux:kvm [2012/07/13 09:33] linko22@gmail.com |
linux:kvm [2012/07/13 10:22] (текущий) linko22@gmail.com |
||
---|---|---|---|
Строка 94: | Строка 94: | ||
Редактируем | Редактируем | ||
- | | + | < |
+ | fdisk /dev/loop0 | ||
+ | WARNING: DOS-compatible mode is deprecated. It's strongly recommended to | ||
+ | | ||
+ | | ||
+ | Command (m for help): p | ||
+ | |||
+ | Disk /dev/loop0: 105.4 GB, 105360916480 bytes | ||
+ | 255 heads, 63 sectors/ | ||
+ | Units = cylinders of 16065 * 512 = 8225280 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | Disk identifier: 0x0005e743 | ||
+ | |||
+ | Device Boot Start | ||
+ | / | ||
+ | Partition 1 does not end on cylinder boundary. | ||
+ | / | ||
+ | / | ||
+ | |||
+ | Command (m for help): n | ||
+ | Command action | ||
+ | | ||
+ | | ||
+ | p | ||
+ | Selected partition 4 | ||
+ | First cylinder (7711-12809, | ||
+ | Using default value 7711 | ||
+ | Last cylinder, +cylinders or +size{K, | ||
+ | Using default value 12809 | ||
+ | |||
+ | Command (m for help): p | ||
+ | |||
+ | Disk /dev/loop0: 105.4 GB, 105360916480 bytes | ||
+ | 255 heads, 63 sectors/ | ||
+ | Units = cylinders of 16065 * 512 = 8225280 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | Disk identifier: 0x0005e743 | ||
+ | |||
+ | Device Boot Start | ||
+ | / | ||
+ | Partition 1 does not end on cylinder boundary. | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Выходим, | ||
+ | |||
+ | losetup -d /dev/loop0 | ||
+ | |||
+ | Стартуем виртуалку | ||
+ | |||
+ | virsh start machine-name | ||
+ | |||
+ | Логинимся в неё и добавляем новый диск в раздел LVM | ||
+ | |||
+ | pvcreate /dev/vda4 | ||
+ | vgextend VolGroup /dev/vda4 | ||
+ | lvextend -l+100%FREE / | ||
+ | resize2fs / | ||
+ | |||
+ | Всё. | ||
+ | | ||
| | ||
+ | | ||
===== Источники ===== | ===== Источники ===== | ||