Other what happened with one same disk of geom name isn't same with gpart show name ?

dear all:
i have got a problem with disk name in freebsd 14. below is info .
geom disk list output :
Geom name: nda0
Providers:
1. Name: nda0
Mediasize: 512110190592 (477G)
Sectorsize: 512
Mode: r1w1e3
descr: KBG50ZNS512G NVMe KIOXIA 512GB

gpart show output :
=> 34 1000215149 diskid/DISK-82VC71X3E6CK GPT (477G)
34 2014 - free - (1.0M)
2048 204800 1 efi (100M)
206848 32768 2 ms-reserved (16M)
239616 412403712 3 ms-basic-data (197G)
412643328 2097152 7 efi (1.0G)
414740480 33554432 4 freebsd-swap (16G)
448294912 551920271 6 freebsd-zfs (263G)

,when i run command gpart show nda0 , output in below.
gpart show nda0
gpart: No such geom: nda0.

# gpart show diskid/DISK-82VC71X3E6CK
=> 34 1000215149 diskid/DISK-82VC71X3E6CK GPT (477G)
34 2014 - free - (1.0M)
2048 204800 1 efi (100M)
206848 32768 2 ms-reserved (16M)
239616 412403712 3 ms-basic-data (197G)
412643328 2097152 7 efi (1.0G)
414740480 33554432 4 freebsd-swap (16G)
448294912 551920271 6 freebsd-zfs (263G)


why the geom name isnot same with gpart show name with same disk ?
how to modify gpart show name to be geom name ?
i just want to use the short name nda0 in gpart command, not diskid/DISK-82VC71X3E6CK .

any one can help me ? thanks.
 
Output of following:
sysctl -a | grep -i label | grep -i geom
ls -l /dev/nda0

In general this is probably "GEOM withering"; something has mounted the device using /dev/diskid/DISK-82VC71X3E6CK which makes the node /dev/nda0 disappear.
 
Output of following:
sysctl -a | grep -i label | grep -i geom
ls -l /dev/nda0

In general this is probably "GEOM withering"; something has mounted the device using /dev/diskid/DISK-82VC71X3E6CK which makes the node /dev/nda0 disappear.
Dear mer:
i find zpool status list the diskid/DISK-82VC71X3E6CK. how to change it to nda0 ? thanks.
 
Dear mer:
i find zpool status list the diskid/DISK-82VC71X3E6CK. how to change it to nda0 ? thanks.
That will do it. That implies when the zpool was created the command used the diskid label.
As root if you do "zpool history" you get all the commands ever done to pool; first one should be how it was created.

Now what T-Daemon shows is how you would turn off the diskid labeling; I don't know if that would affect how the zpool gets mounted. If nda0 has your zroot on it, I would be careful about blindly turning off the disk labels.
I've moved things around but my devices were mirrored so it was trivial to detach one device, then reattach using a gpt label, wait for resilver, then repeat with the other device.

A zpool with a single device? Maybe booting into a live image one could do it.
 
Back
Top