What is role of blk-availability service with non-mirrored LVM2 devices?

Latest response

RHEL 6.x with LVM2.

A comment in /etc/init.d/blk-availability says, "This file is part of LVM2. It is required for the proper handling of failures of LVM2 mirror devices that were created using the -m option of lvcreate."

If none of my LVM2 devices are mirrored, do I still need to enable the blk-availability service?

Responses

Looking at the script itself I don't think the description is completely accurate.

The script only calls a command on shutdown 'blkdeactivate' and it passes options to essentially unmount all mounted logical volumes, regardless of if they are in a mirror or not.

There is a basic answer here:
https://access.redhat.com/site/solutions/321183

My suggestion would be to leave it because it doesn't leave anything running on boot (ie. no impact to running OS resources) and interacts with non mirrored LVs on shutdown.

An excellent suggestion, thank you.

Yes, the comment in the blk-availability script was not correct. I'm sorry for that. I've fixed that upstream and this change will get into RHEL packages too.

Upstream patch fixing the comment: https://www.redhat.com/archives/lvm-devel/2016-November/msg00090.html

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.