Created
March 21, 2014 20:05
-
-
Save kramarama/9695197 to your computer and use it in GitHub Desktop.
move /var to separate partition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) mkdir /newvar | |
2) mount /dev/md40 /newvar | |
3) cp -Rax /var /newvar | |
4) mv /var /oldvar | |
5) change fstab to mount /var to /dev/md40 | |
fix security labels after move: | |
$ restorecon /var |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment