Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2012 19:03:12 GMT
From:      Dmitry Afanasiev <KOT@MATPOCKuH.Ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/173298: Splitted pool is not expandable
Message-ID:  <201211021903.qA2J3CoU099663@red.freebsd.org>
Resent-Message-ID: <201211021910.qA2JA0VM053081@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173298
>Category:       bin
>Synopsis:       Splitted pool is not expandable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 02 19:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Afanasiev
>Release:        FreeBSD 9.0-STABLE
>Organization:
>Environment:
FreeBSD green 9.0-STABLE FreeBSD 9.0-STABLE #87: Wed Jun 20 11:20:29 MSK 2012     root@green:/usr/obj/usr/src/sys/green  amd64

>Description:
No way to expand pool after zpool split
>How-To-Repeat:
# dd if=/dev/zero of=/var/tmp/tank bs=1024k count=64
# dd if=/dev/zero of=/var/tmp/tank2 bs=1024k count=128
# zpool create tank /var/tmp/tank
# zpool list tank
NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
tank  59.5M  89.5K  59.4M     0%  1.00x  ONLINE  -
# zpool attach tank /var/tmp/tank /var/tmp/tank2
Wait for resilvering to be complete
# zpool split -o autoexpand=on tank tank2 /var/tmp/tank2
# zpool import -d /var/tmp tank2
# zpool list tank2              
NAME    SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT
tank2  59,5M   196K  59,3M     0%  ONLINE  -

We have no way to expand pool tank2

Attach new device, set autoexpand property and then detach old device works properly:
# zpool attach tank /var/tmp/tank /var/tmp/tank2
# zpool set autoexpand=on tank
# zpool detach tank /var/tmp/tank
# zpool list tank
NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
tank   124M   133K   123M     0%  1.00x  ONLINE  -


>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211021903.qA2J3CoU099663>