Hi,
June 21st I upgraded to 8-STABLE and ZFS V28. Afterwards, I've been having issues with my labels. Doesn't matter if I use glabel or label with gpt. It's like this:
glabel
gpart
It's like magic =)
Is this a known bug, regression, expected behaviour in certain circumstances, or am I doing something wrong? I'd really hate having to quit using labels, I think they are super otherwise.
/Sebulon
June 21st I upgraded to 8-STABLE and ZFS V28. Afterwards, I've been having issues with my labels. Doesn't matter if I use glabel or label with gpt. It's like this:
glabel
Code:
# zpool export pool2
# zpool import
pool: pool2
id: 6066349100353182436
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
pool2 ONLINE
raidz2-0 ONLINE
ada1 ONLINE
ada2 ONLINE
ada3 ONLINE
ada4 ONLINE
ada5 ONLINE
ada6 ONLINE
ada7 ONLINE
ada8 ONLINE
# ls -la /dev/label/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
# glabel label rack1-2 ada1
# ls -la /dev/label/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
crw-r----- 1 root operator 0, 191 Jun 26 20:11 rack1-2
# zpool import pool2
# ls -la /dev/label/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
# zpool export pool2
# ls -la /dev/label/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
crw-r----- 1 root operator 0, 191 Jun 26 20:11 rack1-2
gpart
Code:
# zpool export pool2
# zpool import
pool: pool2
id: 6066349100353182436
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
pool2 ONLINE
raidz2-0 ONLINE
ada1 ONLINE
ada2 ONLINE
ada3 ONLINE
ada4 ONLINE
ada5 ONLINE
ada6 ONLINE
ada7 ONLINE
ada8 ONLINE
# ls -la /dev/gpt/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
# gpart create -s gpt ada1
ada1 created
# gpart add -t freebsd-zfs -l rack1-2 ada1
ada1p1 added
# ls -la /dev/gpt/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
crw-r----- 1 root operator 0, 192 Jun 26 20:18 rack1-2
# zpool import pool2
# ls -la /dev/gpt/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
# zpool export pool2
# gpart show ada1
=> 34 1953525101 ada1 GPT (931G) [CORRUPT]
34 1953525101 1 freebsd-zfs (931G)
# ls -la /dev/gpt/
total 2
dr-xr-xr-x 2 root wheel 512 Jun 26 17:34 .
dr-xr-xr-x 10 root wheel 512 Jun 26 19:34 ..
crw-r----- 1 root operator 0, 192 Jun 26 20:23 rack1-2
It's like magic =)
Is this a known bug, regression, expected behaviour in certain circumstances, or am I doing something wrong? I'd really hate having to quit using labels, I think they are super otherwise.
/Sebulon