Can't remove zil / separate log device from root pool

Ronald Klop ronald-freebsd8 at klop.yi.org
Sun Sep 30 11:06:52 UTC 2012


On Fri, 28 Sep 2012 17:43:04 +0200, Olivier Smedts <olivier at gid0.org>  
wrote:

> Hello,
>
> Some time ago I added a separate log device to my root pool (with the
> "bootfs" unset hack) but now I can't remove it from my pool :
>
> # uname -a
> FreeBSD zozo.afpicl.lan 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r241027:
> Fri Sep 28 14:43:13 CEST 2012
> root at zozo.afpicl.lan:/usr/obj/usr/src/sys/CORE  amd64
> root at zozo:/root# zpool status
>   pool: tank
>  state: ONLINE
> status: The pool is formatted using a legacy on-disk format.  The pool  
> can
>         still be used, but some features are unavailable.
> action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
>         pool will no longer be accessible on software that does not
> support feature
>         flags.
>   scan: resilvered 7,27M in 0h0m with 0 errors on Mon Sep 17 12:43:16  
> 2012
> config:
>
>         NAME           STATE     READ WRITE CKSUM
>         tank           ONLINE       0     0     0
>           mirror-0     ONLINE       0     0     0
>             gpt/disk1  ONLINE       0     0     0
>             gpt/disk0  ONLINE       0     0     0
>         logs
>           gpt/zil      ONLINE       0     0     0
>
> errors: No known data errors
> root at zozo:/root# time zpool remove tank gpt/zil && echo "ok !"
> 0.000u 0.008s 0:02.61 0.0%      0+0k 0+1io 0pf+0w
> ok !
> root at zozo:/root# zpool status
>   pool: tank
>  state: ONLINE
> status: The pool is formatted using a legacy on-disk format.  The pool  
> can
>         still be used, but some features are unavailable.
> action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
>         pool will no longer be accessible on software that does not
> support feature
>         flags.
>   scan: resilvered 7,27M in 0h0m with 0 errors on Mon Sep 17 12:43:16  
> 2012
> config:
>
>         NAME           STATE     READ WRITE CKSUM
>         tank           ONLINE       0     0     0
>           mirror-0     ONLINE       0     0     0
>             gpt/disk1  ONLINE       0     0     0
>             gpt/disk0  ONLINE       0     0     0
>         logs
>           gpt/zil      ONLINE       0     0     0
>
> errors: No known data errors
>
> I tried unsetting bootfs before removing the log device. Not better.
> I tried importing my pool with a 9.1-RC1 liveCD, removing the log
> device. The same thing happens.
> I tried by physically detaching the log device from my computer. The
> system can't mount root. With the 9.1-RC1 liveCD, I can import the
> pool with "-m" but then I still can't remove the log device from the
> pool.
>
> Any idea on what I could do ?
>
> Thanks
>

What version is your zpool/zfs? Mind the message about upgrading in your  
output above. Not all version of ZFS support removing a log or cache disk.

Run 'zpool upgrade' and 'zfs upgrade'. They will only print the current  
version. They need more options for real upgrading.

Ronald.


More information about the freebsd-fs mailing list