name of SSD drive suddenly got renamed.

The name of my ssd drive was "/dev/nda0".
Now it's name is "/dev/diskid/DISK-22080H803652" & "/dev/nda0" has gone.
I only changed the bootloader to arch-grub linux.
Can i revert this ? E.g. with a sysctl setting ?
 
I suspect it's grub's doing, it probably refers to the disk by its diskid. Then kern.geom.label.gptid.enable and/or kern.geom.label.gptid.enable in loader.conf hides /dev/nda0.
 
Not grub, but more likely ZFS. Geom hides the aliases when one of them is opened. Since ZFS prefers disk IDs to simple names on pool creation, this is the side effect.

If you post a full dmesg i can confirm.
 
zfs/zpool continue working. It's like it does not care lot about device naming.
Changing "kern.geom.label.gptid.enable" looks dangerous as i want freebsd to continue to boot.
 
zfs/zpool continue working. It's like it does not care lot about device naming.
To my knowledge it does not. When it comes up or runs, it looks over all the attached block devices (with some rules).

Is there a handbook section that explains /dev/[a]daX versus /dev/gpt/xxx versus /dev/diskid/...?
 
… freebsd to continue to boot.

What's the value of the bootfs property of your boot pool?

Here, I have:

Code:
% zpool get bootfs august
NAME    PROPERTY  VALUE                        SOURCE
august  bootfs    august/ROOT/1500018-32-base  local
% bectl list -c creation | tail -n 10
1500018-23-base       -      -          164M  2024-04-21 15:42
1500018-24-ports      -      -          61.2M 2024-04-21 22:00
1500018-25-base       -      -          338M  2024-04-22 08:51
1500018-26-base       -      -          336M  2024-04-22 16:48
1500018-27-base       -      -          1.90G 2024-04-23 07:54
1500018-28-base       -      -          2.06G 2024-04-23 22:25
1500018-29-base-ports -      -          32.8M 2024-04-24 04:07
1500018-30-kde6       -      -          2.42G 2024-04-24 09:29
1500018-31-base       N      /          1.92G 2024-04-24 18:47
1500018-32-base       R      -          208G  2024-04-25 02:24
%
 
I have no line "kern.geom.label.gptid.enable" in loader.conf.


zpool get bootfs ZT2
Code:
NAME  PROPERTY  VALUE             SOURCE
ZT2   bootfs    ZT2/ROOT/default  local



The output of zpool list -v is :
Code:
NAME                                                 SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
OLDDISK                                              928G   752G   176G        -         -    23%    81%  1.00x    ONLINE  -
  sdc1                                               932G   752G   176G        -         -    23%  81.0%      -    ONLINE
ZT2                                                  462G   335G   127G        -      530G     0%    72%  1.00x    ONLINE  /ZT2
  ata-ST1000LM049-2GH172_WN959Y8P                    400G   328G  70.0G        -      530G     0%  82.4%      -    ONLINE
special                                                 -      -      -        -         -      -      -      -         -
  nvme-WDC_PC_SN540_SDDPNPF-512G-1032_22080H803652    64G  6.79G  56.7G        -      412G    54%  10.7%      -    ONLINE
logs                                                    -      -      -        -         -      -      -      -         -
  nvme-WDC_PC_SN540_SDDPNPF-512G-1032_22080H803652    64G   340K  63.5G        -      412G     0%  0.00%      -    ONLINE
cache                                                   -      -      -        -         -      -      -      -         -
  nvme0n1                                             64G  63.8G   154M        -         -     0%  99.8%      -    ONLINE
ZUSB3                                               4.55T  2.66T  1.88T        -         -     0%    58%  1.00x    ONLINE  -
  sdd1                                              4.55T  2.66T  1.88T        -         -     0%  58.5%      -    ONLINE
herman                                              2.11T   604G  1.52T        -     3.33T     0%    27%  1.00x    ONLINE  -
  sde                                               2.12T   604G  1.52T        -     3.33T     0%  27.9%      -    ONLINE
xxx                                                 36.5G  30.0G  6.54G        -      440G     1%    82%  1.00x    ONLINE  -
  nvme-WDC_PC_SN540_SDDPNPF-512G-1032_22080H803652  36.5G  30.0G  6.54G        -      440G     1%  82.1%      -    ONLINE
It's a strange and weird "mixture" ...
 
This looks to me you have OpenZFS pools imported on (Arch?)linux.

I only changed the bootloader to arch-grub linux.
The output of zpool list -v is :
Rich (BB code):
NAME      SIZE   ALLOC FREE CKPOINT EXPANDSZ FRAG     CAP   DEDUP  HEALTH ALTROOT
OLDDISK 928G 752G   176G      -            -               23%      81%  1.00x    ONLINE       -
  sdc1

ZUSB3    4.55T 2.66T   1.88T     -            -                0%       58% 1.00x      ONLINE       -
  sdd1

herman   2.11T 604G   1.52T    -         3.33T            0%       27% 1.00x      ONLINE       -
  sde
sdc1, sdd1, sde, those are Linux device naming.
 
Is there a handbook section that explains /dev/[a]daX versus /dev/gpt/xxx versus /dev/diskid/...?
Not in the handbook, but FreeBSD Mastery: Storage Essentials by Michael W Lucas has a good explaination.

/dev/gptid is based on the globally unique identifier attached to each gpart partition on creation
/dev/diskid is based on the disk serial number
/dev/gpt is based on any label given when creating the partition using gpart
/dev/mirror is based on GEOM mirror

And yes ZFS attaches it's own metadata
 
Back
Top