On-the-Fly Read-Write compressed filesystem
I recently had a problem where “SARG” completely chew up all root filesystem space as reports was generated daily and stored under /var/www/html/sarg. Quick solution… I thought this can also come in handy for future reference… “On-the-Fly read-write compressed filesystem”
I did the following on CentOS 5.5:
1 2 3 4 5 6 7 8 9 10 |
|
Add the following to /etc/fstab:
1 2 |
|
1 2 3 4 |
|
Check that your new fuse filesystem is mounted:
1
|
|
By doing this, all files written to /var/www/html/sarg is actually being written “inside” /.sarg-compressed.sqfs (The compressed filesystem) Files like text, or html in this instance, are compressed at a massive ratio.