Skip to content
Advertisement

Running out of space on Linux, copying 12GB of files to a 15GB file system

I have two virtual Linux servers, one for development and one in production, a typical setup one would expect.

On the development server I have files that I need to copy to the production server, that amount to 12GB, well according to the “du -h” command. The production server has 15GB free, according to the “df -h” command. However, when trying to copy the files across, the production server ran out of file space!

Whilst I know that both commands round up or down the answer, there should be still over 2GB free at the end, 12.4GB to 14.5GB. Equally, there could be near 4GB as well, 11.5GB to 15.4GB. (For some reason, I get slightly different answers based upon the user, but still enough to fit the files – supposedly.)

Both servers are running 64 bit Ubuntu 16.04 LTS and have the file system set as EXT4.

I’m using SCP to copy the files across, since I don’t have enough space to contain a zipped file and its unzipped contents.

So what am I missing?

Advertisement

Answer

Please try the same with rsync command in terminal. Here is the example of it.

$ rsync -a /some/path/to/src/ /other/path/to/dest/
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement