0

I'm running a virtual machine (Ubuntu 14.04 LTS) on VMware ESXi. The virtual machines needed extra storage as to why i raised the disk size in ESXi, and ran pationing etc. from the virtual machine itself. All was fine (i thought) as both the df -h and df -i reported lots of diskspace and inodes left. But when i hit the partition's old limit i was faced by "no space left on device". As the case was very urgent i decided to reboot the machine which solved the problem and let new data be written to the partition.

My question: Is reboot of the virtual machine necessary or could it be avoided somehow?

Quick summary:

  • Raise disk size in ESXi
  • Repartition using parted
  • Grow filesystem (xfs)
  • Verify with df

1 Answers1

2

You can use partprobe /dev/sdX or hdparm -z /dev/sdX

Anyway, in some circumstances these command are not sufficient, and a reboot is required.

In your case, the strange thing is that a filesystem resize was performed without problem (and confirmed by a df, right?) and so the partition table should have been reread correctly...

shodanshok
  • 52,255