Re: Confusion over LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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@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@atlantis mpeters]# su -
[root@atlantis ~]# which pvcreate
/usr/sbin/pvcreate
[root@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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux