Skip to main content

Increase swap disk disk on CentOS 7 from 2 GB to 4 GB - how to update /etc/fstab

Comments

3 comments

  • George_Fusioned
    Do a "swapoff /dev/dm-1" and make sure there's no line for /dev/dm-1 in /etc/fstab if you're sure you don't want to use it anymore.
    0
  • andrew.n
    Actually the 2 swap files are added together so instead of 2GB which was the old one you now have 6GB which wouldn't hurt. You can check it with "free -m' command.
    0
  • cPRex Jurassic Moderator
    Let us know if the details that @wintech2003 and @andrew.n aren't enough to get this resolved for you!
    0

Please sign in to leave a comment.