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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-13-2014, 07:29 AM
|
#1
|
Member
Registered: Dec 2014
Posts: 47
Rep: 
|
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,
|
|
|
12-13-2014, 09:36 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
|
|
|
12-14-2014, 03:26 AM
|
#3
|
Member
Registered: Dec 2014
Posts: 47
Original Poster
Rep: 
|
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,
|
|
|
12-14-2014, 03:34 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
|
|
|
12-14-2014, 04:31 AM
|
#5
|
Member
Registered: Dec 2014
Posts: 47
Original Poster
Rep: 
|
thanks,
I read them, but
for example, what is mean :
Add /usr/local/BerkeleyDB.4.8/ to ld.so.conf ?
|
|
|
12-14-2014, 07:29 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← #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
-
|
|
|
12-14-2014, 08:15 AM
|
#7
|
Member
Registered: Dec 2014
Posts: 47
Original Poster
Rep: 
|
dear,
means ,i open ld.so.conf and add /usr/local/BerkeleyDB.4.8 to end of file and save??
|
|
|
12-14-2014, 09:36 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← #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.
|
12-14-2014, 11:31 PM
|
#9
|
Member
Registered: Dec 2014
Posts: 47
Original Poster
Rep: 
|
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?
|
|
|
12-15-2014, 08:10 AM
|
#10
|
Member
Registered: Dec 2014
Posts: 47
Original Poster
Rep: 
|
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:
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.
|
|
|
12-15-2014, 09:10 AM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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
-
|
|
|
12-15-2014, 11:23 PM
|
#12
|
Member
Registered: Dec 2014
Posts: 47
Original Poster
Rep: 
|
ok dear,
i started it, but i cant use from it, where i copied files in order for see lessfs de-duplicate files ?
|
|
|
12-16-2014, 05:10 AM
|
#13
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
|
|
1 members found this post helpful.
|
12-16-2014, 05:18 AM
|
#14
|
Member
Registered: Dec 2014
Posts: 47
Original Poster
Rep: 
|
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_u bject_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]#
|
|
|
|
All times are GMT -5. The time now is 01:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|