SUSE Support

Here When You Need Us

iSCSI devices are not automatically mounted when using multipath in fstab

This document (3511763) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 10 SP1

Situation

Adding iSCSI multipath devices to /etc/fstab will not automatically mount on system boot.
After the system is booted you can successfully mount the device.

Resolution

This is fixed in SLES 10 SP2.

For SLES 10 SP1 here is the necessary information:
Problem here is the multipath setup.


In /etc/udev/rules.d/85-mount-fstab.rules you'll find:
 
# check fstab and possibly mount

SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh"

So we'll only do an automated mount for 'sd' and 'hd' devices; and as multipath devices are 'dm-X' they won't be mounted automatically.
To fix this add dm-* so they will mount automatically.
EXAMPLE:
Entry in /etc/fstab for multipath iSCSI device (hotplug option is needed).
 
/dev/disk/by-uuid/c346ca01-3deb-4b44-8b1f-afa28b86a182 /iscsidata reiserfs acl,user_xattr,hotplug 0 2

Complete /etc/udev/rules.d/85-mount-fstab.rules file ( we added |dm-* )
 
# check fstab and possibly mount

SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]|dm-*", RUN+="mount.sh"

Additional Information

For more information on mounting iSCSI see the following link.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3511763
  • Creation Date: 27-Nov-2007
  • Modified Date:16-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.