On Dec 7, 2009, at 10:42 AM, Cindy Swearingen wrote:
I agree that zpool attach and add look similar in their syntax,
but if you attempt to "add" a disk to a redundant config, you'll
see an error message similar to the following:
# zpool status export
pool: export
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
export ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1t3d0 ONLINE 0 0 0
c1t4d0 ONLINE 0 0 0
errors: No known data errors
# zpool add export c1t6d0
invalid vdev specification
use '-f' to override the following errors:
mismatched replication level: pool uses mirror and new vdev is disk
This was one of the first, great debates on ZFS-discuss
http://www.opensolaris.org/jive/thread.jspa?messageID=15363㰃
I believe all possible observations are made in that thread.
Of particular note, humans train themselves to use a "-f" (or for
kill, "-9" :-)
as a not-optional part of the command string. It really doesn't matter
what the command is named, you will train yourself to go to the forced
option. If you want to protect yourself from yourself, begin with
yourself.
-- richard
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss