You are not logged in.

#26 2015-07-04 20:14:53

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [S] Systemd device dev-disk-by\{stuff} appeared twice with sysfs diff

I was on the btrfs gotcha page and came across something that may be related.

Do not make a block-level copy of a btrfs filesystem to a block device, and then try to mount either the original or the copy while both are visible to the same kernel.
.
.
.
This problem is due to the UUID on the original and the copy being the same. This confuses the kernel, and it can end up writing updates to the wrong filesystem, causing massive data corruption.

Offline

#27 2015-07-05 04:09:46

severach
Member
Registered: 2015-05-23
Posts: 192

Re: [S] Systemd device dev-disk-by\{stuff} appeared twice with sysfs diff

That looks like a different problem. Copying GPT partitions with sgdisk creates a duplicate by-partlabel or by-partuuid. zfs and btrfs copy the contents whatever way they want. Copying an entire disk including contents will bypass btrfs internal management of by-uuid and create duplicates.

Offline

#28 2015-07-05 21:03:13

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [S] Systemd device dev-disk-by\{stuff} appeared twice with sysfs diff

I'm just throwing it out there. Yeah, I agree that is it's own issue, but there is a bit of similarity there. Where there is similarity, there is reason to consider it.

I'm not changing this from solved, nor am I worried. Still. Something to think about.

Offline

#29 2016-03-21 03:43:03

joksnet
Member
From: Paris, France
Registered: 2010-11-21
Posts: 5

Re: [S] Systemd device dev-disk-by\{stuff} appeared twice with sysfs diff

The problem is with the partlabel, not the label:

% lsblk -o NAME,PARTLABEL
NAME     PARTLABEL
sda      
├─sda1   Linux filesystem
├─sda2   Linux filesystem
├─sda3   Linux /home
│ └─home 
└─sda4   Linux swap

I used `cgdisk` option `m` as @paneless suggested.


Juan Manuel

Offline

#30 2016-03-21 03:51:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: [S] Systemd device dev-disk-by\{stuff} appeared twice with sysfs diff

joksnet, you've been here long enough to know not to necrobump, especially a solved thread.

Offline

#31 2016-03-21 05:38:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [S] Systemd device dev-disk-by\{stuff} appeared twice with sysfs diff

Closing.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB