LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 07-27-2009, 07:21 AM   #1
fizeelinux
Member
 
Registered: Nov 2008
Posts: 91

Rep: Reputation: 15
LVM commands not found


Hi all,

I am trying to work around LVM commands in CENTOS 5.3.But when i type pvdisplay vgdisplay or pvdisplay none of the commands are working.i installed lvm2 package also but still no result in favour.i also installed gui utility.Typing system-config-lvm goes to a window which displays my harddisk partition but i am not able to do anything.Have i missed anything.Does lvm requires any package.Please help me on this.Thanks in advance

Last edited by fizeelinux; 07-27-2009 at 07:31 AM.
 
Old 07-27-2009, 07:38 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 53
This may be a silly question, but are you trying to run the lvm commands as root?
If not, you need to.
 
Old 07-27-2009, 07:39 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,361

Rep: Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910
You need root privileges to run lvm commands. Regarding the lvm dependencies, if you have installed it through yum, it should have taken care of them automatically. Anyway, here is a list from my CentOS box:
Code:
# yum deplist lvm2 | grep provider | sort -u
   provider: bash.i386 3.2-24.el5
   provider: device-mapper-event.i386 1.02.28-2.el5
   provider: device-mapper.i386 1.02.28-2.el5
   provider: glibc.i386 2.5-34
   provider: glibc.i686 2.5-34
   provider: libselinux.i386 1.33.4-5.1.el5
   provider: libsepol.i386 1.15.2-1.el5
   provider: lvm2.i386 2.02.40-6.el5
   provider: ncurses.i386 5.5-24.20060715
   provider: readline.i386 5.1-1.1
 
Old 07-27-2009, 11:18 PM   #4
fizeelinux
Member
 
Registered: Nov 2008
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
You need root privileges to run lvm commands. Regarding the lvm dependencies, if you have installed it through yum, it should have taken care of them automatically. Anyway, here is a list from my CentOS box:
Code:
# yum deplist lvm2 | grep provider | sort -u
   provider: bash.i386 3.2-24.el5
   provider: device-mapper-event.i386 1.02.28-2.el5
   provider: device-mapper.i386 1.02.28-2.el5
   provider: glibc.i386 2.5-34
   provider: glibc.i686 2.5-34
   provider: libselinux.i386 1.33.4-5.1.el5
   provider: libsepol.i386 1.15.2-1.el5
   provider: lvm2.i386 2.02.40-6.el5
   provider: ncurses.i386 5.5-24.20060715
   provider: readline.i386 5.1-1.1

Thanks for the reply

I run the command what you have specified and the result is the same

[root@bugs guest]# yum deplist lvm2 | grep provider | sort -u
provider: bash.i386 3.2-24.el5
provider: device-mapper-event.i386 1.02.28-2.el5
provider: device-mapper.i386 1.02.28-2.el5
provider: glibc.i386 2.5-34
provider: glibc.i686 2.5-34
provider: libselinux.i386 1.33.4-5.1.el5
provider: libsepol.i386 1.15.2-1.el5
provider: lvm2.i386 2.02.40-6.el5
provider: ncurses.i386 5.5-24.20060715
provider: readline.i386 5.1-1.1

[root@bugs guest]# which pvdisplay
/usr/bin/which: no pvdisplay in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/guest/bin)

[root@bugs guest]# which lvdisplay
/usr/bin/which: no lvdisplay in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/guest/bin)

[root@bugs guest]# pvdisplay
bash: pvdisplay: command not found

I am trying as root only.Any ideas.
 
Old 07-28-2009, 12:03 AM   #5
tequilatram
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
I don't see /sbin in your search path.
I think that is where you will find the LVM utilities ...

-Tram
 
Old 07-28-2009, 01:37 AM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,361

Rep: Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910
Quote:
Originally Posted by fizeelinux View Post
/usr/bin/which: no pvdisplay in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/guest/bin)
This is not the root's PATH. Have you used
Code:
su -
to login as root? If you omit the - sign, the environment of the current user is preserved.

Edit: Sorry for redundancy, I didn't see the post from tequilatram!

Last edited by colucix; 07-28-2009 at 01:38 AM.
 
Old 07-28-2009, 04:00 AM   #7
fizeelinux
Member
 
Registered: Nov 2008
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
This is not the root's PATH. Have you used
Code:
su -
to login as root? If you omit the - sign, the environment of the current user is preserved.

Edit: Sorry for redundancy, I didn't see the post from tequilatram!
Problem got solved..Thank you very much.Problem is i typed su instead of su -....Thanks a lot
 
Old 07-28-2009, 04:01 AM   #8
fizeelinux
Member
 
Registered: Nov 2008
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tequilatram View Post
I don't see /sbin in your search path.
I think that is where you will find the LVM utilities ...

-Tram
Thanks for the reply .
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: AIX Unix LVM Destruction Commands. Part Two of Two. LXer Syndicated Linux News 1 07-06-2008 09:15 PM
LXer: Monitoring and Display Commands For LVM On Linux And Unix LXer Syndicated Linux News 0 06-11-2008 02:50 PM
LVM VolGroup00 not found dramdayal Linux - General 4 01-21-2008 10:34 AM
Did using LVM commands erase existing data? laxisusous Fedora 13 06-08-2006 12:37 PM
LVM problems (VGs found, but not LVs) jimisola Linux - Software 2 12-11-2005 11:59 AM


All times are GMT -5. The time now is 07:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration