Tim Haley wrote: > > PROPOSED SOLUTION: > > This fast-track proposes two new command line flags each for > the 'zpool clear' and 'zpool import' sub-commands. > > Both sub-commands will now accept a '-F' recovery mode flag. > When specified, a determination is made if discarding the last > few transactions performed in an unopenable or non-importable > pool will return the pool to an usable state. If so, the > transactions are irreversibly discarded, and the pool > imported. If the pool is usable or already imported and this > flag is specified, the flag is ignored and no transactions are > discarded. > > Both sub-commands will now also accept a '-n' flag. This flag > is only meaningful in conjunction with the '-F' flag. When > specified, an attempt is made to see if discarding transactions > will return the pool to a usable state, but no transactions are > actually discarded.
Here's a usability suggestion. Whenever clear or import fails, why not automatically do the equivalent of <command> -F -n (i.e. tell the user if recovery is possible)? If so, the user can invoke with -F if desired. There would be no need to create a -n option. Scott -- Scott Rotondo Principal Engineer, Solaris Security Technologies President, Trusted Computing Group Phone/FAX: +1 408 850 3655 (Internal x68278)