E
E
Evgeny Kalibrov2014-12-22 12:37:35
linux
Evgeny Kalibrov, 2014-12-22 12:37:35

How to increase disk size in a virtual machine?

Proxmox was installed on the real machine - for virtualization. Created virtual machine with debian. Now there is an urgent need to increase the hard on the virtual machine. In proxmox, I increase the hard disk through the web interface, but this does not give any effect. As far as I understand, you need to somehow increase the size of the partition on the virtual machine.
Googled the resize2fs command. But it gives a message: "Operation not permitted while opening /dev/simfs"
What's wrong? What is the sequence of actions?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
L
ldv, 2014-12-22
@rework

OpenVZ SimFS uses a host file system for virtual machines. Probably you need to increase the quota for the container.
www.jamescoyle.net/how-to/903-openvz-disk-space-issues

E
Evgeny Kalibrov, 2014-12-22
@rework

Here is what the command produces: df -h:

Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs       14G   13G  311M  98% /
none            4.0G  4.0K  4.0G   1% /dev
none            805M   48K  805M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            2.4G     0  2.4G   0% /run/shm
none            100M     0  100M   0% /run/user

O
Odjik, 2014-12-22
@Odjik

Most likely you will have to boot from something else and resize the disk.
gparted livecd?

L
LLWE_FUL, 2014-12-23
@LLWE_FUL

"Operation not permitted while opening /dev/simfs" suggests insufficient user rights. did resize2fs run as a simple user or root?
What do mount without options and cat /proc/partitions produce?
resize2fs only works with the ext* file system, if there is another fs on the partition (for example, reiserfs), then you need to use another tool suitable for this fs.

I
Ilya Evseev, 2014-12-23
@IlyaEvseev

In console:
For example:
100G and 200G are soft and limit quota.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question