Problem with zpool remove of log device

kc atgb kisscoolandthegangbang at hotmail.fr
Wed May 31 20:04:45 UTC 2017


Le Fri, 26 May 2017 09:40:06 +0000,
Łukasz Wąsikowski <lukasz at wasikowski.net> a écrit :

> Hi,
> 
> I cant remove log device from pool - operation ends ok, but log device
> is still in the pool (bug?).
> 
> # uname -a
> FreeBSD xxx.yyy.com 11.0-STABLE FreeBSD 11.0-STABLE #0 r316543: Thu Apr
> 6 08:22:43 CEST 2017     root at xxx.yyy.com:/usr/obj/usr/src/sys/YYY  amd64
> 
> # zpool status tank
>   pool: tank
>  state: ONLINE
> status: One or more devices are configured to use a non-native block size.
>         Expect reduced performance.
> action: Replace affected devices with devices that support the
>         configured block size, or migrate data to a properly configured
>         pool.
>   scan: scrub repaired 0 in 22h21m with 0 errors on Thu May 25 02:26:36 2017
> config:
> 
>         NAME                   STATE     READ WRITE CKSUM
>         tank                 ONLINE       0     0     0
>           mirror-0             ONLINE       0     0     0
>             ada2p3             ONLINE       0     0     0
>             ada3p3             ONLINE       0     0     0
>         logs
>           mirror-1             ONLINE       0     0     0
>             gpt/tankssdzil0  ONLINE       0     0     0  block size:
> 512B configured, 4096B native
>             gpt/tankssdzil1  ONLINE       0     0     0  block size:
> 512B configured, 4096B native
> 
> errors: No known data errors
> 
> When I try to remove log device operation ends without errors:
> 
> # zpool remove tank mirror-1; echo $?
> 0
> 
> But the log device is still there:
> 
> # zpool status tank
>   pool: tank
>  state: ONLINE
> status: One or more devices are configured to use a non-native block size.
>         Expect reduced performance.
> action: Replace affected devices with devices that support the
>         configured block size, or migrate data to a properly configured
>         pool.
>   scan: scrub repaired 0 in 22h21m with 0 errors on Thu May 25 02:26:36 2017
> config:
> 
>         NAME                   STATE     READ WRITE CKSUM
>         tank                 ONLINE       0     0     0
>           mirror-0             ONLINE       0     0     0
>             ada2p3             ONLINE       0     0     0
>             ada3p3             ONLINE       0     0     0
>         logs
>           mirror-1             ONLINE       0     0     0
>             gpt/tankssdzil0  ONLINE       0     0     0  block size:
> 512B configured, 4096B native
>             gpt/tankssdzil1  ONLINE       0     0     0  block size:
> 512B configured, 4096B native
> 
> errors: No known data errors
> 
> 
> I'd like to remove it - how should I proceed?
> 
> 

Hi,

I had a problem like this not so long ago. 
I thought maybe it was something with my installation and because that I have an older version of FreeBSD and by the same occasion older version of zfs. 

I found some similar cases but for openzfs on linux and if I'm not wrong opensolaris. I know now that not the only one on FreeBSD. 
It was something with zfs thinkink that writes are not synced from log to disks, and it can't remove the device. 

How is your zpool iostat -v output after you offline the log device(s) ? Is there any persistent data on allocated row ?

K. 


More information about the freebsd-fs mailing list