Re: [PATCH ] multipath: Fall back to getuid_callout if ID_SERIAL attribute is missing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/18/2014 02:17 AM, Merla, ShivaKrishna wrote:
  Sometimes whenever a path is added, scsi_id call during udev rule processing
  can fail and ID_SERIAL attribute will not be set. This causes multipathd to add
  the path as orphan. We have seen several instances of this happening during
  testing.

       Jun 17 10:14:43 ictm-vader multipathd[474]: sda: uid_attribute = ID_SERIAL (config file default)
       Jun 17 10:14:43 ictm-vader multipathd[474]: sda: no ID_SERIAL attribute
       Jun 17 10:14:43 ictm-vader multipathd[474]: sda: uid = <empty> (udev)
       Jun 17 10:14:43 ictm-vader multipathd[474]: sda: no ID_SERIAL attribute
       Jun 17 10:14:43 ictm-vader multipathd[474]: sda: uid = <empty> (udev)
       Jun 17 10:14:43 ictm-vader multipathd[474]: sda: failed to get path uid
       Jun 17 10:14:43 ictm-vader multipathd[474]: sda: orphan path, failed to add path

  This patch handles this case by allowing to fall back to explict getuid_callout
  incase if ID_SERIAL attribute is not set. This way support for deprecated
  getuid_callout is not lost for older versions where ID_SERIAL attribute is not
  present but also serves good purpose in the scenario mentioned above.

Signed-off-by: Shiva Krishna Merla<shivakrishna.merla@xxxxxxxxxx>

Hmm. I have a similar patch in my tree. Will be checking.

Cheers,

Hannes
--
Dr. Hannes Reinecke		      zSeries & Storage
hare@xxxxxxx			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux