On Thu, 2010-05-06 at 11:26 -0700, melbogia wrote: > Currently I am have 10 disks of same model from the same manufacturer > in my pool. My question is three fold and I am trying to figure out > answers and/or implications > > 1. Does ZFS take care of different disk size/geometry that come with > same size disks from different manufacturers? a 1TB disk from one > manufacturer may or may not be exactly the same size as 1TB disk from > another manufacturer. How does that slight size different effect when > I try to replace a bad disk in a pool with another one? >
If you use a later development build of OpenSolaris, minor differences in size don't matter - a few cylinders bigger or smaller is OK. I'd have to look, but support for this feature was added somewhere around b120 or so. Looks like b117. It's NOT in OpenSolaris 2009.06 > 2. What would happen (if anything) if I try to replace a 1TB disk in a > pool with a 1.5TB disk? does the extra 0.5TB get wasted and the system > treats this new disk as 1TB? > Yes, ZFS ignores the extra space until ALL devices in that vdev are increased in size. It then (assuming the autoexpand=on property is set) will automagically increase the size of the vdev. > 3. Same as above but now say I have a pool with 1TB disk and one disk > goes bad, the new disk is 750GB. Would it even let me do that? Are > there cases where I can? Say, if the pool is not almost full? > > Thanks No, ZFS doesn't support shrinking either a vdev or a zpool. You have to replace any device with one the same size (modulo #1 above) or larger. Entire vdevs can't be removed from a pool, either. -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA Timezone: US/Pacific (GMT-0800) _______________________________________________ opensolaris-discuss mailing list [email protected]
