Bug 158732

Summary: devlabel do not remove symlinks to nonexisting (multipath) devices
Product: Red Hat Enterprise Linux 3 Reporter: Kari Hurtta <hurtta+redhat-bugzilla>
Component: devlabelAssignee: Karel Zak <kzak>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.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: 2006-11-29 12:28:08 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 Flags
example none

Description Kari Hurtta 2005-05-25 11:02:42 UTC
Description of problem:

devlabel reload do not remove symlinks to nonexiting devices.
It only prints 

The device /dev/sdg no longer seems to exist.  Because of this, the
symlink /dev/san/s1sanmsa1500_gomos -> /dev/sdg will not be available. The reference
to this symlink in /etc/sysconfig/devlabel will be ignored.

After reboot when devices are reassigned that symbol link
point to wrong device.


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

[hurtta@smb2 hurtta]$ rpm -q devlabel
devlabel-0.48.03-10
[hurtta@smb2 hurtta]$


How reproducible:

- make symlink to multipath device with devlabel
- make all paths to device fail
- reboot or run 'devlabel reload'
- notice that symlink is still kept.

Comment 1 Kari Hurtta 2005-05-25 11:02:42 UTC
Created attachment 114819 [details]
example

Comment 2 Karel Zak 2005-10-11 14:18:13 UTC
Please, I would like to see result of:

  cat /proc/partitions | awk {'print $1" "$2" "$3" "$4'}

before "devlabel reload" in situation when the path to device is not valid. 

By the way, devlabel reports many things (by syslog) to your system logs.

Comment 3 Radek Vokál 2006-11-29 12:28:08 UTC
I'm closing this issue due to 1 year inactivity. Please reopen if you still
experience the described problems.