Re: Moving Direcoties dirsrv andlog to a new Disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Yes the solution will work nicely. I will setup on a test server.
Thank you

On Nov 15, 2015 23:30, "William Brown" <wibrown@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux