Bug 173298 - zpool(8): Splitted pool is not expandable
Summary: zpool(8): Splitted pool is not expandable
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 19:10 UTC by Dmitry Afanasiev
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Afanasiev 2012-11-02 19:10:00 UTC
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  -
Comment 1 Adam McDougall 2012-11-02 21:13:14 UTC
I have no comment about autoexpand, but zpool online -e will do it:

% zpool list
NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
tank   59.5M   169K  59.3M     0%  1.00x  ONLINE  -
tank2  59.5M   172K  59.3M     0%  1.00x  ONLINE  -
% zpool online -e tank2 /var/tmp/tank2
% zpool list
NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
data    448G   266G   182G    59%  1.24x  ONLINE  -
rpool   206G   168G  37.8G    81%  1.02x  ONLINE  -
tank   59.5M   102K  59.4M     0%  1.00x  ONLINE  -
tank2   124M   157K   123M     0%  1.00x  ONLINE  -
Comment 2 Andriy Gapon freebsd_committer freebsd_triage 2012-11-02 21:33:12 UTC
> We have no way to expand pool tank2

Have you tried zpool online -e ... ... ?

-- 
Andriy Gapon
Comment 3 Dmitry Afanasiev 2012-11-12 08:04:46 UTC
On 03.11.2012 01:33, Andriy Gapon wrote:
>> We have no way to expand pool tank2
> Have you tried zpool online -e ... ... ?
Omg. I'm confused, solaris's zpool command does not have '-e' switch.
Yes, zpool online -e expands pool, but...
Why autoexpand property for spitted pool have no effect?
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:20 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped