LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2014, 07:29 AM   #1
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Rep: Reputation: Disabled
Error in install lessfs


Hi,
can you introduce a complete Reference for use Lessfs(deduplication) and hamsterdb ?
I search in google and find a few links but they not complete ,
Thanks for your helps,
 
Old 12-13-2014, 09:36 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by hamsaeed View Post
I search in google and find a few links but they not complete ,
In what way are http://www.lessfs.com/wordpress/, http://www.linuxjournal.com/content/...lication-linux, http://hamsterdb.com/documentation/, https://github.com/cruppstahl/hamsterdb/wiki/Tutorial not complete?
 
Old 12-14-2014, 03:26 AM   #3
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
thanks,
but i see them, but i want implement it in linux , and not find a reference for it,
are you do it , and see it is complex?

thanks for your helps,
 
Old 12-14-2014, 03:34 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# Some hints ...

Debian, Ubuntu, Mint https://launchpad.net/~brandonsnider.../ubuntu/lessfs

General ... http://www.lessfs.com/wordpress/?p=707

... And there are another 3,000 hits with Google, lessfs ubuntu
https://www.google.dk/webhp?hl=all&g...=lessfs+ubuntu
Google, lessfs linux : 7,000 hits
https://www.google.dk/webhp?hl=all&g...q=lessfs+linux

-
 
Old 12-14-2014, 04:31 AM   #5
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
thanks,
I read them, but
for example, what is mean :
Add /usr/local/BerkeleyDB.4.8/ to ld.so.conf ?
 
Old 12-14-2014, 07:29 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #5 .

"Add /usr/local/BerkeleyDB.4.8/ to ld.so.conf"
means ``Add /usr/local/BerkeleyDB.4.8/ to /etc/ld.so.conf´´

But installing an alien version of db4 to /usr/local isn't recommended.
Please install libdb4.8 / libdb4, for your OS :
Fedora, CentOS : # yum install libdb4
Debian based OS : # apt-get install libdb4.8

-
 
Old 12-14-2014, 08:15 AM   #7
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
dear,
means ,i open ld.so.conf and add /usr/local/BerkeleyDB.4.8 to end of file and save??
 
Old 12-14-2014, 09:36 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #7 .
Quote:
open ld.so.conf and add /usr/local/BerkeleyDB.4.8 to end of file and save ?
Only if you are looking for trouble.
! Install db4.8 from the repositories for your OS.
See post #6.

Which "Linux OS" are you using ? ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
I.e. you are supposed to specify your OS every time you ask a question.
→ OS name and version, please.

-
 
1 members found this post helpful.
Old 12-14-2014, 11:31 PM   #9
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
I'm sorry, you say right,

my linux is centos 6.6 ,
I installed db6.1 that is newer,
in documents that i searched ,write :
"add /usr/local/BerkeleyDB.4.8 to /etc/ld.so.conf "

what is means?

ld.so.conf is a txt file and editable , i must open it and copy text of "/usr/local/BerkeleyDB.6.1" and add end of file and saved?
 
Old 12-15-2014, 08:10 AM   #10
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
thanks dears,
I installed lessfs as follows:

Quote:
1 Install dependencies:

You may need 'gcc' packages or others to compile.

yum install mhash-devel pkgconfig zlib-devel bzip2-devel

Quote:
2 Install Fuse from source

wget http://sourceforge.net/projects/fuse...ar.gz/download
tar xzvf fuse-2.8.5.tar.gz
cd fuse-2.8.5
./configure && make && make install
cd ..

Quote:
3 Install TokyoCabinet from source

wget http://fallabs.com/tokyocabinet/toky...-1.4.47.tar.gz
tar xzvf tokyocabinet-1.4.47.tar.gz
cd tokyocabinet-1.4.47
./configure && make && make install
cd ..

Quote:
4 Install LessFS from source

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
wget http://sourceforge.net/projects/less...ar.gz/download
tar xzvf lessfs-1.5.4.tar.gz
cd lessfs-1.5.4
./configure && make && make install
Quote:
5 Configure lessfs

cp etc/lessfs.cfg /etc/
Quote:
5.1 Edit /etc/lessfs.cfg

Because the kernel is less than version 2.6.26, it doesn't support block sizes over 4096.

Change the following variable to look like this:

BLKSIZE=4096

Quote:
5.2 Prepare the volume

By default the DB is configured in the /data directory. The following commands will create the database and file structure in /data, and then create the mountpoint used to work with the files.

mklessfs -fc /etc/lessfs.cfg
mkdir /lessfs

Quote:
5.3 Edit /etc/rc.d/rc.local

Add the following line:

modprobe fuse > /dev/null 2>&1
Quote:
5.4 Load the fuse module

modprobe fuse

Quote:
5.5 Configure lessfs startup

You should still be in the lessfs source directory

cp etc/lessfs-init.example /etc/init.d/lessfs

Quote:
5.5.1 Edit /etc/init.d/lessfs

PATH=$PATH:/usr/bin:/usr/local/bin
LD_LIBRARY_PATH=/usr/local/lib
MKLESSFS=/usr/local/bin/mklessfs
MOUNTPOINT=/lessfs
LESSFS_OPTS="/etc/lessfs.cfg $MOUNTPOINT"
LESSFS=/usr/local/bin/lessfs


5.5.2 Add lessfs to init

chkconfig --add lessfs
chkconfig lessfs on
Quote:
6 Start it up and Test it

You can reboot, to test your startup script, or use this command

/etc/init.d/lessfs start
Quote:
6.1 Verify that it's mounted

Running

mount
now , I dont know how cheek that is it work right?

Last edited by hamsaeed; 12-15-2014 at 08:34 AM.
 
Old 12-15-2014, 09:10 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Seems you are using the ancient instructions for CentOS 5 ?
http://www.howtoforge.com/lessfs-1.5-on-centos-5
6 Start it up and Test it.
# /etc/init.d/lessfs start


By the way, your kernel isn't less than 2.6.26 .
CentOS 6.6 has kernel-2.6.32 .
And fuse is included : # yum install fuse-devel

-
 
Old 12-15-2014, 11:23 PM   #12
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
ok dear,
i started it, but i cant use from it, where i copied files in order for see lessfs de-duplicate files ?
 
Old 12-16-2014, 05:10 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #12 .

Google, lessfs documentation
Google, man lessfs

Examples
http://fedoraproject.org/wiki/Features/LessFS
https://sites.google.com/a/projectme.org/lessfs/
http://storagezilla.typepad.com/stor...th-lessfs.html

-
 
1 members found this post helpful.
Old 12-16-2014, 05:18 AM   #14
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
thanks, but i have new problem,

i do phases in up link , but it show below error :

Quote:
[root@localhost lessfs-1.7.0]# /etc/init.d/lessfs start
Starting lessfs:

[root@localhost lessfs-1.7.0]#
[root@localhost lessfs-1.7.0]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_ubject_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
vmware-vmblock on /var/run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,default_permissions,allow_other)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sr0 on /media/CentOS_6.5_Final type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=0,gid=0,iocharset=utf8,mode=0400,dmode=0500)
[root@localhost lessfs-1.7.0]#
[root@localhost lessfs-1.7.0]# df -t fuse.lessfs
df: no file systems processed

[root@localhost lessfs-1.7.0]#
 
  


Reply

Tags
hamsterdb, lessfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can not install/compile PHP on 64bit RHEL 6.3 : Error configure: error: utf8_mime2tex sanjivus Red Hat 1 12-26-2012 04:24 PM
LXer: Lessfs 1.5 On CentOS 5 LXer Syndicated Linux News 0 09-28-2011 03:30 PM
Error while trying to install ettercap configure error libnet on Red Hat enterprise nomiezvr4 Linux - Newbie 8 01-04-2011 08:29 PM
Write-error on swap-device error on package install slack 12.2 chickenlinux Slackware 11 01-25-2009 08:14 PM
Install error: fatal error attempting to install <pkgpath & name> gmartin Slackware - Installation 24 02-17-2005 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration