Similarly, in /etc/fstab, for example:
Code:
LABEL=SWAP-SDA3 swap swap defaults 0 0
You label swap when you initialize it. From 'man mkswap':
Quote:
-L label
Specify a label, to allow swapon by label. (Only for new style
swap areas.)
|
So on your server, either:
- If swap is critical to operation: boot to run level 1, reinitialize and label the swap areas, and update /etc/fstab, then reboot.
- If you can run without swap for a while: swapoff -a, reinitialize and label the swap areas, and update /etc/fstab, swapon -a