alex stun
2011-Jun-24 21:25 UTC
[zfs-discuss] Question: adding a single drive to a mirrored zpool
Hello, I have a zpool consisting of several mirrored vdevs. I was in the middle of adding another mirrored vdev today, but found out one of the new drives is bad. I will be receiving the replacement drive in a few days. In the mean time, I need the additional storage on my zpool. Is the command to add a single drive to a mirrored zpool: zpool add -f tank drive1? Does the -f command cause any issues? I realize that there will be no redundancy on that drive for a few days, and I can live with that as long as the rest of my zpool remains intact. Thanks -- This message posted from opensolaris.org
Craig Cory
2011-Jun-24 21:42 UTC
[zfs-discuss] Question: adding a single drive to a mirrored zpool
Alex, alex stun wrote:> Hello, > I have a zpool consisting of several mirrored vdevs. I was in the middle of > adding another mirrored vdev today, but found out one of the new drives is > bad. I will be receiving the replacement drive in a few days. In the mean > time, I need the additional storage on my zpool. > > Is the command to add a single drive to a mirrored zpool: > zpool add -f tank drive1? > > Does the -f command cause any issues? > I realize that there will be no redundancy on that drive for a few days, and I > can live with that as long as the rest of my zpool remains intact. > > Thanks > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >This is exactly what you''ll need to do. Without the -f zpool will stop and warn you that you have a "mismatch" in reliability. So, to get the space: zpool add -f <poolname> <single-disk> Then later, zpool attach <poolname> <newdisk> <single-disk> HTH Craig -- Craig Cory Senior Instructor :: ExitCertified : Oracle/Sun Certified System Administrator : Oracle/Sun Certified Network Administrator : Oracle/Sun Certified Security Administrator : Symantec/Veritas Certified Instructor : RedHat Certified Systems Administrator +-------------------------------------------------------------------------+ ExitCertified :: Excellence in IT Certified Education Certified training with Oracle, Sun Microsystems, Apple, Symantec, IBM, Red Hat, MySQL, Hitachi Storage, SpringSource and VMWare. 1.800.803.EXIT (3948) | www.ExitCertified.com +-------------------------------------------------------------------------+
Freddie Cash
2011-Jun-24 21:49 UTC
[zfs-discuss] Question: adding a single drive to a mirrored zpool
On Fri, Jun 24, 2011 at 2:25 PM, alex stun <alex at stundzia.com> wrote:> I have a zpool consisting of several mirrored vdevs. I was in the middle of > adding another mirrored vdev today, but found out one of the new drives is > bad. I will be receiving the replacement drive in a few days. In the mean > time, I need the additional storage on my zpool. > > Is the command to add a single drive to a mirrored zpool: > zpool add -f tank drive1? > > Does the -f command cause any issues? > I realize that there will be no redundancy on that drive for a few days, > and I can live with that as long as the rest of my zpool remains intact. >Note: you will have 0 redundancy on the ENTIRE POOL, not just that one vdev. If that non-redundant vdev dies, you lose the entire pool. Are you willing to take that risk, if one of the new drives is already DoA? -- Freddie Cash fjwcash at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110624/9e995d0e/attachment.html>