Below, how can a single partition have two labels?
The unwanted
The unwanted
LABEL label/demo
appears for da1p1
only after the device (a ZFS cache device) is physically: - disconnected
- reconnected without being taken online.
Code:
root@mowa219-gjp4-zbook-freebsd:~ # geom -t
Geom Class Provider
ada0 DISK ada0
ada0 DEV
ada0 PART ada0p1
ada0p1 DEV
ada0p1 LABEL gpt/efiboot0
gpt/efiboot0 DEV
ada0p1 LABEL msdosfs/EFISYS
msdosfs/EFISYS DEV
ada0 PART ada0p2
ada0p2 DEV
ada0p2 LABEL gpt/gptboot0
gpt/gptboot0 DEV
ada0 PART ada0p3
ada0p3 DEV
ada0p3.eli ELI ada0p3.eli
ada0p3.eli DEV
swap SWAP
ada0 PART ada0p4
ada0p4 DEV
ada0p4.eli ELI ada0p4.eli
ada0p4.eli DEV
zfs::vdev ZFS::VDEV
cd0 DISK cd0
cd0 DEV
da1 DISK da1
da1 DEV
da1 PART da1p1
da1p1 DEV
da1p1 LABEL gpt/cache-copperbowl
gpt/cache-copperbowl DEV
zfs::vdev ZFS::VDEV
da0 DISK da0
da0 DEV
da0 PART da0p1
da0p1 DEV
da0p1 LABEL gpt/cache-transcend
gpt/cache-transcend DEV
zfs::vdev ZFS::VDEV
da2 DISK da2
da2 DEV
da2 PART da2p1
da2p1 DEV
da2p1 LABEL gpt/Transcend
gpt/Transcend DEV
zfs::vdev ZFS::VDEV
root@mowa219-gjp4-zbook-freebsd:~ # zpool offline copperbowl gpt/cache-copperbowl
root@mowa219-gjp4-zbook-freebsd:~ # zpool offline Transcend gpt/cache-transcend
root@mowa219-gjp4-zbook-freebsd:~ # geom -t
Geom Class Provider
ada0 DISK ada0
ada0 DEV
ada0 PART ada0p1
ada0p1 DEV
ada0p1 LABEL gpt/efiboot0
gpt/efiboot0 DEV
ada0p1 LABEL msdosfs/EFISYS
msdosfs/EFISYS DEV
ada0 PART ada0p2
ada0p2 DEV
ada0p2 LABEL gpt/gptboot0
gpt/gptboot0 DEV
ada0 PART ada0p3
ada0p3 DEV
ada0p3.eli ELI ada0p3.eli
ada0p3.eli DEV
swap SWAP
ada0 PART ada0p4
ada0p4 DEV
ada0p4.eli ELI ada0p4.eli
ada0p4.eli DEV
zfs::vdev ZFS::VDEV
cd0 DISK cd0
cd0 DEV
da1 DISK da1
da1 DEV
da1 PART da1p1
da1p1 DEV
da1p1 LABEL gpt/cache-copperbowl
gpt/cache-copperbowl DEV
da0 DISK da0
da0 DEV
da0 PART da0p1
da0p1 DEV
da0p1 LABEL gpt/cache-transcend
gpt/cache-transcend DEV
da2 DISK da2
da2 DEV
da2 PART da2p1
da2p1 DEV
da2p1 LABEL gpt/Transcend
gpt/Transcend DEV
zfs::vdev ZFS::VDEV
root@mowa219-gjp4-zbook-freebsd:~ # tail -f -n 0 /var/log/messages
Aug 9 07:58:55 mowa219-gjp4-zbook-freebsd kernel: ugen0.10: <Kingston DataTraveler 3.0> at usbus0 (disconnected)
Aug 9 07:58:55 mowa219-gjp4-zbook-freebsd kernel: umass0: at uhub8, port 4, addr 12 (disconnected)
Aug 9 07:58:55 mowa219-gjp4-zbook-freebsd kernel: da0 at umass-sim0 bus 0 scbus5 target 0 lun 0
Aug 9 07:58:55 mowa219-gjp4-zbook-freebsd kernel: da0: <Kingston DataTraveler 3.0 1.00> s/n 60A44C3FACC93110B9970045 detached
Aug 9 07:58:55 mowa219-gjp4-zbook-freebsd kernel: (da0:umass-sim0:0:0:0): Periph destroyed
Aug 9 07:58:55 mowa219-gjp4-zbook-freebsd kernel: umass0: detached
Aug 9 07:58:58 mowa219-gjp4-zbook-freebsd kernel: ugen0.11: <Kingston DataTraveler 3.0> at usbus0 (disconnected)
Aug 9 07:58:58 mowa219-gjp4-zbook-freebsd kernel: umass1: at uhub0, port 21, addr 10 (disconnected)
Aug 9 07:58:58 mowa219-gjp4-zbook-freebsd kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0
Aug 9 07:58:58 mowa219-gjp4-zbook-freebsd kernel: da1: <Kingston DataTraveler 3.0 PMAP> s/n C860008AE288BF4189030BBD detached
Aug 9 07:58:58 mowa219-gjp4-zbook-freebsd kernel: (da1:umass-sim1:1:0:0): Periph destroyed
Aug 9 07:58:58 mowa219-gjp4-zbook-freebsd kernel: umass1: detached
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: ugen0.10: <Kingston DataTraveler 3.0> at usbus0
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: umass0 on uhub0
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: umass0: <Kingston DataTraveler 3.0, class 0/0, rev 3.00/1.00, addr 14> on usbus0
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: da0 at umass-sim0 bus 0 scbus5 target 0 lun 0
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: da0: <Kingston DataTraveler 3.0 PMAP> Removable Direct Access SPC-4 SCSI device
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: da0: Serial Number C860008AE288BF4189030BBD
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: da0: 400.000MB/s transfers
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: da0: 30016MB (61472768 512 byte sectors)
Aug 9 07:59:02 mowa219-gjp4-zbook-freebsd kernel: da0: quirks=0x2<NO_6_BYTE>
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: ugen0.11: <Kingston DataTraveler 3.0> at usbus0
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: umass1 on uhub8
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: umass1: <Kingston DataTraveler 3.0, class 0/0, rev 3.10/11.76, addr 15> on usbus0
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: da1: <Kingston DataTraveler 3.0 1.00> Removable Direct Access SPC-4 SCSI device
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: da1: Serial Number 60A44C3FACC93110B9970045
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: da1: 400.000MB/s transfers
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: da1: 14800MB (30310400 512 byte sectors)
Aug 9 07:59:10 mowa219-gjp4-zbook-freebsd kernel: da1: quirks=0x2<NO_6_BYTE>
^C
root@mowa219-gjp4-zbook-freebsd:~ # geom -t
Geom Class Provider
ada0 DISK ada0
ada0 DEV
ada0 PART ada0p1
ada0p1 DEV
ada0p1 LABEL gpt/efiboot0
gpt/efiboot0 DEV
ada0p1 LABEL msdosfs/EFISYS
msdosfs/EFISYS DEV
ada0 PART ada0p2
ada0p2 DEV
ada0p2 LABEL gpt/gptboot0
gpt/gptboot0 DEV
ada0 PART ada0p3
ada0p3 DEV
ada0p3.eli ELI ada0p3.eli
ada0p3.eli DEV
swap SWAP
ada0 PART ada0p4
ada0p4 DEV
ada0p4.eli ELI ada0p4.eli
ada0p4.eli DEV
zfs::vdev ZFS::VDEV
cd0 DISK cd0
cd0 DEV
da2 DISK da2
da2 DEV
da2 PART da2p1
da2p1 DEV
da2p1 LABEL gpt/Transcend
gpt/Transcend DEV
zfs::vdev ZFS::VDEV
da0 DISK da0
da0 DEV
da0 PART da0p1
da0p1 DEV
da0p1 LABEL gpt/cache-copperbowl
gpt/cache-copperbowl DEV
da1 DISK da1
da1 DEV
da1 PART da1p1
da1p1 DEV
da1p1 LABEL gpt/cache-transcend
gpt/cache-transcend DEV
da1p1 LABEL label/demo
label/demo DEV
root@mowa219-gjp4-zbook-freebsd:~ # lsblk
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:127 466G GPT - -
ada0p1 0:129 200M efi gpt/efiboot0 -
ada0p2 0:131 512K freebsd-boot gpt/gptboot0 -
<FREE> -:- 492K - - -
ada0p3 0:133 16G freebsd-swap gpt/swap0 SWAP
ada0p3.eli 1:32 16G freebsd-swap - SWAP
ada0p4 0:135 450G freebsd-zfs gpt/zfs0 <ZFS>
ada0p4.eli 0:146 450G zfs - -
<FREE> -:- 4.0K - - -
cd0 0:137 0B - - -
da0 1:60 29G GPT - -
<FREE> -:- 1.0M - - -
da0p1 1:61 29G freebsd-zfs gpt/cache-copperbowl <ZFS>
da1 1:76 14G GPT - -
<FREE> -:- 1.0M - - -
da1p1 1:77 14G freebsd-zfs gpt/cache-transcend <ZFS>
da2 1:71 466G GPT - -
<FREE> -:- 1.0M - - -
da2p1 1:72 466G freebsd-zfs gpt/Transcend <ZFS>
root@mowa219-gjp4-zbook-freebsd:~ #