Mkfsbtrfs changes drive ID

Hello,

Fedora 40 KDE, been incognito here since Fedora 35 laptop.

First time working with btrfs.

The OS was installed on nvme1, after failing a mkfs.btrfs the OS shows on nvme2. - exibit A.
( the fail was using btrfs device add instead of mkfs.btrfs)

Succeeded with next attempt, but now the OS shows on nvme0. - exibit B

I didn’t even notice the change in exibit A, saved to notes to find a fix. (new drive went to /home)

Before I start subvols, partitions, and more drives, does this happen everytime with mkfs.btrfs?

  • exibit A
[z@arkaid ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme2n1p2  1.2T   62G  1.1T   6% /
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs            32G  103M   32G   1% /dev/shm
tmpfs            13G  2.1M   13G   1% /run
tmpfs            32G  8.0K   32G   1% /tmp
/dev/nvme2n1p1  974M  438M  469M  49% /boot
/dev/nvme2n1p2  1.2T   62G  1.1T   6% /home
/dev/sda        7.3T  569G  6.4T   9% /vault/Safe
tmpfs           6.3G  124K  6.3G   1% /run/user/1000

[z@arkaid ~]$ btrfs fi show
Label: none  uuid: 9a12a8ef-bd3c-4453-b55a-9ddd9e144306
	Total devices 2 FS bytes used 60.95GiB
	devid    1 size 215.01GiB used 100.02GiB path /dev/nvme2n1p2
	devid    2 size 953.87GiB used 0.00B path /dev/nvme1n1
  • exibit B
[z@arkaid ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  216G   62G  149G  30% /
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs            32G  203M   32G   1% /dev/shm
tmpfs            13G  2.2M   13G   1% /run
/dev/nvme0n1p2  216G   62G  149G  30% /home
tmpfs            32G  1.9M   32G   1% /tmp
/dev/nvme1n1p1  954G  5.8M  952G   1% /vault/closet
/dev/sda        7.3T  570G  6.3T   9% /vault/Safe
/dev/nvme0n1p1  974M  438M  469M  49% /boot
/dev/sdb1       1.9T  5.8M  1.9T   1% /vault/bunker
/dev/sdc1       1.9T  5.8M  1.9T   1% /vault/cellar
tmpfs           6.3G  136K  6.3G   1% /run/user/1000

[z@arkaid ~]$ btrfs fi show
Label: none  uuid: 9a12a8ef-bd3c-4453-b55a-9ddd9e144306
	Total devices 1 FS bytes used 61.06GiB
	devid    1 size 215.01GiB used 99.02GiB path /dev/nvme0n1p2

Label: 'Closet'  uuid: d0cbd7ea-a427-479b-b8be-a4cc9c9112e3
	Total devices 1 FS bytes used 144.00KiB
	devid    1 size 953.87GiB used 2.02GiB path /dev/nvme1n1p1

Label: 'Bunker'  uuid: 7de462c1-978a-4784-b219-df081fca9e2a
	Total devices 1 FS bytes used 144.00KiB
	devid    1 size 1.82TiB used 2.02GiB path /dev/sdb1

Label: 'Cellar'  uuid: b383660e-7b2e-4c3a-9dbc-d4c9d716ba98
	Total devices 1 FS bytes used 144.00KiB
	devid    1 size 1.82TiB used 2.02GiB path /dev/sdc1

Yes the uuid is the same, not to worried about boot. But I usually have an agenda with notes and I could of easily been reinstalling.

Everything is default settings, still learning best way forward with settings, permissions, groups and acl. I’ll try to keep my visits to a minimum.

Thanks in advance. zz

What were you doing when this failed?

Do you have failing hardware?

Added btrfs

The fail was me, I used btrfs device add, so of coarse it went to OS /home. Exihibit B was the goal, just need to know if drive id’s change when adding a btrfs file system.

I’ll edit post to be more informative.

Thx for response

Better to reply with the updated info as editing the original post makes threads harder to understand.