On Jun 17, 2008, at 12:23 PM, Srinivas Chadalavada wrote:

> :root # zpool create export mirror c2t0d0s5 c2t0d0s5
> invalid vdev specification
> use '-f' to override the following errors:
> /dev/dsk/c2t0d0s5 is part of active ZFS pool export. Please see  
> zpool(1M).

(I presume that you meant to use c2t2d0s5 as the second slice)

You've already created your pool, so all you want to do is attach the  
new slice to be a mirror of one that is already in the pool:

zpool attach export c2t0d0s5 c2t2d0s5

This will create a mirror between c2t0d0s5 and c2t2d0s5

First be sure that slice 5 on c2t2d0 is at least the same size as  
c2t0d0s5. If c2t2d0 is unused, you can copy the vtoc from the first  
disk to the second one with a simple command:

prtvtoc /dev/rdsk/c2t0d0s2 | fmthard -s - /dev/rdsk/c2t2d0s2

Since you're on x86, you may need to run fdisk against c2t2d0 if it is  
a virgin drive.

/dale
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to