i tried to mount /var to a disk partition in RHEL 6.5 (AWS Virtual box). whenever i do this SSH connectivity is getting lost with this error message "Network connection error".
Followed these steps for performing this activity.
SELINUX=disabled
/* (disabled SELINUX) mkfs.ext4 /dev/xvdb1
/*Formatting drive
mkdir /mnt/var
/*Make /var directory
mount /dev/sdb1 /mnt/var/
cp -axR /var/* /mnt/var/
mv /var/ /var.old
mkdir /var
umount /dev/sdb1
mount /dev/sdb1 /var
Made fstab entry for /var mount point /dev/sdb1 /var ext3 defaults 0 0
After this change, if i open a new session or reboot the machine SSH is not happening to the Linux server. Kindly provide your suggestions if i missed some steps.
Thanks in advance, Robin
Aucun commentaire:
Enregistrer un commentaire