[389-users] Moving Direcoties dirsrv andlog to a new Disk

Andy Spooner racingyacht1 at gmail.com
Mon Nov 16 00:32:18 UTC 2015


Yes the solution will work nicely. I will setup on a test server.
Thank you
On Nov 15, 2015 23:30, "William Brown" <wibrown at redhat.com> wrote:

> 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
>
>
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-users/attachments/20151116/969c8843/attachment.html>


More information about the 389-users mailing list