Dennis Clarke
2010-Jan-10 09:23 UTC
[zfs-discuss] possible to remove a mirror pair from a zpool?
Suppose the requirements for storage shrink ( it can happen ) is it possible to remove a mirror set from a zpool? Given this : # zpool status array03 pool: array03 state: ONLINE status: The pool is formatted using an older 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 older software versions. scrub: resilver completed after 0h41m with 0 errors on Sat Jan 9 22:54:11 2010 config: NAME STATE READ WRITE CKSUM array03 ONLINE 0 0 0 mirror ONLINE 0 0 0 c2t16d0 ONLINE 0 0 0 c5t0d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c5t1d0 ONLINE 0 0 0 c2t17d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c5t2d0 ONLINE 0 0 0 c2t18d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c2t20d0 ONLINE 0 0 0 c5t4d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c2t21d0 ONLINE 0 0 0 c5t6d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c2t19d0 ONLINE 0 0 0 c5t5d0 ONLINE 0 0 0 spares c2t22d0 AVAIL errors: No known data errors Suppose I want to power down the disks c2t19d0 and c5t5d0 because they are not needed. One can easily picture a thumper with many disks unused and see reasons why one would want to power off disks. -- Dennis
James Dickens
2010-Jan-10 09:48 UTC
[zfs-discuss] possible to remove a mirror pair from a zpool?
No, sorry Dennis, this functionality doesn''t exist yet, but is being worked, but will take a while, lots of corner cases to handle. James Dickens uadmin.blogspot.com On Sun, Jan 10, 2010 at 3:23 AM, Dennis Clarke <dclarke at blastwave.org>wrote:> > Suppose the requirements for storage shrink ( it can happen ) is it > possible to remove a mirror set from a zpool? > > Given this : > > # zpool status array03 > pool: array03 > state: ONLINE > status: The pool is formatted using an older 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 older software versions. > scrub: resilver completed after 0h41m with 0 errors on Sat Jan 9 > 22:54:11 2010 > config: > > NAME STATE READ WRITE CKSUM > array03 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > c2t16d0 ONLINE 0 0 0 > c5t0d0 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > c5t1d0 ONLINE 0 0 0 > c2t17d0 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > c5t2d0 ONLINE 0 0 0 > c2t18d0 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > c2t20d0 ONLINE 0 0 0 > c5t4d0 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > c2t21d0 ONLINE 0 0 0 > c5t6d0 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > c2t19d0 ONLINE 0 0 0 > c5t5d0 ONLINE 0 0 0 > spares > c2t22d0 AVAIL > > errors: No known data errors > > Suppose I want to power down the disks c2t19d0 and c5t5d0 because they are > not needed. One can easily picture a thumper with many disks unused and > see reasons why one would want to power off disks. > > -- > Dennis > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100110/3d3a2cb4/attachment.html>
Dennis Clarke
2010-Jan-10 11:05 UTC
[zfs-discuss] possible to remove a mirror pair from a zpool?
> No, sorry Dennis, this functionality doesn''t exist yet, but > is being worked, > but will take a while, lots of corner cases to handle. > > James Dickens > uadmin.blogspot.com1 ) dammit 2 ) looks like I need to do a full offline backup and then restore to shrink a zpool. As usual, Thanks for always being there James. Dennis