On 06/12/10 17:13, zfsnoob4 wrote:
Thanks. As I discovered from that post, VB does not have cache flush enabled by 
default. Ignoreflush must be explicitly turned off.

VBoxManage setextradata VMNAME 
"VBoxInternal/Devices/piix3ide/0/LUN#[x]/Config/IgnoreFlush" 0

where VMNAME is the name of your virtual machine.


Although I tried that it it returned with no output (indicating it worked) but 
it still won't detect a pool that has been destroyed. Is there any way to 
detect if flushes are working from inside the OS? Maybe a command that tells 
you if cacheflush is enabled?

Thanks.
You also need the "-D" flag. I could successfully import. This was running the latest bits:

: trasimene ; mkdir /pf
: trasimene ; mkfile 100m /pf/a /pf/b /pf/c
: trasimene ; zpool create whirl /pf/a /pf/b log /pf/c
: trasimene ; zpool destroy whirl
: trasimene ; zpool import -D -d /pf
 pool: whirl
   id: 1406684148029707587
state: ONLINE (DESTROYED)
action: The pool can be imported using its name or numeric identifier.
config:

       whirl       ONLINE
         /pf/a     ONLINE
         /pf/b     ONLINE
       logs
         /pf/c     ONLINE
: trasimene ; zpool import -D -d /pf whirl
: trasimene ; zpool status whirl
 pool: whirl
state: ONLINE
scan: none requested
config:

       NAME        STATE     READ WRITE CKSUM
       whirl       ONLINE       0     0     0
         /pf/a     ONLINE       0     0     0
         /pf/b     ONLINE       0     0     0
       logs
         /pf/c     ONLINE       0     0     0

errors: No known data errors
: trasimene ;


It would, of course, have been easier if you'd been using real devices
but I understand you want to experiment first...
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to