zpool add log to root pool

Volodymyr Kostyrko c.kworr at gmail.com
Mon Sep 17 14:33:11 UTC 2012


17.09.2012 15:34, Olivier Smedts wrote:
> Is there anyone here using a separate log device (or "ZIL") on a root pool ?

# zpool set bootfs= tank

> # zpool add tank log gpt/zil
> cannot add to 'tank': root pool can not have multiple vdevs or separate logs
>
> Under 9-STABLE, using zpool v28. This seems to be a limitation from
> OpenSolaris. For example, FreeBSD supports booting from a
> multiple-vdev root pool. I found that most people use the "unset
> bootfs property, add vdev, set bootfs again" trick to have a working
> multiple-vdev root pool under FreeBSD. I think I can do the same for
> the log device but don't want to loose my data.
>
> Is there anyone successfuly using a log device / zil on a root pool
> under FreeBSD ?

Me.

# zpool iostat -v faz0
                                            capacity     operations 
bandwidth
pool                                    alloc   free   read  write 
read  write
--------------------------------------  -----  -----  -----  ----- 
-----  -----
faz0                                     121G   173G     22    149 
130K   671K
   mirror                                 121G   173G     22    149 
130K   659K
     gptid/b88daece-7a48-11df-8703-0018f36885d5      -      -     10 
  56   111K   660K
     gptid/23ddb9f0-7b04-11df-8867-0018f36885d5      -      -     10 
  56   111K   660K
logs                                        -      -      -      - 
-      -
   gptid/3592d260-c98e-11e0-9ef6-0018f36885d5  1,86M  1014M      0 
0      0  11,6K
cache                                       -      -      -      - 
-      -
   gptid/3809bef7-c98e-11e0-9ef6-0018f36885d5  36,3G     8M     71 
8   653K   374K
--------------------------------------  -----  -----  -----  ----- 
-----  -----

# zpool get bootfs faz0
NAME  PROPERTY  VALUE   SOURCE
faz0  bootfs    -       default

-- 
Sphinx of black quartz judge my vow.


More information about the freebsd-fs mailing list