Jump to content

Seedbox Storage Quota

From Pulsed Media Wiki
(Redirected from Data storage)


Storage Quota.

Every Pulsed Media seedbox and storage box has two limits, disk space and the number of files, and either one stops new writes when it is full. This page shows how to check both and what to do when one fills up.

Understanding Your Storage Quota

When using a seedbox, it's important to understand your storage quota. This guide will help you understand how to check your quota and what it means.

Your Quota Meter

The quota meter in the portal is the most accurate way to check your storage quota. It's updated regularly and reflects the actual space you have available in your seedbox.

Checking Your Quota Shell / SSH

There are several ways to check your quota:

  • Use the 'quota -s' command in the console.
  • Check the 'cat .quota' file in your home directory.

The 'df' Command

The 'df' command is a common way to check disk space in Linux. However, in our system, it may not show the correct information due to some backend processes. It does not tell about your quota neither.

File Limit and Inodes

A seedbox or storage box has two limits, and either one can stop new writes: disk space and the number of files. The file limit is derived from the disk quota: 500 files per GiB (never below 15,000) as the soft limit, and 25% more as the hard limit, so a 1 TiB quota allows 512,000 files soft and 640,000 hard. Staying above the soft limit past its grace period blocks writes just as the hard limit does.

Every file, directory and symlink uses one inode (the filesystem record that describes it), whether it holds 2 bytes or 40 GiB. Below an average of about 2 MiB per file, the file limit runs out while disk space is still free. quota -s shows both limits and current usage.

Packing a collection of tiny files into a .tar or squashfs image turns thousands of inodes into one, but never do this to files a torrent client is still seeding: archiving them breaks the torrent. The file limit scales with the disk quota, so a larger plan raises both limits together. The full formula, a table per quota size and fixes per application are in the knowledge base article How file limits are calculated.

Excessive Seeking and Wasted Space

Having a large number of small files can lead to excessive seeking by the hard drive. Seeking is the process where the hard drive's read/write head moves to the location of a file. Excessive seeking can slow down the hard drive and reduce its lifespan.

Small files can also lead to wasted space. Each file, no matter how small, takes up at least one block of storage. If the file is smaller than the block size, the remaining space in the block is wasted.

Bonus Disk Policy

Pulsed Media offers a Free Bonus Disk Policy to loyal customers. If the server has free disk space, extra quota may be assigned to you. This is done automatically by our system.

Remember, your quota meter is the most accurate way to check your storage quota. If you have any issues, don't hesitate to contact support.

Empty ruTorrent list on a full quota: free space, then reload

A full quota refuses every new write in your home directory, and the first place you see it is usually ruTorrent: an error box, and a torrent list that stays empty or never loads. A full quota does not delete your files. rTorrent writes each save of a torrent's state to a new file next to the old one and swaps them only when the write succeeds, so a refused save leaves the last good save in place.

Confirm it is the quota

Run quota -s over SSH. A * after a number means you are over that limit. Check both columns, disk space and files, and remember that the soft limit counts too once its grace period has run out.

The ruTorrent web server writes its errors to ~/.lighttpd/error.log. Lines containing Disk quota exceeded confirm it: ruTorrent tried to save its cache files in your home directory and was refused, and without that cache it cannot show the list.

In ~/session you may find files ending in .new that are 0 bytes. Those are rTorrent's refused saves. Leave the directory alone: it is where rTorrent keeps its list of torrents, and deleting files there can remove torrents from it.

Freeing space

A restart frees no space, so it does not help. When the file limit is the one that is full it can make things worse: the web server and rTorrent each create a socket file in your home directory when they start, and a refused socket file leaves the web interface unreachable.

Free space instead:

  • If ruTorrent still loads, remove torrents you no longer need together with their data: right-click the torrent, then Remove And, then Delete Data.
  • If it does not load, delete files you no longer need over SFTP or SSH (how to connect). Start with your largest finished downloads, and keep clear of ~/session and the dot-files in your home directory.
  • If the file limit is the full one, remove many small files rather than a few large ones (see File Limit and Inodes above).

Run quota -s again until no * is left, then reload ruTorrent. Once ruTorrent can write its cache again it shows your list, and rTorrent's next save can land. If pages still show errors after you are back under both limits, open a support ticket.

If the log says No space left on device instead of Disk quota exceeded, the server's disk is full rather than your quota. Deleting your files will not fix that one: open a support ticket.

If your collection keeps outgrowing your plan, the M1000 seedboxes give you 2 TB to 6 TB of RAID5 storage, from 6.99€ per month excl. VAT, with a 14-day money-back guarantee on the first order. A larger plan raises the disk and file limits together. See the M1000 plans.

See also

On the blog: