Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Last active November 1, 2022 06:18
Show Gist options
  • Save alexalouit/df233101e68681e3d33f0428b5a77758 to your computer and use it in GitHub Desktop.
Save alexalouit/df233101e68681e3d33f0428b5a77758 to your computer and use it in GitHub Desktop.
LessFS Debian
$ mkdir ~/build; cd ~/build
$ wget https://datapacket.dl.sourceforge.net/project/lessfs/lessfs/lessfs-1.7.0/lessfs-1.7.0.tar.gz
$ tar xzvf ./lessfs-1.7.0.tar.gz
$ cd lessfs-1.7.0/
$ apt-get install libmhash-dev libfuse-dev libtokyocabinet-dev
$ ./configure
$ make
$ make install
$ cp etc/lessfs.cfg /etc/
# adjust datastore in /etc/lessfs.cfg (/data by default)
$ mklessfs -fc /etc/lessfs.cfg
$ cp etc/lessfs-init_example /etc/init.d/lessfs
# edit /etc/init.d/lessfs if mount is different than /lessfs
# edit /etc/init.d/lessfs and replace '/etc/rc.d/init.d/functions' by '/lib/lsb/init-functions'
# edit /etc/init.d/lessfs and comment '/etc/sysconfig/network' line and '[ ${NETWORKING} = "no" ] && exit 0' line
# edit /etc/init.d/lessfs and replace 'LESSFS=/usr/bin/lessfs' by 'LESSFS=/usr/local/bin/lessfs'
# edit /etc/init.d/lessfs and add 'modprobe fuse' before 'PATH=$PATH:/usr/bin'
$ mkdir /lessfs
$ update-rc.d lessfs defaults
$ /etc/init.d/lessfs start
# when using chunk_io, manually create dta/mta directories and run mklessfs without -f argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment