During the ZFS Beta program, when switching from swapping to a slice to
swapping to a zvol, I ran across the annoying fact that the zvol wasn't
added automatically during boot.  I've filed

6405330 swap on zvol isn't added during boot

for this, and provided a full analysis and fix in the process.  The trivial
patch is here:

RCS file: RCS/devices-local,v
retrieving revision
diff -u -r1.1.1.1 devices-local
--- devices-local       2006/04/11 07:56:22
+++ devices-local       2006/05/05 20:13:19
@@ -76,4 +76,9 @@
        /usr/sbin/zfs volinit || exit $SMF_EXIT_ERR_FATAL
+# Add swap again to allow for swapping to zvols.
+/sbin/swapadd -1
 exit $SMF_EXIT_OK

Since this is still unfixed, I'd like to see it integrated asap, and am
thus looking for a sponsor.

My contributor agreement is OS0023.


Rainer Orth, Faculty of Technology, Bielefeld University

Reply via email to