How To Install lvm2-sysvinit.x86_64 on Amazon Linux 2

In this tutorial we learn how to install lvm2-sysvinit.x86_64 in Amazon Linux 2. lvm2-sysvinit.x86_64 is SysV style init script for LVM2.

Introduction

In this tutorial we learn how to install lvm2-sysvinit.x86_64 on Amazon Linux 2.

What is lvm2-sysvinit.x86_64

SysV style init script for LVM2. It needs to be installed only if systemd is not used as the system init process.

We can use yum to install lvm2-sysvinit.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install lvm2-sysvinit.x86_64.

Install lvm2-sysvinit.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install lvm2-sysvinit.x86_64 using yum by running the following command:

sudo yum -y install lvm2-sysvinit.x86_64

How To Uninstall lvm2-sysvinit.x86_64 on Amazon Linux 2

To uninstall only the lvm2-sysvinit.x86_64 package we can use the following command:

sudo yum remove lvm2-sysvinit.x86_64

lvm2-sysvinit.x86_64 Package Contents on Amazon Linux 2

/etc/rc.d/init.d/blk-availability
/etc/rc.d/init.d/clvmd
/etc/rc.d/init.d/cmirrord
/etc/rc.d/init.d/lvm2-lvmetad
/etc/rc.d/init.d/lvm2-lvmpolld
/etc/rc.d/init.d/lvm2-monitor

References

Summary

In this tutorial we learn how to install lvm2-sysvinit.x86_64 on Amazon Linux 2 using yum.