Bug 1038818
Summary: | systemctl enable cmirrord/clvmd currently uses chkconfig - provide systemd units for control as an alternative to OCF file | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
lvm2 sub component: | Default / Unclassified | QA Contact: | cluster-qe <cluster-qe> |
Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
Severity: | high | ||
Priority: | unspecified | CC: | agk, dmach, heinzm, jbrassow, mnovacek, msnitzer, nperic, prajnoha, prockai, riehecky, thornber, zkabelac |
Version: | 7.0 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.02.105-5.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 12:53:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 829308, 883874, 1080147 |
Description
Corey Marthaler
2013-12-05 21:22:50 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... *** Bug 1044672 has been marked as a duplicate of this bug. *** 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 (This is really a duplicate of 829308 now) Pushed upstream. Bug #1044677 + these patches for cmirrord part: https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=ef91de2a0cc29dd66a93fc4fb0c873d67328dc7d https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=a092cd33be13229b288ab44fb39e410c1ca57175 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. Let's consider 7.1 for the clvmd/cmirrord systemd units (this may end up closed if there's no actual need from customers). *** Bug 1044677 has been marked as a duplicate of this bug. *** 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. *** Bug 886916 has been marked as a duplicate of this bug. *** 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). (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. 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. 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) 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 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. |