Hi.

I see some inconsistencies with how inuse cache devices are handled.

        # zpool create tank1 da0 cache da1
        # zpool create tank2 da2 cache da1
        invalid vdev specification
        use '-f' to override the following errors:
        /dev/ad5 is part of unknown pool 'tank1'

Note 'unknown' status - should be 'active'.

        # zpool create tank1 da0 cache da1
        # zpool create -f tank2 da2 cache da1
        cannot create 'tank2': one or more vdevs refer to the same device

da2 and da1 is not the same disk.

        # zpool create tank1 da0 cache da1
        # zpool export tank1
        # zpool create tank2 da2 cache da1

It doesn't complain that da1 is used in exported pool tank1.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/zfs-code/attachments/20081110/c74457aa/attachment.bin>

Reply via email to