[zfs-discuss] Question: adding a single drive to a mirrored zpool

2011-06-24 Thread alex stun
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@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Question: adding a single drive to a mirrored zpool

2011-06-24 Thread Craig Cory
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@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
+-+
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Question: adding a single drive to a mirrored zpool

2011-06-24 Thread Freddie Cash
On Fri, Jun 24, 2011 at 2:25 PM, alex stun a...@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
fjwc...@gmail.com
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss