quickreference:zfs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
quickreference:zfs [2022/12/17 14:10] – [iSCSI considerations] rodolico | quickreference:zfs [2024/02/03 23:04] (current) – rodolico | ||
---|---|---|---|
Line 56: | Line 56: | ||
# turn swap back on (could also use swapon / | # turn swap back on (could also use swapon / | ||
swapon -aL | swapon -aL | ||
+ | </ | ||
+ | |||
+ | ===== Using a file for swap space ===== | ||
+ | |||
+ | Instead of using a swap partition or zvol, we can simply use a file. In this case, we can add swap space by deleting/ | ||
+ | |||
+ | Following code creates an 8G swap file. Note that after reading https:// | ||
+ | |||
+ | <code bash> | ||
+ | # create an 8G swap file | ||
+ | dd if=/ | ||
+ | # set permissions | ||
+ | chmod 0600 /swap | ||
+ | # look for an unused md device (ie, not listed) | ||
+ | mdconfig -lv | ||
+ | cp /etc/fstab / | ||
+ | # edit /etc/fstab and add the following line, using the correct md## | ||
+ | joe /etc/fstab | ||
+ | md42 none swap sw, | ||
+ | # save your file | ||
+ | # turn on swap | ||
+ | swapon -aq | ||
+ | # look at swap information | ||
+ | swapinfo -k | ||
</ | </ | ||
Line 158: | Line 182: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
quickreference/zfs.txt · Last modified: 2024/02/03 23:04 by rodolico