Confusion over LVM

Michael A. Peters mpeters at mac.com
Wed Jan 17 13:26:17 UTC 2007


On Wed, 2007-01-17 at 12:39 +0000, Andrew Wood wrote:
> Hi all,
> 
> Thanks for everyone who contributed suggestions, etc to my previous 
> query - see below.
> 
> However I seem to have a more fundamental problem in the CLI -
> bash - which reports that lvm commands commands aren't recognised. Any
> idea what on earth that could be? Sorry to appear so dumb!
> 
> For example:
> [root at localhost andrew]# pvcreate /dev/hdd
> bash: pvcreate: command not found
> 
> It's odd as command 'ls' is working fine, and when I run 'yum install
> lvm2' then that reports 'nothing to do'.

Check your path.
[root at atlantis mpeters]# which pvcreate
/usr/bin/which: no pvcreate in
(/usr/kerberos/sbin:/home/mpeters/cxo_bin:/home/mpeters/cxo_bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/mpeters/bin)
[root at atlantis mpeters]# su -
[root at atlantis ~]# which pvcreate
/usr/sbin/pvcreate
[root at atlantis ~]#

If you became root with just an "su" then you do not have root's path.
You have to use

su -

to get roots path.




More information about the fedora-list mailing list