- Create the filesystem (I use ext3, so # /sbin/mke2fs -j /dev/mdX)
- Mount it at a temporary location: # mkdir /mnt/log ; mount /dev/mdX /mnt/log
- Copy the contents: # cp -a /var/log/* /mnt/log/
- It may be necessary to "fixup" the new volume: # cd /mnt/log ; /sbin/restorecon -R *
- Edit the /etc/fstab file to mount the new volume at /var/log
- Reboot
AFAIK, that's the extent of what's needed. Looking at the directory listings using "ls -lZ" seems to show the correct SELinux flags on the files between the two different directories.
No comments:
Post a Comment