Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Specify swap device priority in fstab?



On Wed, 5 Jun 2024, Brad Spencer wrote:

Paul Goyette <paul%whooppee.com@localhost> writes:

Is it possible to do this?

I have two swap files, and I want to designate one of them as also a
dump file.  I tried to put ``sw,dp,-p=50'' on the dump file entry but
``swapctl -A'' still says it is using priority 0.

I don't want swapping to overwrite a crash dump ...

Do something like this (an example using a file as swap):

/swap/swap.1    none            swap    sw,priority=2   0 0

Yup, that works, even when using ``sw,dp,priority=100'' (ie, the
dp portion can intervene and it still works).

Thanks - the obvious answer is the hardest to find!


+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+


Home | Main Index | Thread Index | Old Index