LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2011, 05:51 PM   #1
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Rep: Reputation: 0
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,
 
Old 05-21-2011, 06:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 05-21-2011, 06:15 PM   #3
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Original Poster
Rep: Reputation: 0
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.
 
Old 05-21-2011, 06:18 PM   #4
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Original Poster
Rep: Reputation: 0
Sorry my page did not refesh and missed reply by acid_kewpie. Thanks for the help. You were correct.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] When I type "sudo grub" it says "command not found" in Ubuntu 9.10 Live CD. msbstar Linux - Newbie 9 07-17-2017 01:27 PM
[SOLVED] Errors executing shell script: "command not found" and "no such file or directory" eko000 Linux - Newbie 1 01-14-2011 08:54 AM
When I type "sudo grub" it says "command not found" in Ubuntu 10.10 poumtatalia Linux - Newbie 5 09-14-2010 06:21 PM
LFS6.3 livecd "ls : command not found" error after "su - lfs" rotu Linux From Scratch 2 06-19-2008 04:59 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration