sosreport or parted causes umount when you have a device which has a same UUID/LABEL with other device

Solution In Progress - Updated -

Issue

When we run sosreport , we found it causes iscsi device umount.

it seems "parted" command called in sosreport causes it.

We confirmed this issue happens when we have a device which has a same UUID/LABEL with other device and only the device is used by UUID/LABEL in /etc/fstab.

# blkid | grep sd
/dev/sda1: UUID="82fe6f6b-7df0-4445-8fee-8ed4da307b07" TYPE="xfs" 
/dev/sdb1: UUID="82fe6f6b-7df0-4445-8fee-8ed4da307b07" TYPE="xfs" 


# grep UUID  /etc/fstab
UUID=82fe6f6b-7df0-4445-8fee-8ed4da307b07  /work   xfs     _netdev 0 0
# mount | grep sd
/dev/sda1 on /work type xfs (rw,relatime,seclabel,attr2,inode64,noquota,_netd

# parted -l

### you will see umount process happened  form messages..

# tail -f /var/log/message 
Nov  7 19:30:52 iscsiclient kernel: sdb: sdb1
Nov  7 19:30:52 iscsiclient systemd: Unmounting /work... <----------
Nov  7 19:30:52 iscsiclient kernel: XFS (sda1): Unmounting Filesystem
Nov  7 19:30:52 iscsiclient systemd: Unmounted /work.
Nov  7 19:30:53 iscsiclient systemd: Found device disk0 1.
Nov  7 19:30:53 iscsiclient systemd: Mounting /work...
Nov  7 19:30:53 iscsiclient kernel: XFS (sdb1): Mounting V5 Filesystem
Nov  7 19:30:54 iscsiclient kernel: XFS (sdb1): Ending clean mount

Environment

Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content