LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lvm "command not found" on centos 5.6 (https://www.linuxquestions.org/questions/linux-newbie-8/lvm-command-not-found-on-centos-5-6-a-882006/)

needsleep 05-21-2011 04:51 PM

lvm "command not found" on centos 5.6
 
lvm command returns "command not found".
I have the GUI lvm and it runs.

Package manager shows
lvm2-2.02.74-5.el5_6.1.i386 installed as well as the gui lvm.

> which lvm (gives no hits)

So where does lvm live and how do I add it to the search path?

thanks,

acid_kewpie 05-21-2011 05:02 PM

it'll be in /sbin, and the usual reason ou don't find things there is not sudo / su-ing correctly and not picking up roots path properly. in a terminal as a normal user, run "sudo -i" or "su -" to get a full root environment.

needsleep 05-21-2011 05:15 PM

I continue to work on this until either solved by self or forum input solves it.

Using forum search prior to posting, no hits. Using google search, found hits within linuxquestions site pertaining to problem.

one hit suggested i look in /sbin. doing so, I find a link to lvm.static

when I run these:
>which lvm
and
>whence lvm
neither lists /sbin in their search paths.

not sure how to add to that search path yet, nor if it is wise to add /sbin to it.

I can run what appears to be an interactive version (subshell initiates) of lvm, if I'm in /sbin, using,
> ./lvm

definitely in lvm - pvs command shows a physical volume list.

This solves my immediate problem - how to start lvm.


I'll forgo answers to remaining questions for now:
whether to add /sbin to my search path and how to add it.

needsleep 05-21-2011 05:18 PM

Sorry my page did not refesh and missed reply by acid_kewpie. Thanks for the help. You were correct.


All times are GMT -5. The time now is 12:55 AM.