Setting up Lessfs on CentOS

183 views
Skip to first unread message

sonam...@gmail.com

unread,
Dec 24, 2013, 1:19:14 PM12/24/13
to les...@googlegroups.com
Hello,

I am new to using Lessfs and have been trying to set it up on CentOS 6.4.
I followed the steps given in the following link:


I've set compression=none
and BLKSIZE=4096 in the configuration file

I've mounted the data device on /data, and metadata device on /data/mta using the following:
mount -t ext3 /dev/sdd /data
mount -t ext3 /dev/sdb1 /data/mta

After that I run the mklessfs and lessfs commands with relevant arguments.

When I run mount, I don't see any lessfs partition mounted. 
There doesn't seem to be any error either, so I have no clue what is going wrong.

I've tried this for lessfs versions 1.5.12 and 1.7.0

Any idea what could be going wrong?

Thank you very much!

Jay Smith

unread,
Mar 10, 2014, 2:26:31 PM3/10/14
to les...@googlegroups.com
Hello Sonam,

I am also having the same issue on CentOS. I am planning on trying to get it running another distro.

Thanks,

Jay

Sonam Mandal

unread,
Mar 10, 2014, 2:45:49 PM3/10/14
to les...@googlegroups.com
Hello Jay,

I actually figured out the issue. I was using the wrong configuration file for setting up Lessfs for the particular backend I was using. Once I used the right file, it worked fine. Requires a little tuning maybe, but it works.

Thank you

Regards,
Sonam


--
You received this message because you are subscribed to a topic in the Google Groups "lessfs " group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lessfs/Th9geg6BUh4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lessfs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Sonam

Research Assistant
File Systems and Storage Lab (FSL)
Department of Computer Science
Stony Brook University, New York

Jay Smith

unread,
Mar 27, 2014, 3:41:35 PM3/27/14
to les...@googlegroups.com
Hello Sonam,

I was wondering if you could tell me what changes you made to your cfg file to get it to work.

I'm not really sure what it is supposed to look like and I do expect that the issue has something to do with the .cfg file. I was wondering if you could attach your file or copy and paste it to me.

My current cfg file is attached.

Thanks,

Jay
MylessFS.cfg

Sonam Mandal

unread,
Mar 28, 2014, 2:47:35 PM3/28/14
to les...@googlegroups.com
Hello Jay,

I configured lessfs to work with BerkeleyDB and HamsterDB. They suggest to use one of these over the default Tokyocabinet.

For BerkeleyDB I just modified a few things in the file etc/lessfs.cfg-bdb in the lessfs sources. Please find my configuration below:

# Enable informational messages about compression.
DEBUG = 5
HASHNAME=MHASH_TIGER192
#HASHNAME=MHASH_SHA256
# The (chopped) hashlen in bytes, minimum is 20.
HASHLEN = 24
BLOCKDATA_IO_TYPE=file_io
BLOCKDATA_PATH=/data/dta/blockdata.dta
#BLOCKDATA_IO_TYPE=chunk_io
#BLOCKDATA_PATH=/data/dta/
#
META_PATH=/data/mta
#META_BS=1048576
#
CACHESIZE=512
# Flush data to disk after X seconds.
COMMIT_INTERVAL=10
#
LISTEN_IP=127.0.0.1
LISTEN_PORT=100
# Not more then 2 on most machines.
MAX_THREADS=16
#DYNAMIC_DEFRAGMENTATION on or off, default is off.
DYNAMIC_DEFRAGMENTATION=on
COREDUMPSIZE=2560000000
# Consider SYNC_RELAX=1 or SYNC_RELAX=2 when exporting lessfs with NFS.
SYNC_RELAX=0
# When BACKGROUND_DELETE=on lessfs will spawn a thread to delete
# a file as a background task. This is a recently added feature
# and is therefore disabled by default.
BACKGROUND_DELETE=on
# Requires openssl and lessfs has to be configured with --with-crypto
ENCRYPT_DATA=on
# ENCRYPT_META on or off, default is off
# Requires ENCRYPT_DATA=on and is otherwise ignored.
ENCRYPT_META=off
# You don't like fsck?
ENABLE_TRANSACTIONS=on
# Select a blocksize to fit your needs.
BLKSIZE=131072
COMPRESSION=qlz
#TUNEFORSPEED=yes
#
##### LFS MASTER #####
#REPLICATION=masterslave
#REPLICATION_ROLE=master
###BULK REPLICATION
###REPLICATION_PARTNER_IP=-1
##LFS NATIVE REPLICATION
#REPLICATION_PARTNER_IP=10.10.10.10
#REPLICATION_PARTNER_PORT=101
#MAX_BACKLOG_SIZE=1000000
##### LFS SLAVE #####
#REPLICATION=masterslave
#REPLICATION_ROLE=slave
# LFS NATIVE REPLICATION
#REPLICATION_LISTEN_IP=0.0.0.0
# LFS BULK REPLICATION WITH WATCHDIR
#REPLICATION_LISTEN_IP=-1
#REPLICATION_WATCHDIR=/data/master/dta
#REPLICATION_LISTEN_PORT=201
#BDB_PRIVATE=on
#TUNEFORSIZE=HUGE


I haven't tried to configure it for Tokyocabinet backend. I found that for BerkeleyDB, it does not work if you disable transactions.

Which backend do you need to set up?

Reply all
Reply to author
Forward
0 new messages