[CentOS] Urgent help on replacing /var

Sun Aug 5 04:03:30 UTC 2012
Emmanuel Noobadmin <centos.admin at gmail.com>

On 8/3/12, Lamar Owen <lowen at pari.edu> wrote:
> On Friday, August 03, 2012 06:24:46 AM Emmanuel Noobadmin wrote:
>> In a moment of epic stupidity, having ran out of space on the root
>> partition of a server due to /var chewing up the space, I added a
>> separate drive for the purpose of mounting it as /var
> ...
> This sort of things pops up from time to time.... from a thread back in
> April.....

Lesson learnt, never try to fix things I'm not familiar with when
feeling pressured by relentless error messages, especially if nobody
else is complaining yet.

>> rpm -qa | while read line; do echo $line && rpm --setperms $line; done

> By extension:
> rpm -qa | while read line; do echo $line && rpm --setugids $line; done
> should handle ownerships.  Then, reenable selinux in permissive mode, and
> set it to relabel on the next boot.

Thanks for this tip, I'll try it and then see if there is anything
else in audit log that needs attention.