Swap partition expansion
Swap partition expansion:
1. Fdisk identifies the disk as swap format
Free-m to view the current swap partition size
2. Mkswap converts the disk to swap file
Mkswap / dev/sdd1 converts disks to swap files
Swapon / dev/sdd1 activate swap Partition
Swapoff / dev/sdd1 deactivates the swap partition
Swapon-s
Free-m to view swap partition size
3. Multiple swap disks set swap partition priority
/ etc/fstab
/ dev/sdd1 swap swap defaults,pri=1 (0 to 32767) 0 0
Restart is required after the setup is completed.