I'm finding my /var partition kind of tight, so I thought I'd ease the crush and (avoid fragmentation) by making a new partition for just /var/cache and moving all the stuff in /var/cache over.
(Yeah, this is all under LVM, so I could just make the /var partition bigger, but my home and /usr partitions are already splintered a bit as it is.)
So I made the new partition and used
tar --acls --atime-preserve --numeric-owner --selinux --xattrs -cf cacheball /var/cache
and, in /mnt, with the new partition mounted there,
tar --acls --atime-preserve --numeric-owner --selinux --xattrs --preserve-permissions --preserve-order xf cacheball /var/cache
checked the results, and re-booted. X11 doesn't want to come up, just sits there with the pointer in the middle of the screen.
Possibly relevant stuff from /var/log/messages:
------------------------------------- ay 5 13:25:42 fed gnome-session[2561]: WARNING: Client '/org/gnome/SessionManager/Client1' failed to reply before timeout May 5 13:25:42 fed smartd[2414]: smartd received signal 15: Terminated May 5 13:25:42 fed smartd[2414]: smartd is exiting (exit status 0) May 5 13:25:42 fed gnome-session[2561]: WARNING: Unable to find desktop file 'at-spi-registryd-wrapper.desktop': 検索ディレクトリには妥 当なキー・ファイルがありませんでした May 5 13:25:42 fed gnome-session[2561]: WARNING: Unable to find desktop file 'gnome-at-spi-registryd-wrapper.desktop.desktop': 検索ディ レクトリには妥当なキー・ファイルがありませんでした -------------------------------------
Any thoughts?
I'm probably going to go ahead and drop the new partition and just expand /var, but I suspect this has to do with selinux, which I've been avoiding learning how to do right.
Joel Rees
On Thu, 2011-05-05 at 14:25 +0900, Joel Rees wrote:
I'm probably going to go ahead and drop the new partition and just expand /var, but I suspect this has to do with selinux, which I've been avoiding learning how to do right.
IIRC (it was a while back) I just moved /var/cache to a different filesystem using "cp -rp" and left a symbolic link behind. Worked fine.
poc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/05/2011 07:40 AM, Patrick O'Callaghan wrote:
On Thu, 2011-05-05 at 14:25 +0900, Joel Rees wrote:
I'm probably going to go ahead and drop the new partition and just expand /var, but I suspect this has to do with selinux, which I've been avoiding learning how to do right.
IIRC (it was a while back) I just moved /var/cache to a different filesystem using "cp -rp" and left a symbolic link behind. Worked fine.
poc
You probably have a labeling issue. Check for error messages in /var/log/audit/audit.log
ausearch -m avc -ts recent
Should show you the SELinux error messages.
On Sat, May 7, 2011 at 2:17 AM, Daniel J Walsh dwalsh@redhat.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/05/2011 07:40 AM, Patrick O'Callaghan wrote:
On Thu, 2011-05-05 at 14:25 +0900, Joel Rees wrote:
I'm probably going to go ahead and drop the new partition and just expand /var, but I suspect this has to do with selinux, which I've been avoiding learning how to do right.
IIRC (it was a while back) I just moved /var/cache to a different filesystem using "cp -rp" and left a symbolic link behind. Worked fine.
poc
You probably have a labeling issue. Check for error messages in /var/log/audit/audit.log
Ouch. That's huge. You could have talked all day ...
:-P
I guess it's time for me to learn how to read that file.
ausearch -m avc -ts recent
Should show you the SELinux error messages.
(Hmm. No matches. Time for me to dig a bit deeper.)
Thanks. That should help me quit procrastinating.
Joel Rees
Joel Rees wrote:
I'm finding my /var partition kind of tight, so I thought I'd ease the crush and (avoid fragmentation) by making a new partition for just /var/cache and moving all the stuff in /var/cache over.
(Yeah, this is all under LVM, so I could just make the /var partition bigger, but my home and /usr partitions are already splintered a bit as it is.)
So I made the new partition and used
tar --acls --atime-preserve --numeric-owner --selinux --xattrs -cf cacheball /var/cache
and, in /mnt, with the new partition mounted there,
tar --acls --atime-preserve --numeric-owner --selinux --xattrs --preserve-permissions --preserve-order xf cacheball /var/cache
checked the results, and re-booted. X11 doesn't want to come up, just sits there with the pointer in the middle of the screen.
Possibly relevant stuff from /var/log/messages:
ay 5 13:25:42 fed gnome-session[2561]: WARNING: Client '/org/gnome/SessionManager/Client1' failed to reply before timeout May 5 13:25:42 fed smartd[2414]: smartd received signal 15: Terminated May 5 13:25:42 fed smartd[2414]: smartd is exiting (exit status 0) May 5 13:25:42 fed gnome-session[2561]: WARNING: Unable to find desktop file 'at-spi-registryd-wrapper.desktop': 検索ディレクトリには妥 当なキー・ファイルがありませんでした May 5 13:25:42 fed gnome-session[2561]: WARNING: Unable to find desktop file 'gnome-at-spi-registryd-wrapper.desktop.desktop': 検索ディ レクトリには妥当なキー・ファイルがありませんでした
Any thoughts?
I'm probably going to go ahead and drop the new partition and just expand /var, but I suspect this has to do with selinux, which I've been avoiding learning how to do right.
I'd be tempted to use rsync with the -a option myself, jus a thought. You might want to relabel the directory for selinux, I don't recall doing that, but there are many things I do which seem so easy they don't drop into long term memory.