LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Can swapoff -a be reverted ? (https://www.linuxquestions.org/questions/linux-server-73/can-swapoff-a-be-reverted-4175473070/)

asklinux 08-12-2013 03:23 AM

Can swapoff -a be reverted ?
 
Hello,

I accidently executed the "swapoff -a" command in my Ubuntu server.

Is there a way to revert this command ?

Server restart was not performed yet after the command.

Thanks

druuna 08-12-2013 03:26 AM

Counterpart would be: swapon

Code:

swapon -a

astrogeek 08-12-2013 03:29 AM

man swapoff, man swapon

Code:

swapoff -a
inverse...

Code:

swapon -a

asklinux 08-12-2013 03:33 AM

Thank you all

druuna 08-12-2013 03:41 AM

You're welcome.

BTW: Can you put up the [SOLVED] tag (upper right corner or the Thread Tools link).


All times are GMT -5. The time now is 08:03 AM.