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 -
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 -
> We have no way to expand pool tank2 Have you tried zpool online -e ... ... ? -- Andriy Gapon
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?
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