Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 153002

Summary: Logical volumes no longer group disk or g+rw in RHEL4
Product: Red Hat Enterprise Linux 4 Reporter: Need Real Name <redhat>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
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: 2005-03-31 21:38:32 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:

Description Need Real Name 2005-03-31 19:58:50 UTC
Description of problem:

In RHEL3 my logical volumes looked like:

ls -l /dev/Volume00/
total 0
brw-rw----    1 root     disk      58,   5 Dec 18 11:14 LogVol00
brw-rw----    1 root     disk      58,   0 Dec 18 11:14 LogVol01
brw-rw----    1 root     disk      58,   2 Dec 18 11:14 LogVol02
brw-rw----    1 root     disk      58,   3 Dec 18 11:14 LogVol03
brw-rw----    1 root     disk      58,   4 Dec 18 11:14 LogVol04
brw-rw----    1 root     disk      58,   1 Dec 18 11:14 LogVol05
crw-r-----    1 root     disk     109,   0 Dec 18 11:14 group

Now on a RHEL 4 system:

# ls -l /dev/mapper/
total 0
crw-------  1 root root  10, 63 Feb 23 09:55 control
brw-------  1 root root 253,  4 Feb 23 09:55 VolGroup00-LogVol00
brw-------  1 root root 253,  0 Feb 23 09:55 VolGroup00-LogVol01
brw-------  1 root root 253,  2 Feb 23 09:55 VolGroup00-LogVol02
brw-------  1 root root 253,  3 Feb 23 09:55 VolGroup00-LogVol03
brw-------  1 root root 253,  1 Feb 23 09:55 VolGroup00-LogVol04

This has the effect of breaking amanda as it its gid is disk and it needs at
least read permissions on the filesystem to use dump as uid/gid amanda/disk.

Version-Release number of selected component (if applicable):

lvm2-2.00.31-1.0.RHEL4

I'm filing this against lvm2 although perhaps anaconda would be better

How reproducible:

Always

Steps to Reproduce:
1. Install a new system with logical volumes
2. ls -l /dev/mapper
3.
  
Actual results:

ls -l /dev/mapper
total 0
crw-------  1 root root  10, 63 Feb 23 09:55 control
brw-------  1 root root 253,  4 Feb 23 09:55 VolGroup00-LogVol00
brw-------  1 root root 253,  0 Feb 23 09:55 VolGroup00-LogVol01
brw-------  1 root root 253,  2 Feb 23 09:55 VolGroup00-LogVol02
brw-------  1 root root 253,  3 Feb 23 09:55 VolGroup00-LogVol03
brw-------  1 root root 253,  1 Feb 23 09:55 VolGroup00-LogVol04


Expected results:

Something like RHEL3's:

ls -l /dev/Volume00/
total 0
brw-rw----    1 root     disk      58,   5 Dec 18 11:14 LogVol00
brw-rw----    1 root     disk      58,   0 Dec 18 11:14 LogVol01
brw-rw----    1 root     disk      58,   2 Dec 18 11:14 LogVol02
brw-rw----    1 root     disk      58,   3 Dec 18 11:14 LogVol03
brw-rw----    1 root     disk      58,   4 Dec 18 11:14 LogVol04
brw-rw----    1 root     disk      58,   1 Dec 18 11:14 LogVol05
crw-r-----    1 root     disk     109,   0 Dec 18 11:14 group

Additional info:

Is there any risk in me chgrp-ing/chmod-ing the devices by hand on RHEL4 so that
amanda will work again?

Comment 1 Alasdair Kergon 2005-03-31 21:38:32 UTC
Fixed by new device-mapper package in update 1.

Yes, until then, you can add commands to /etc/rc.local to chgrp/chmod them.
'control' is OK as it is - only root ever uses it.


*** This bug has been marked as a duplicate of 141050 ***