Some help with getting lessFS to work on Debian 7 (wheezy)

219 views
Skip to first unread message

Ogi

unread,
Jun 3, 2014, 10:37:52 AM6/3/14
to les...@googlegroups.com
Hey All,

I've been trying to get lessfs to work today, with no luck on the final step, which is the actual mount.

1) I've managed to correctly build lessfs on the host, and have installed fuse, and all other dependencies that were requested
2) I'm using the default config file given (just to make sure it is not a config problem), just changing the dta/mta paths to my own
3) All the paths are already created.
4) mklessfs actually creates lots of _DB files, and otherwise seems to be doing what it is supposed to. (exit code 4 returned)
5) lessfs /etc/config /mountpath   looks like it works, it takes time, and doesn't print any errors anywhere (checked the logs).

However /mountpath is never actually mounted. df -t fuse.lessfs shows no filesystems, and lessfs is not running in the background. It just seems to die. I do get exit code 4 returned as well, but I have no idea what that could mean.

strace/gdb have not thrown anything useful, from a quick glance. Anyone got any ideas for passing the final hurdle?

Thanks!

humblebeast

unread,
Jun 18, 2014, 3:07:13 PM6/18/14
to les...@googlegroups.com
Hey Ogi,

Any advancements since you last posted this? Very curious!

Rick Thomas

unread,
Jan 16, 2015, 7:10:54 AM1/16/15
to les...@googlegroups.com
Hi Ogi,

I'm stuck trying to run
    ./configure --with-berkeleydb

I get 
   checking for pkg-config... /usr/bin/pkg-config

   checking pkg-config is at least version 0.9.0... yes

   checking for DEPS... no

   configure: error: Package requirements (tokyocabinet >= 1.4.21 fuse >= 2.8.0 ) were not met:

   

   No package 'fuse' found


But the package "fuse" is installed at 'Version: 2.9.0-2+deb7u1'.  What else do I need?


Linux host is Debian Wheezy for PowerPC


Any help will be appreciated...


Thanks!
Rick

Mark Ruijter

unread,
Jan 16, 2015, 7:21:05 AM1/16/15
to les...@googlegroups.com

You need the fuse development package as well as the TC dev package. Once Lessfs has been build it can do without them.

Mark
--
You received this message because you are subscribed to the Google Groups "lessfs " group.
To unsubscribe from this group and stop receiving emails from it, send an email to lessfs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rick Thomas

unread,
Jan 16, 2015, 8:19:59 AM1/16/15
to les...@googlegroups.com
Thanks!  That did the trick.   Now, is there a "How To" for setting up a lessfs filesystem?
Enjoy!

Mark Ruijter

unread,
Jan 16, 2015, 8:45:23 AM1/16/15
to les...@googlegroups.com

The quick way to get it going is:
cp etc/lessfs.cfg-bdb /etc/lessfs.cfg
cp ../DB_CONFIG /data/The_lessfs_metadata_directory/ (See lessfs.cfg).

Edit the file and change the path's to something that you use locally.
Make sure that the compression that you select has been compiled into lessfs.

Choose the type of backend.
fio-io (which is the most stable) or chunk-io.

Read the manual. ;-)

When all has been configured:
mklessfs /etc/lessfs.cfg
lessfs /etc/lessfs.cfg /mnt

You now should have a mounted lessfs.

Mark.
--

Rick Thomas

unread,
Jan 18, 2015, 3:39:55 AM1/18/15
to les...@googlegroups.com
Thanks, Mark!

I did that (and I did read the manual -- it was very helpful, thank you!)
and now I get

  root@bigal:/home/rbthomas/Downloads/lessfs-1.7.0# mklessfs -c /etc/lessfs.cfg

  User defined signal 1

  root@bigal:/home/rbthomas/Downloads/lessfs-1.7.0# lessfs /etc/lessfs.cfg /fuse

  Segmentation fault (core dumped)


I've attached my /etc/lessfs.cfg and /backup/mta/DB_CONFIG

This is on a PowerMac G5 running Debian Wheezy powerpc64.  Is there a chance that the hardware architecture is a problem?

Thanks!
Rick

--
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/o6YEF0DzoAU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lessfs+un...@googlegroups.com.
DB_CONFIG
lessfs.cfg

Mark Ruijter

unread,
Jan 18, 2015, 4:59:08 AM1/18/15
to les...@googlegroups.com

What type of compression did you enable in the lessfs configuration file?
And what did you compile in?

Can you share your lessfs config?
Did lessfs log anything (syslog)?

Thanks,

Mark

Verstuurd vanaf mijn iPhone
<DB_CONFIG>
<lessfs.cfg>

Rick Thomas

unread,
Jan 18, 2015, 5:50:00 AM1/18/15
to les...@googlegroups.com
I included the lessft.cfg and DB_CONFIG as attachments to my previous email.  If you can't read them, I can email them directly if that's a help.

I want to turn off compression and encryption completely (I don't need either feature for this application).  If you have time, please review the config file and let me know if I've failed to do that.  I also want to disable replication (I don't need it for this application).

The application is as a backup store for my family mail server.  Lots of small files (text messages), a few bigger ones (pictures and sound files that don't compress well), family members with a tendency to keep multiple copies of stuff.  It's on an encrypted RAID1 setup so I don't need the replication or encryption features of lessfs.

Here's the log:

rbthomas@bigal:~$ grep -i lessfs /var/log/syslog

Jan 18 00:25:27 bigal mklessfs[20954]: Blocksize = 131072 bytes

Jan 18 00:25:27 bigal mklessfs[20954]: MIN_SPACE_CLEAN is not set, lessfs runs -ENOSPC when reaching MIN_SPACE_FREE

Jan 18 00:25:27 bigal mklessfs[20954]: The selected data store is file_io.

Jan 18 00:25:27 bigal mklessfs[20954]: Lessfs transaction support is enabled.

Jan 18 00:25:27 bigal mklessfs[20954]: config->blockdata = /backups/dta/blockdata.dta

Jan 18 00:25:27 bigal mklessfs[20954]: compression = none

Jan 18 00:25:27 bigal mklessfs[20954]: Threaded background delete is enabled

Jan 18 00:25:27 bigal mklessfs[20954]: Hash MHASH_TIGER192 has been selected

Jan 18 00:25:27 bigal mklessfs[20954]: Lessfs uses a 24 bytes long hash.

Jan 18 00:25:27 bigal mklessfs[20954]: Automatic defragmentation is enabled.

Jan 18 00:25:27 bigal mklessfs[20954]: cache 4096 data blocks

Jan 18 00:25:27 bigal mklessfs[20954]: open /backups/dta/replog.dta failed : No such file or directory

Jan 18 00:26:06 bigal lessfs[20958]: Blocksize = 131072 bytes

Jan 18 00:26:06 bigal lessfs[20958]: MIN_SPACE_CLEAN is not set, lessfs runs -ENOSPC when reaching MIN_SPACE_FREE

Jan 18 00:26:06 bigal lessfs[20958]: The selected data store is file_io.

Jan 18 00:26:06 bigal lessfs[20958]: Lessfs transaction support is enabled.

Jan 18 00:26:06 bigal lessfs[20958]: config->blockdata = /backups/dta/blockdata.dta

Jan 18 00:26:06 bigal lessfs[20958]: compression = none

Jan 18 00:26:06 bigal lessfs[20958]: Threaded background delete is enabled

Jan 18 00:26:06 bigal lessfs[20958]: Hash MHASH_TIGER192 has been selected

Jan 18 00:26:06 bigal lessfs[20958]: Lessfs uses a 24 bytes long hash.

Jan 18 00:26:06 bigal lessfs[20958]: Automatic defragmentation is enabled.

Jan 18 00:26:06 bigal lessfs[20958]: cache 4096 data blocks

Jan 18 00:26:06 bigal lessfs[20958]: open /backups/dta/replog.dta failed : No such file or directory

rbthomas@bigal:~$ 


Looking at the log file I found a couple of errors in the config file, and noticed that, while I had done "mkdir /backups/mta", I had forgotten to do "mkdir /backups/dta".  I guess I assumed I would not need it if replication was turned off.

After taking care of those problems, creating the filesystem seems to have worked and -- at least no error messages.
I'll let you know if I run into problems using it.

Thanks very much for all your help!

Rick

PS:  Have you considered packaging lessfs for Debian and/or CentOS?

Reply all
Reply to author
Forward
0 new messages