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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux