Primero que todo es necesario deshabilitar SELINUX o lidiar con él.
yo prefiero deshabilitarlo editando el archivo /etc/selinux/config
cambiando la linea
SELINUX=enforcing
por
SELINUX=disable
es necesario reiniciar el sistema
1) make the new partition, & format with mkfs.ext3
SELINUX=enforcing
por
SELINUX=disable
es necesario reiniciar el sistema
1) make the new partition, & format with mkfs.ext3
2) mount the new filesystem in /mnt
# mkdir /mnt/newvar
# mount /dev/sdb1 /mnt/newvar
3) Go to single-user mode so that there is no rw activity on the directory during the process
# init 1
4) Backup data in var only (not the /var directory itself)
# cd /var
# cp -ax * /mnt/newvar
5) Rename the /var directory (to make sure this has worked before deleting it!)
# cd /
# mv var var.old
6) Make new var directory
# mkdir /var
7) Unmount the new partition
# umount /dev/sdb1
8) Remount it as /var
# mount /dev/sdb1 /var
9) If everything goes fine then put an entry into /etc/fstab
/dev/sdb1 /var ext3 defaults 0 0
No hay comentarios:
Publicar un comentario