Open main menu

CDOT Wiki β

Changes

OPS345 Lab 3

681 bytes added, 03:03, 22 September 2021
no edit summary
* mkfs.ext4 -L www /dev/mapper/vg_www-lv_www
* vi /etc/fstab
** /dev/mapper/vg_www-wwwLV1 lv_www /var/www ext4 defaults 0 0
* mount /var/www/
* ls /var/www/
</html>
</source>
* Removing public ip doesn't work. Have to modify subnet and recreate the vm:
** Terminate www, rename it to www-deleted.
** Modify subnet to not auto-assign public IPs.
** Recreate the www instance with the same steps, except specify a primary ip.
** Install httpd, php
** To get yum install to work, allocate a new elastic ip "temporary" and associate with www
** Note that www-data was not deleted when the original www was terminated. Attach it to www now.
** All the data on the logical volume is still there, but fstab is gone, add lv-www back into there.
** Start httpd, everything should be back to as it was.
** Dissasociate the public ip. Everything should keep working.