Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2009 13:34:37 +0300
From:      Dan Naumov <dan.naumov@gmail.com>
To:        Simun Mikecin <numisemis@yahoo.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: 7.2-STABLE: swap on ZFS v13
Message-ID:  <cf9b1ee00906230334qb3ca5c0xc14e2b7bfc2753e1@mail.gmail.com>
In-Reply-To: <173835.76209.qm@web37306.mail.mud.yahoo.com>
References:  <288239.1376.qm@web37303.mail.mud.yahoo.com> <cf9b1ee00906230310j7e304efcp21c9588a75ab1ef@mail.gmail.com> <173835.76209.qm@web37306.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 23, 2009 at 1:19 PM, Simun Mikecin<numisemis@yahoo.com> wrote:
>
> Dan Naumov wrote:
>> Pardon my perhaps stupid question, but what exactly does the "-o
>> org.freebsd:swap=on" option do? Couldn't find anything related during
>> a quick glance at the zfs manpage (on a 7.2-release/amd64 system with
>> zfsv6).
> Take a look at /etc/rc.d/zfs.
> Since /etc/fstab is not a supported way for adding swap on zvols, /etc/rc.d/zfs script (executed during boot if you have zfs_enable="YES" in your /etc/rc.conf[.local]) will execute "swapon" on all zvols that have org.freebsd:swap=on.

Oh, right. Kinda weird though that this is already included in
/etc/rc.d/zfs already if "swap on ZFS" is considered even more
experimental than ZFS support itself. Is this documented anywhere or
is it just one of the things you learn by reading rc.d scripts? :) Out
of curiosity, what kind of horrible breakage should I expect if I try
enabling swap on a zvol using zfsv6 that comes with 7.2-release?

- Dan Naumov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cf9b1ee00906230334qb3ca5c0xc14e2b7bfc2753e1>