Mount by UUID in fstab of multipath devices on non-root mountpoints impacts reliability of installed system

Bug #1851899 reported by Steve Langasek
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Committed
High
Ryan Harper

Bug Description

curtin currently constructs fstab entries for multipath devices in the target system using UUID as the reference to mount by. The filesystem UUID is by definition not a unique identifier for a device in multipath, since udev will show at least three devices with this UUID: minimum of 2 members, and the mpath device exposed via devmapper.

This is not a problem for the root filesystem, because in actuality /etc/fstab is never used for mounting the rootfs; the rootfs is mounted by the kernel commandline + the initrd, and the root value that curtin injects into the bootloader config (grub) for the kernel commandline uses the correct form instead.

However, if a user partitions a multipath-backed disk into multiple filesystems and mounts some of these at non-root locations, the mount of these devices will be racy and there is risk that an underlying device will be mounted instead of the intended multipath device. This means that the system will be adversely affected by storage path failures when by design it should not be.

Tags: multipath

Related branches

tags: added: multipath
Revision history for this message
Ryan Harper (raharper) wrote :
Changed in curtin:
importance: Undecided → High
status: New → Confirmed
Ryan Harper (raharper)
Changed in curtin:
status: Confirmed → In Progress
Revision history for this message
Ryan Harper (raharper) wrote :

What about iscsi device paths?

Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: [Bug 1851899] Re: Mount by UUID in fstab of multipath devices on non-root mountpoints impacts reliability of installed system

Will do one... I thought those also will have wwid names, no?! Will check.

On Tue, 10 Dec 2019, 14:55 Ryan Harper, <email address hidden> wrote:

> What about iscsi device paths?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1851899
>
> Title:
> Mount by UUID in fstab of multipath devices on non-root mountpoints
> impacts reliability of installed system
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/curtin/+bug/1851899/+subscriptions
>

Revision history for this message
Ryan Harper (raharper) wrote :

What about bcache devices?

Revision history for this message
Ryan Harper (raharper) wrote :

We've updated the wiki page for bcache and other devices.

Dan Watkins (oddbloke)
Changed in curtin:
assignee: nobody → Ryan Harper (raharper)
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

This bug is fixed with commit 941c43ff to curtin on branch master.
To view that commit see the following URL:
https://git.launchpad.net/curtin/commit/?id=941c43ff

Changed in curtin:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.