D
D
Denis2016-08-24 17:35:12
C++ / C#
Denis, 2016-08-24 17:35:12

How to increase the disk size of a virtual machine on proxmox?

There is proxmox 4.1
There is an ubuntu 14.04 virtual machine on one sata0 55G virtual disk

df -h
Filesystem                       Size  Used Avail Use% Mounted on
udev                             2.0G     0  2.0G   0% /dev
tmpfs                            396M  5.7M  390M   2% /run
/dev/mapper/proxy--v12--vg-root   55G  2.5G   50G   5% /
tmpfs                            2.0G   12K  2.0G   1% /dev/shm
tmpfs                            5.0M     0  5.0M   0% /run/lock
tmpfs                            2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda1                        472M  193M  255M  44% /boot
tmpfs                            100K     0  100K   0% /run/lxcfs/controllers
tmpfs                            396M     0  396M   0% /run/user/1000

I increase the disk size (through the console and through the webmord) on the virtual machine without changes :(
#resize2fs /dev/sda1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 498688 (1k) blocks long.  Nothing to do!

# resize2fs /dev/sda
resize2fs 1.42.13 (17-May-2015)
resize2fs: Device or resource busy while trying to open /dev/sda
Couldn't find valid filesystem superblock.

and... no
PS LVM changes.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
#
#algooptimize #bottize, 2016-06-02
@user004

And it shouldn't, ,url ==host
While why is it here?

A
Alexey, 2016-06-02
@alsopub

I don’t even know where to start here ...
I’ll probably start with the advice to use debugging and see what gets into which variables.
Separately, on the errors, everything has already been said here in the comments.

R
Rou1997, 2016-06-02
@Rou1997

No, it should not work, there the token is added to the URL via window.location.hash (without reloading the page), so the DocumentCompleted event is not called, end this rigmarole from nothing, do it through Timer, and you will be happy.

D
Dmitry, 2016-08-24
@plin2s

First you need to resize the partition, and only then do resize2fs.
You can use fdisk or parted to resize a partition.

P
Puma Thailand, 2016-08-25
@opium

look in the partition what you have with the layout of the disk and partition

D
Denis, 2016-08-25
@Hoper

oh, it seems the best option is to expand through the web interface.
boot from live-cd and expand gpart partitions...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question