On Sun, 2015-11-15 at 15:14 +0000, Andy Spooner wrote:
Hi,
I am running 389-ds on CentOs 6.7. I am trying to move 389-ds off the
disk
that contains my root to a second disk that has space for the
directory to
grow. Can someone please advise on the correct way to move files and
maintain selinux contexts. I moved the files using the method below,
but
logs cannot be written to - please see error message at the bottom of
this
email.
Why not do:
mv /var/lib/dirsrv /var/lib/dirsrv-orig
mkdir /var/lib/dirsrv
mount /dev/mapper/vg-newdisk /var/lib/dirsrv
cp -a /var/lib/dirsrv-orig/* /var/lib/dirsrv/
restorecon -r /var/lib/dirsrv/
Start your ds
This would be the way I would approach it, rather than trying to rename
everything ...
--
Sincerely,
William Brown
Software Engineer
Red Hat, Brisbane