RHEL : lvm commands not working , receives "command not found"
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Issue
-
System unable to boot receives lvm errors and unable to find root filesystem.
-
Booting into rescue mode and executing
lvmcommand, it throws error
# lvs
-bash: lvs: command not found
[root@ ~]# lvdisplay
-bash: lvdisplay: command not found
- Server unable to boot with the below error
mount: special device /dev/xxx/xxxdg/data does not exist.
Resolution
- System seems to be missing the lvm binary files under /sbin folder .
- Reinstall the lvm2 package in rescue mode and check to see if all binaries are now made available in /sbin folder.
# yum reinstall lvm2
Root Cause
- lvdisplay display binaries were missing
#ls -al /sbin/lv*
ls: /sbin/lv*: No such file or directory
Diagnostic Steps
# which lvdisplay
/sbin/lvdisplay
#ls -al /sbin/lv*
ls: /sbin/lv*: No such file or directory
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
