Bug 220405
| Summary: | unable to change the rw permissions of an active cluster mirror | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Cluster Suite | Reporter: | Corey Marthaler <cmarthal> | ||||
| Component: | cmirror | Assignee: | Jonathan Earl Brassow <jbrassow> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Cluster QE <mspqa-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4 | CC: | agk, cfeist, dwysocha, jbrassow, mbroz, prockai | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-08-05 21:25:02 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Corey Marthaler
2006-12-20 23:47:14 UTC
FWIW, this works just fine in single mode mirrors. [root@link-08 ~]# lvscan ACTIVE '/dev/corey/mirror' [100.00 MB] inherit [root@link-08 ~]# lvs -a -o +devices LV VG Attr LSize Origin Snap% Move Log Copy% Devices mirror corey mwi-a- 100.00M mirror_mlog 100.00 mirror_mimage_0(0),mirror_mimage_1(0) [mirror_mimage_0] corey iwi-ao 100.00M /dev/sdb1(0) [mirror_mimage_1] corey iwi-ao 100.00M /dev/sdc1(0) [mirror_mlog] corey lwi-ao 4.00M /dev/sdh1(0) [root@link-08 ~]# lvchange -pr /dev/corey/mirror Logical volume "mirror" changed [root@link-08 ~]# lvdisplay --- Logical volume --- LV Name /dev/corey/mirror VG Name corey LV UUID pGzHZ7-1Xar-PLTV-cuRb-3hcm-LXOq-p1u3Ry LV Write Access read only LV Status available # open 0 LV Size 100.00 MB Current LE 25 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:5 Not going into RHEL 4.5. To change permissions on a device mapper device, the table must be reloaded. Cluster mirroring prevents reloads of identical tables. The fix for this would involve kernel changes (and associated userspace changes) and is not possible for 4.5. There is a workaround though. Deactivate the mirror, change the permissions, then reactivate. Also, we can do better in terms of error reporting. That is something that can be done for RHEL 4.5. This is what it prints now. [root@neo-04 ~]# lvchange -p r vg/lv Permissions for mirrored logical volume "lv" cannot be changed while active. The clearing of bug 228104 has also removed the restrictions on changing permission while a cluster mirror is active... There is no more need for the patch that prevents this action (comment 4). Created attachment 150272 [details]
Patch to allow permission changes on active cluster mirrors
Fix verified in lvm2-cluster-2.02.21-3.el4/cmirror-kernel-2.6.9-30.0. Marking verified. Fixing as this bug has been fixed in the latest cmirror release. |