Darren Dunham wrote:
Exactly. What method could such a framework use to ask ZFS to import a
pool *now*, but not also automatically at next boot? (How does the
upcoming SC do it?)
I don't know how Sun Cluster does it and I don't know where the source is.
As others have pointed out you could use the fully supported alternate
root support for this.
The "zpool create -R" and "zpool import -R" commands allow
users to create and import a pool with a different root
path. By default, whenever a pool is created or imported on
a system, it is permanently added so that it is available
whenever the system boots. For removable media, or when in
recovery situations, this may not always be desirable. An
alternate root pool does not persist on the system. Instead,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
it exists only until exported or the system is rebooted, at
which point it will have to be imported again.
Sounds exactly like what is needed. As I said I don't know if
this is what Sun Cluster does but that is a possible way to build
an HA-ZFS solution, just remember not to have the scripts blindly
do zpool import -Rf :-)
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss