On Feb 1, 2010, at 5:53 AM, Lutz Schumann wrote:

> I tested some more and found that Pool disks are picked UP. 
> 
> Head1: Cachedevice1 (c0t0d0)
> Head2: Cachedevice2 (c0t0d0)
> Pool: Shared, c1t<X>d<Y>
> 
> I created a pool on shared storage. 
> Added the cache device on Head1. 
> Switched the pool to Head2 (export + import). 
> Created a pool on head1 containing just the cache device (c0t0d0). 

This is not possible, unless there is a bug. You cannot create a pool
with only a cache device.  I have verified this on b131:
        # zpool create norealpool cache /dev/ramdisk/rc1                    
        invalid vdev specification: at least one toplevel vdev must be specified

This is also consistent with the notion that cache devices are auxiliary
devices and do not have pool configuration information in the label.
 -- richard

> Exported the pool on Head1. 
> Switched back the pool from head2 to head1 (export + import)
> The disk c0t0d0 is picked up as cache device ... 
> 
> This practially means my exported pool was destroyed. 
> 
> In production this would been hell.
> 
> Am I missing something here ?
> -- 
> This message posted from opensolaris.org
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

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

Reply via email to