LessFS is a relatively new FS. The primary goal for LessFS is an on-disk backup & archiving filesystem.
Features of LessFS:
- On-line Deduplication
- On-line Compression
LessFS creates a growable file that represents the LessFS filesystem.
My configuration is as follows: 5 Harddisks of varying sizes, concatenated to one disk, using LVM2. The data partition formatted as ext4, with large file option set.
I've installed LessFS as follows:
Open a Terminal on your server.
- Get the prerequisites:
Code:sudo apt-get install build-essential libselinux1-dev libsepol1-dev pkg-configlibtokyocabinet-dev checkinstall- Get Fuse 2.8.1: download from https://launchpad.net/ubuntu/+source...8.1-1.1ubuntu2 the packages called libfuse, libfuse-dev and fuse-utils. Download the ones that correspond to your architecture.
- Install them like this:
assuming the FUSE files are in the same folder as the shell is.Code:sudo dpkg -i *.deb- Download & Extract LessFS: Download .tar.gz package from http://sourceforge.net/projects/lessfs/files/. Extract like
Other Option, All-in one (Note: check for the newest version number at wwww.lessfs.com):Code:tar xzf *.tar.gz
Code:wget -O- http://sourceforge.net/projects/lessfs/files/lessfs/lessfs-1.0.1/lessfs-1.0.1.tar.gz/download | tar xz- cd into lessfs folder and run
This gives a lot of text. Check for errors.Code:./configure- Run
Code:make && sudo checkinstall
I didn't test checkinstall, so if it fails, replace "checkinstall" with "make install".
You are done installing. Now configuring:
LessFS isn't made natively on Debian/Ubuntu. That is to see in the startup scipt. I tweaked it a bit, but I must say it's a quick-and-dirty hack. The tweaked script is provided as an attachment (lessfs.sh).
Download it and save it to /etc/init.d
Edit the file if you want to change the mountpoint to something other than /data.
Then do:
This creates the correct startup scripts. This isn't nessecary. You can always hand-start lessfs.Code:sudo update-rc.d lessfs.sh enable
The next part is important though:
From the lessfs source folder copy the etc/lessfs.cfg file. Copy it to /etc
Then edit the new /etc/lessfs.cfg
change the file paths to your liking (tip: Do the data folder 'dta' as the only one on your large partition. For performance reason)
Alter the cache settings in a way that it fits your memory.
After saving the file, create the mta, dta subfolders at the places you stated above.
Also create the mount point folder.
do the following to create the folder:
And you're done Start Lessfs with:Code:sudo mklessfs -c /etc/lessfs.cfg
or restart.Code:sudo invoke-rc.d lessfs.sh start
Happy Less-ing
Bubbel
PS: Thanks to PhracturedBlue for filtering out some errors.




Adv Reply



Bookmarks