RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1038818 - systemctl enable cmirrord/clvmd currently uses chkconfig - provide systemd units for control as an alternative to OCF file
Summary: systemctl enable cmirrord/clvmd currently uses chkconfig - provide systemd un...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
: 886916 1044672 1044677 (view as bug list)
Depends On:
Blocks: 829308 883874 1080147
TreeView+ depends on / blocked
 
Reported: 2013-12-05 21:22 UTC by Corey Marthaler
Modified: 2021-09-08 20:28 UTC (History)
12 users (show)

Fixed In Version: lvm2-2.02.105-5.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:53:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2013-12-05 21:22:50 UTC
Description of problem:
These should not be using the backwards compatible chkconf for enable/disable in rhel7.

[root@virt-123 ~]# systemctl enable cmirrord.service
cmirrord.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig cmirrord on

[root@virt-123 ~]# systemctl enable clvmd.service
clvmd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig clvmd on


Version-Release number of selected component (if applicable):
3.10.0-54.el7.x86_64

lvm2-2.02.103-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013
lvm2-libs-2.02.103-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013
lvm2-cluster-2.02.103-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013
device-mapper-1.02.82-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013
device-mapper-libs-1.02.82-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013
device-mapper-event-1.02.82-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013
device-mapper-event-libs-1.02.82-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013
device-mapper-persistent-data-0.2.8-2.el7    BUILT: Wed Oct 30 16:20:48 CET 2013
cmirror-2.02.103-6.el7    BUILT: Wed Nov 27 09:28:25 CET 2013


How reproducible:
Everytime

Comment 2 Peter Rajnoha 2013-12-06 08:26:44 UTC
(In reply to Corey Marthaler from comment #0)
> Description of problem:
> These should not be using the backwards compatible chkconf for
> enable/disable in rhel7.
> 

Yes if they're still initscripts and not native systemd units :) We still need to migrate them...

Comment 3 Corey Marthaler 2013-12-18 19:50:55 UTC
*** Bug 1044672 has been marked as a duplicate of this bug. ***

Comment 4 Corey Marthaler 2014-01-24 22:08:22 UTC
Still not in the latest rpms.

[root@host-050 ~]# systemctl enable cmirrord.service
cmirrord.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig cmirrord on
[root@host-050 ~]# systemctl enable clvmd.service
clvmd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig clvmd on

lvm2-2.02.105-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014
lvm2-libs-2.02.105-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014
lvm2-cluster-2.02.105-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014
device-mapper-1.02.84-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014
device-mapper-libs-1.02.84-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014
device-mapper-event-1.02.84-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014
device-mapper-event-libs-1.02.84-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014
device-mapper-persistent-data-0.2.8-3.el7    BUILT: Fri Dec 27 13:40:56 CST 2013
cmirror-2.02.105-1.el7    BUILT: Wed Jan 22 07:34:15 CST 2014

Comment 5 Alasdair Kergon 2014-01-30 19:23:53 UTC
(This is really a duplicate of 829308 now)

Comment 7 Peter Rajnoha 2014-02-13 08:37:23 UTC
After a discussion with cluster/pacemaker team, we've decided to provide a native pacemaker resources for clvmd/cmirrord (packaged in resource-agents package) which makes the management under pacemaker much easier.

Since cluster resource management with pacemaker is the only supported way of cluster management under RHEL7, the systemd units are not necessary now. We can still provide them as an option for anyone setting up the cluster without resource-agents/pacemaker though, but let's consider this option for later release (7.1...) so it does not cause confusion which service to use (systemd one?/resource-agents one?) and we push people to use the official one directly.

For inclusion of the clvmd/cmirrord resource file into the resource-agents, see bz #1064512.

Comment 8 Peter Rajnoha 2014-02-13 08:39:39 UTC
Let's consider 7.1 for the clvmd/cmirrord systemd units (this may end up closed if there's no actual need from customers).

Comment 9 Peter Rajnoha 2014-02-13 08:47:14 UTC
*** Bug 1044677 has been marked as a duplicate of this bug. ***

Comment 10 Peter Rajnoha 2014-02-18 09:17:21 UTC
OK, after a more discussion, we've decided it may be worthwile to consider this for RHEL 7.0 since there are people using standalone clustering without resource managers. This is also handy when trying to debug clustering problems and isolating the problem and running the services without cluster resource manager.

Since the clvmd and cmirrord instances will be managed by resource-agents/pacemaker now (bz #1064512), the systemd units to start/stop these instances are not a firm requirement now but become optional for people running the cluster without cluster resource manager - people may still make use of the systemd units as an alternative.

We can add these systemd units for such alternative functionality in separate packages, I'm suggesting:

  - lvm2-cluster-standalone (to include systemd units for clvmd control)
  - cmirror-standalone (to include systemd units for cmirror control)

These packages are not meant to be required by any other packages and they should be put in the "Optional" channel in the RHEL7 repo.

Comment 11 Peter Rajnoha 2014-02-19 13:23:52 UTC
*** Bug 886916 has been marked as a duplicate of this bug. ***

Comment 12 Peter Rajnoha 2014-02-21 10:49:15 UTC
The old clvmd/cmirrord initscripts were moved to lvm2-sysvinit subpacakge (where all the obsolete initscripts are), new and *optional* systemd units for clvmd/cmirrord and clustered LV activation are now in lvm2-cluster-standalone/cmirror-standalone subapackages (for testing purposes primarily).

The lvm2-cluster and cmirror subpackages now require the resource-agents package that contains the OCF file to manage clvmd/cmirrord as a cluster resource (the official way).

Comment 15 Peter Rajnoha 2014-02-27 13:38:12 UTC
(In reply to Peter Rajnoha from comment #10)
> These packages are not meant to be required by any other packages and they
> should be put in the "Optional" channel in the RHEL7 repo.

Finally, we've put lvm2-cluster-standalone in the same variant as lvm2-cluster package, the same applies for cmirror-standalone package. See also bug #1069500 comment #4 and bug #1069500 comment #5.

Comment 16 Peter Rajnoha 2014-03-11 14:50:17 UTC
I've also added a content for preupgrade-assistant to evaluate current lvm2 cluster state in RHEL6 and if upgrading to RHEL7 while locking_type=3 is used and clvmd/cmirrord service is enabled, the preupgrade-assistant will provide a solution text which gives the user an advice to use the 'clvm' cluster resource instead.

Comment 17 Peter Rajnoha 2014-03-31 12:31:42 UTC
To QA: to test this, you'll need (on all the cluster nodes forming a cluster):

  - to disable/remove clvm cluster resource so the clvmd/cmirrord is not managed by the cluster resource manager

  - to install lvm2-cluster-standalone and cmirror-standalone in addition to install the systemd units for clvmd and cmirrord

  - to enable the appropriate units:
     systemctl enable lvm2-cluster-activation.service (this will automatically start the lvm2-clvmd.service)
     systemctl enable lvm2-cmirrord.service

  - then reboot the whole cluster and see if all clustered LVM is activated and cluster mirrors work (simply, the clvmd and cmirrord is running)

Comment 18 Nenad Peric 2014-03-31 14:07:37 UTC
The cluster resources for managing LVM were disabled (including dlm), and standalone opackaghes were installed. 

They were then enabled by:

systemctl enable lvm2-cmirrord
systemctl enable lvm2-cluster-activation.service (this has clvmd and dlm)

You can still call systemctl enable cmirrord but it will fail with an error, since there is no unit which can be installed/enabled in systemd with this name. 
If standalone packages are used, only the above two services/units are valid. 

The system reboots cleanly and all cluster LVs which can be activated on boot, are. 


Tested with:

cmirror-standalone-2.02.105-14.el7.x86_64.rpm  
lvm2-cluster-standalone-2.02.105-14.el7.x86_64.rpm

Comment 19 Ludek Smid 2014-06-13 12:53:24 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.