[CentOS] Urgent help on replacing /var

Fri Aug 3 10:31:23 UTC 2012
Darod Zyree <darodzyree at gmail.com>

2012/8/3 Emmanuel Noobadmin <centos.admin at gmail.com>:
> 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
> To do so, I mounted the new drive as /var2, cp -R (in hindsight should
> had rsync to preserve attributes), deleted the original /var to free
> up space, edited fstab and rebooted... unsurprisingly to a fubar'd
> server.
> The thing is it still boots, I can get into single user mode but a
> full init get stuck at starting the syslogger. What is the best way to
> rescue the server now from my own stupidity and keeping all the
> existing configuration and data?
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Did you rewrite the selinux policy on /var or have you tried disabling
selinux if you haven't do so already?