N
N
nikkbelov2014-08-15 10:36:02
linux
nikkbelov, 2014-08-15 10:36:02

Resize LVM partition on virtual machine in Proxmox?

Good afternoon! I have an ubuntu 12.04 virtual machine in Proxmox, it has a lvm disk of 20 GB, but I need 120. Here is what the parted
Model command produces: ATA QEMU HARDDISK (scsi)
Disk / dev / sda: 129GB
Sector size (logical / physical): 512B / 512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 256MB 255MB primary ext2 boot
2 257MB 21.5GB 21.2GB extended
5 257MB 21.5GB 21.2GB logical lvm
How do I change the disk size? When you try to change the disk size, the system swears that there is not enough space.
Here are my disks:
/dev/sda1: UUID="48111524-c4dc-42bf-adfc-ce1039798feb" TYPE="ext2"
/dev/sda5: UUID="S1xhnJ-oYw8-Wxrg-elxz-l1p5-lFoV-9Q8m0S" TYPE="LVM2_member
" ="ext4"
/dev/mapper/zoneminder-swap_1: UUID="e74a77d3-eddf-44ff-8959-257e99f00bc3" TYPE="swap"
sudo lvresize -L 40G /dev/mapper/zoneminder-root
Extending logical volume root to 40.00 GiB
Insufficient free space: 5442 extents needed, but only 5 available
sudo lvresize -L 40G /dev/sda5 Path
required for Logical Volume "sda5"
Please provide a volume group name

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
brutal_lobster, 2014-08-15
@nikkbelov

Instruction

A
Amurchikus, 2014-12-26
@Amurchikus

In fact, Proxmox provides a safe qm resize
tool. By increasing it, it will be the cut itself, I'm not sure, maybe then through lvresize, but you need to be careful not to cut off anything superfluous.
Frequently asked questions about LVM, see the link LVM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question