Thursday, May 25, 2023

How to install lvm in Linux ? - Error -

 bash: pvcreate: command not found


Login as root user :


[root@10.1.1.1]#

[root@10.1.1.1]# pvcreate /dev/xvdf1

bash: pvcreate: command not found

[root@10.1.1.1]#

[root@10.1.1.1]#







[root@10.1.1.1]# yum install lvm2

Updating Subscription Management repositories.

Unable to read consumer identity


This system is not registered with an entitlement server. You can use subscription-manager to register.


Last metadata expiration check: 0:05:27 ago on Wed 24 May 2023 10:44:45 PM IST.

Dependencies resolved.

=================================================================================================================================================

 Package                                      Architecture          Version                         Repository                              Size

=================================================================================================================================================

Installing:

 lvm2                                         x86_64                8:2.03.14-9.el8                 rhel-8-baseos-rhui-rpms                1.7 M

Installing dependencies:

 device-mapper-event                          x86_64                8:1.02.181-9.el8                rhel-8-baseos-rhui-rpms                272 k

 device-mapper-event-libs                     x86_64                8:1.02.181-9.el8                rhel-8-baseos-rhui-rpms                271 k

 device-mapper-persistent-data                x86_64                0.9.0-7.el8                     rhel-8-baseos-rhui-rpms                938 k

 lvm2-libs                                    x86_64                8:2.03.14-9.el8                 rhel-8-baseos-rhui-rpms                1.2 M


Transaction Summary

=================================================================================================================================================

Install  5 Packages


Total download size: 4.3 M

Installed size: 9.7 M

Is this ok [y/N]: y

Downloading Packages:

(1/5): device-mapper-event-libs-1.02.181-9.el8.x86_64.rpm                                                        4.4 MB/s | 271 kB     00:00

(2/5): device-mapper-persistent-data-0.9.0-7.el8.x86_64.rpm                                                       12 MB/s | 938 kB     00:00

(3/5): device-mapper-event-1.02.181-9.el8.x86_64.rpm                                                              13 MB/s | 272 kB     00:00

(4/5): lvm2-2.03.14-9.el8.x86_64.rpm                                                                              29 MB/s | 1.7 MB     00:00

(5/5): lvm2-libs-2.03.14-9.el8.x86_64.rpm                                                                        7.8 MB/s | 1.2 MB     00:00

-------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                             24 MB/s | 4.3 MB     00:00

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                                                                                         1/1

  Installing       : device-mapper-event-libs-8:1.02.181-9.el8.x86_64                                                                        1/5

  Installing       : device-mapper-event-8:1.02.181-9.el8.x86_64                                                                             2/5

  Running scriptlet: device-mapper-event-8:1.02.181-9.el8.x86_64                                                                             2/5

  Installing       : lvm2-libs-8:2.03.14-9.el8.x86_64                                                                                        3/5

  Installing       : device-mapper-persistent-data-0.9.0-7.el8.x86_64                                                                        4/5

  Installing       : lvm2-8:2.03.14-9.el8.x86_64                                                                                             5/5

  Running scriptlet: lvm2-8:2.03.14-9.el8.x86_64                                                                                             5/5

  Verifying        : device-mapper-persistent-data-0.9.0-7.el8.x86_64                                                                        1/5

  Verifying        : lvm2-libs-8:2.03.14-9.el8.x86_64                                                                                        2/5

  Verifying        : device-mapper-event-libs-8:1.02.181-9.el8.x86_64                                                                        3/5

  Verifying        : lvm2-8:2.03.14-9.el8.x86_64                                                                                             4/5

  Verifying        : device-mapper-event-8:1.02.181-9.el8.x86_64                                                                             5/5

Installed products updated.


Installed:

  device-mapper-event-8:1.02.181-9.el8.x86_64 device-mapper-event-libs-8:1.02.181-9.el8.x86_64 device-mapper-persistent-data-0.9.0-7.el8.x86_64

  lvm2-8:2.03.14-9.el8.x86_64                 lvm2-libs-8:2.03.14-9.el8.x86_64


Complete!

[root@10.1.1.1]#

[root@10.1.1.1]#

[root@10.1.1.1]#

[root@10.1.1.1]#

[root@10.1.1.1]#




No comments:

Post a Comment

About the Author : Anurag Pandey | Database cloud Architect | Oracle | SQL Server | PostgreSQL | AI and Data Platform Enthusiast

Anurag Pandey is a Database Architect with expertise in Oracle, PostgreSQL, SQL Server, Linux, and enterprise database platforms and specializes in database architecture, performance tuning, high availability, disaster recovery, cloud modernization, and operational excellence. With extensive experience in enterprise-scale environments, Anurag is passionate about leveraging AI, automation, and modern data platforms to improve reliability, scalability, and business outcomes. He actively contributes to technical communities through knowledge sharing, architecture guidance, and thought leadership in database and data engineering domains.

Follow more articles at

Visit Blog

Wish you happy diwali 2026