swap file and partition reboot issue with free cmd
I had a standard CentOS 7 partition layout with /boot, /, /var, and swap (2G) partitions carved out.
So the free cmd showed me that I had 2G total. As a test, I added roughly 500MB more swap through a swap file: Code:
# free Code:
# vim /etc/fstab My question is, why did free not show the swap until reboot? Ideas and / or better ways to do this? SK |
Code:
swapon /extra-swap |
# swapon -s
to list active swaps. Free lists if you have some, but not much else about it. And as above use swapon to add the file/partition in the absence of having it auto-magically happen because of fstab. |
swap file and partition reboot issue with free cmd
swapon -a scans the fstab file for entries. It will not scan your partition layout.
|
All times are GMT -5. The time now is 12:57 AM. |