Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VPS hosting with a VZFS file system. How can I determine maximum file size of VZFS partition?

UPD: Free space (or total space) is not what i need. Sometimes file cannot occupy a hole partition volume - fat16 with 2Gb limit is a good example. I need to use a large database file (say, 64Gb) and so I need to know if a file system of VPS hosting will cope with it. It is easy to calculate for an ext3 filesystem using tune2fs, but VPS uses VSFS by Virtuozzo, and it is documented bad. Is it any generic way to calculate maximum file size for some filesystem in linux?

share|improve this question

VZFS is a virtual file system. It is used by OpenVZ (and Virtuozzo) to export a directory as the filesystem to a virtual machine. Therefore maximum file size is likely determined by the filesystem whose directory it actually is.

share|improve this answer

You can use the following command to tell you how much space is available on your VPS:

df -h

Your host can also over provision as well, so this will only tell you how much space is allocated to you, not how much diskspace the parent node has available.

You may also want to check the disk inodes with this command:

df -i

This will tell you how many files you can create (and is sometimes artificially low with some hosts).

Edit: To answer your updated question:

VZFS is not really a file system as you're thinking about it. It sits atop an existing file system which is most likely ext3 (the per container disk quota system will only work on ext3 and maybe reiserFS if I recall correctly).

If your host is running Virtuozzo (the commercial openVZ) it will help the host save diskspace by sharing files that are the same between containers (e.g. if all containers have the same file "/etc/foofile", it will share it amongst the containers. That's about the extent of the magic, if you look at the containers serverside you'll see regular files, there are no container 'partitions' or images preformatted and you're free to move files in and out of VEs with mv/cp.

In short - you're probably running on ext3 underneath. You can do what you want, although keep in mind most VPS providers I've seen are not geared for handling very large databases, you might be better off on a dedicated server unless your database is well optimized.

share|improve this answer
I have 100Gb available. Does it mean that I can host a file with size of 60Gb? – Nulldevice Jan 30 '10 at 6:10
Yes, 60gb is only 60% of 100%, though you may have problems with resource utilization with a file/database that large on a VPS host, you'll have to make sure it's well indexed. – epic9x Feb 12 '10 at 21:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.