Quote:
Originally Posted by jsynodin
i have several rhel 6 machines, installed some time ago with 1 partion containing all system directories and using LVM.
|
Depending on their purpose servers should have a more elaborate partitioning scheme to avoid filling them...
Quote:
Originally Posted by jsynodin
now i have to harden the machines with CIS benchmark tools. one of the rules is to have /tmp and /home, each on its own partition.
any ideas as to how to do this with minimum disruption?
|
Making room for and creating partitions should be straightforward. Best first run
Code:
lsof -Pwln -a +D/home
lsof -Pwln -a +D/tmp
and check which processes access those directories. Because if they can't be stopped easily you could drop to runlevel 1 to move and remount or else copy (and delete ) and remount on boot. *Given maintenance window and downtime this would also be a good time to ensure your LVM / backup scheme works as advertised, especially with respect to LVM header location as most tools default to inserting only one header at the start (first two megs) of the LVM while you can explicitly have LVM add a header to the end of it.