Open main menu

CDOT Wiki β

Changes

OPS345 Lab 6

1,285 bytes removed, 03:42, 28 February 2022
Replaced content with "[http://wiki.littlesvr.ca/wiki/OPS345_Lab_6 This page has moved.]"
* Email overview* Create a new VM named 'email' in vpc-ops345, 10.3.45.12, with an extra 4GB EBS volume, ops345sgemail, email.asmith15.ops345.ca* ssh only from ops345sgprivate* add an iptables rule on router to forward port 2212 to email[http:22, don't forget to edit ops345sg* email_public_ip* same instructions as for vg_www-lv_www but vg_email-lv_email, mounted on /home* but also mount it on /tmp/home, and move everything from /home to /tmp/home before rebooting** can lose access to ssh key if don't do it right - see what happens if mount on /home without<source>[root@email ~]# vi /etc/fstab [root@email ~]# mount /home/[root@email ~]# ls /home/lost+found# try to ssh now, it won't work[root@email ~]# umount /home/[root@email ~]# mkdir /tmp/home[root@email ~]# mount /dev/mapper/vg_email-lv_email /tmp/home/[root@email ~]# cd /home/[root@email home]# ls -awiki. littlesvr.. andrew[root@email home]# mv andrew/ /tmp/home/[root@email home]# cd /[root@email /]# ls /homeca/[root@email wiki/]# ls /tmp/home/andrew lost+found[root@email /]# umount /tmp/home/[root@email /]# ls /tmp/home/[root@email /]# ls /home/[root@email /]# mount /home/[root@email /]# ls -a /home/andrew/. OPS345_Lab_6 This page has moved.. .bash_history .bash_logout .bash_profile .bashrc .ssh[root@email /]# reboot # and confirm can still log in. if not - have to rebuild email vm</source>