Block Storage#

This week we’ll begin to separate the various forms of data in our application into different storage media. Separation of our application data is critical to our application’s ability to scale. This week you’ll update your project to separate the storage in /var/www/html onto the cloud version of an extra hard disk. You’ll also learn how to format and mounts disks on Linux using the command line. This will be mostly a practice run for next week when we create a space for structured storage in an SQL database.


Capacities and Filesystems#

After you’ve done the labs you should be able to implement an additional disk on your VM with the following features:

  • 10 GB of storage

  • Formatted with the ext4 filesystem

  • Mounted on /var/www/html

Keep track of your steps and document the resutls.

Project Documentation#

To meet the project requirements for this week you have to accomplish the following tasks:

  1. Create a persistent disk for storage of your application code and state

  2. Attach the storage to your devbox

  3. Format and mount the persistent disk

  4. Update /etc/fstab to make sure the disk is mounted at boot

Document your progress with the following required items:

  1. The output of the df command with your disk mounted

  2. The contents of your /etc/fstab file