Get the App
SLTechnology News&Howtos  ›  Servers  › 

Swap partition expansion

Shulou Source: shulou.com Published: 2022-06-02 06:36:49 12月02日 Update

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.

Tags: Disk size file priority multiple identity format activation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Huawei MySQL Linux Docker