Bubbel
January 25th, 2010, 08:57 AM
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:
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/fuse/2.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:
sudo dpkg -i *.deb
assuming the FUSE files are in the same folder as the shell is.
Download & Extract LessFS: Download .tar.gz package from http://sourceforge.net/projects/lessfs/files/. Extract like
tar xzf *.tar.gz
Other Option, All-in one (Note: check for the newest version number at wwww.lessfs.com):
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
./configure
This gives a lot of text. Check for errors.
Run
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:
sudo update-rc.d lessfs.sh enable
This creates the correct startup scripts. This isn't nessecary. You can always hand-start lessfs.
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:
sudo mklessfs -c /etc/lessfs.cfg
And you're done Start Lessfs with:
sudo invoke-rc.d lessfs.sh start
or restart.
Happy Less-ing ;)
Bubbel :KS
PS: Thanks to PhracturedBlue for filtering out some errors.
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:
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/fuse/2.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:
sudo dpkg -i *.deb
assuming the FUSE files are in the same folder as the shell is.
Download & Extract LessFS: Download .tar.gz package from http://sourceforge.net/projects/lessfs/files/. Extract like
tar xzf *.tar.gz
Other Option, All-in one (Note: check for the newest version number at wwww.lessfs.com):
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
./configure
This gives a lot of text. Check for errors.
Run
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:
sudo update-rc.d lessfs.sh enable
This creates the correct startup scripts. This isn't nessecary. You can always hand-start lessfs.
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:
sudo mklessfs -c /etc/lessfs.cfg
And you're done Start Lessfs with:
sudo invoke-rc.d lessfs.sh start
or restart.
Happy Less-ing ;)
Bubbel :KS
PS: Thanks to PhracturedBlue for filtering out some errors.