LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-15-2017, 02:50 PM   #1
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
/usr/sbin/cache_check missing from 14.2 and current(?)


After experimenting with LVM cache, I rebooted my machine, and my /home LV (which I converted to cached) did not become available, and was thus not usable/mountable in any way.

Code:
root@mac-mini:~# lvchange -a y mac-mini/home-lv
File descriptor 7 (pipe:[777]) leaked on lvchange invocation. Parent PID 1481: bash
  /usr/sbin/cache_check: execvp failed: Nincs ilyen fájl vagy könyvtár
  Check of pool mac-mini/home-lv-cache failed (status:2). Manual repair required!
root@mac-mini:~#
This message suggests that the /usr/sbin/cache_check binary is not present on the system, which is actually the case.
After looking in the 14.2 and current MANIFEST.bz2, I was unable to find any trace of it.

I also found a similar Debian bug:
https://bugs.debian.org/cgi-bin/bugr...cgi?bug=773731
 
Old 02-15-2017, 02:51 PM   #2
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
I will try proceeding by following the steps mentioned here:
http://majek.mamy.to/en/dm-cache-in-slackware/
 
Old 02-15-2017, 04:23 PM   #3
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
If you don't have the your root file system on the cached LV, then you are in luck, because you have it relatively easy.
All you have to do is the following:

Code:
# wget "https://github.com/jthornber/thin-provisioning-tools/archive/v0.6.3.tar.gz"
# mv v0.6.3.tar.gz thin-provisioning-tools-0.6.3.tar.gz
# tar xzf thin-provisioning-tools-0.6.3.tar.gz
# cd thin-provisioning-tools-0.6.3/
# autoreconf
# CFLAGS="-O2 -fPIC" ./configure --prefix=/usr --libdir=/lib64 --mandir=/usr/man --build=x86_64-slackware-linux
# make
# slacktrack -Qp /root/thin-provisioning-tools-0.6.3-x86_64-janos1.txz make install
After this, you can run
Code:
lvchange -a y LVNAME
without any problems, and the lv should be successfully auto-checked and available even after reboots.

Last edited by wowbaggerHU; 02-15-2017 at 04:37 PM.
 
  


Reply

Tags
dm-cache, lvm2, slackware 14.2



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
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_x dasoberdick Slackware 16 10-11-2014 02:36 AM
/usr/sbin/pmi and /usr/sbin/hibernate Woodsman Slackware 1 08-31-2013 10:41 PM
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
/usr/sbin and /sbin world read/executable... why? lazlow69 Slackware 3 04-29-2004 05:06 PM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:03 PM.

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