Find out what swap is currently configured
> swapon --show
NAME TYPE SIZE USED PRIO
/dev/dm-1 partition 15.7G 66.9M -2
Turn off the current swap
> swapoff /dev/dm-1
Find partition for my new swap
> ls -lh /dev/disk/by-id/ |grep nvme-PCIe_SSD_19012351200132-part1
Make the swap
> mkswap /dev/nvme1n1p1
Turn on swap
> swapon /dev/nvme1n1p1
Verify
> swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme1n1p1 partition 256G 0B -2
No comments:
Post a Comment