Bug 1023630

Summary: systemd error : dev-disk-by\x2dpartlabel-primary.device
Product: [openSUSE] openSUSE Distribution Reporter: Jean-Claude Dole <jcdole>
Component: BasesystemAssignee: systemd maintainers <systemd-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aschnell, jason.evans, mkoutny, tiwai
Version: Leap 42.2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 42.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jean-Claude Dole 2017-02-05 12:12:11 UTC
Since 42.2 I got lot of errors of this king :

dev-disk-by\x2dpartlabel-primary.device: Dev dev-disk-by\x2dpartlabel-primary.device appeared twice with different sysfs paths 
/sys/devices/pci0000:00/0000:00:1f.2/ata3/host4/target4:0:0/4:0:0:0/block/sdc/sdc1 and /sys/devices/pci0000:00/0000:00:1f.2/ata3/host4/target4:0:0/4:0:0:0/block/sdc/sdc2

Here is the output of lsblk

NAME    KNAME FSTYPE PARTTYPE                               SIZE MOUNTPOINT            LABEL          PARTLABEL MODEL            SERIAL UUID                                 PARTUUID
sda     sda                                               111,8G                                                Samsung SSD 850                                              
└─sda1  sda1  ext4   0x83                                    40G /                     SLASH_LINUX                                      e79be9e8-10c4-4edd-93f0-7639e56198c7 09c66a03-01
sdb     sdb                                               931,5G                                                WDC WD1001FALS-0                                             
├─sdb1  sdb1  xfs    ebd0a0a2-b9e5-4433-87c0-68b6b72699c7   120G /home                 HOME_USR_LNX   primary                           f4828664-3888-42be-8692-b6de56069f7d e9f2a204-ee96-4886-a59f-4ab09967f917
.....
.....
sdc     sdc                                               931,5G                                                WDC WD10EZEX-75Z                                             
├─sdc1  sdc1  xfs    ebd0a0a2-b9e5-4433-87c0-68b6b72699c7    40G /data_my_tmp1         MY_TMP1_LNX    primary                           2f23ab9a-0d1e-405b-a65d-abe36ddcf39e 72de16b6-762c-4a9e-b620-4dd1b0cdd59a
....

The problem is due to the PARTLABEL data.
On one computer (notepad asus g75vw)
sda (ssd disk) have one vfat efi partition and 3 ext4 partitions. All PARTLABEL are set to primary and give dev-disk-by error.
sdb have 15 xfs partitions. All PARTLABEL are set to Linux filesystem and give dev-disk-by error.
On another computer (desktop no name)
sda (ssd disk) have one ext4 partition. The PARTLABEL is empty. No error.
sdb,sdc,sdd,sde have all xfs partitions. All PARTLABEL are set to primary and give dev-disk-by error.

Have found on google that editing PARTLABEL and giving unique name solve the probleme.
So I am trying this and give news as soon as possible.
Comment 1 Jean-Claude Dole 2017-02-06 12:40:30 UTC
I confirm that naming partition (PARTLABEL) with unique name remove all error messages (dev-disk-by\x2dpartlabel-primary.device).

But yast2 don't give this possibility.
Need to use a third-party tools.
Comment 2 Takashi Iwai 2017-02-07 09:42:51 UTC
Not directly a kernel problem.  Reassigning...
Comment 4 Jason Evans 2017-03-17 12:24:35 UTC
So all one needs is to apply the patch https://github.com/systemd/systemd/commit/071e0b8b3a698e73bcaecba09ffccab5553d2365 to SuSE's systemd version.
Comment 5 Michal Koutný 2017-04-11 09:47:00 UTC
The patch has already been adopted in recent systemd releases. I'm thus closing this.

*** This bug has been marked as a duplicate of bug 1022047 ***