-bash: pvcreate: command not found处理方法

环境:Red Hat 7.7

一、问题说明

在执行pvdisplay时有如下报错

# pvdisplay
-bash: pvdisplay: command not found

二、扩展

当linux中没有安装LVM工具时会出现以下错误

-bash: pvcreate: command not found
-bash: pvscan: command not found
-bash: pvdisplay: command not found
-bash: pvremove: command not found
-bash: vgcreate: command not found
-bash: vgscan: command not found
-bash: vgdisplay: command not found
-bash: lvcreate: command not found
-bash: lvscan: command not found
-bash: lvdisplay: command not found...

三、处理方法

安装lvm工具

# ll *lvm2*
-r--r--r--. 1 root root 1371408 Aug  8  2019 lvm2-2.02.185-2.0.1.el7.x86_64.rpm
-r--r--r--. 1 root root 1127148 Aug  8  2019 lvm2-libs-2.02.185-2.0.1.el7.i686.rpm
-r--r--r--. 1 root root 1129864 Aug  8  2019 lvm2-libs-2.02.185-2.0.1.el7.x86_64.rpm
-r--r--r--. 1 root root  320864 Aug  8  2019 lvm2-python-boom-0.9-18.0.1.el7.noarch.rpm
-r--r--r--. 1 root root  190752 Aug  8  2019 lvm2-python-libs-2.02.185-2.0.1.el7.x86_64.rpm
-r--r--r--. 1 root root   61932 Jun 10  2019 udisks2-lvm2-2.7.3-9.el7.x86_64.rpm

# yum -y install lvm2-2.02.185-2.0.1.el7.x86_64.rpm

安装完成后,再次执行pvdisplay时,不会出现“-bash: pvcreate: command not found”报错。

你可能感兴趣的:(Linux,linux)