devxvda1 l s al devdiskby uuid Assuming that you find devxvda1 to have UUID

Devxvda1 l s al devdiskby uuid assuming that you find

This preview shows page 745 - 748 out of 928 pages.

/dev/xvda1 • l s -al /dev/disk/by-uuid/ Assuming that you find /dev/xvda1 to have UUID de9a1ccd- a2dd-44f1-8be8-0123456abcdef , you would add the following entry to /etc/fstab to mount an ext4 file system at mount point /data : 734
Image of page 745
Amazon Elastic Compute Cloud User Guide for Linux Instances EBS Volumes UUID=de9a1ccd-a2dd-44f1-8be8-2d4275cb85a3 /data ext4 defaults,nofail 0 2 Note If you ever intend to boot your instance without this volume attached (for example, so this volume could move back and forth between different instances), you should add the nofail mount option that allows the instance to boot even if there are errors in mounting the volume. Debian derivatives, including Ubuntu versions earlier than 16.04, must also add the nobootwait mount option. d. After you've added the new entry to /etc/fstab , you need to check that your entry works. Run the sudo mount -a command to mount all file systems in /etc/fstab . [ec2-user ~]$ sudo mount -a If the previous command does not produce an error, then your /etc/fstab file is OK and your file system will mount automatically at the next boot. If the command does produce any errors, examine the errors and try to correct your /etc/fstab . Warning Errors in the /etc/fstab file can render a system unbootable. Do not shut down a system that has errors in the /etc/fstab file. e. (Optional) If you are unsure how to correct /etc/fstab errors, you can always restore your backup /etc/fstab file with the following command. [ec2-user ~]$ sudo mv /etc/fstab.orig /etc/fstab 8. Review the file permissions of your new volume mount to make sure that your users and applications can write to the volume. For more information about file permissions, see File security at The Linux Documentation Project . Viewing Volume Information You can view descriptive information for your Amazon EBS volumes in a selected region at a time in the AWS Management Console. You can also view detailed information about a single volume, including the size, volume type, whether or not the volume is encrypted, which master key was used to encrypt the volume, and the specific instance to which the volume is attached. To view information about an EBS volume using the console 1. Open the Amazon EC2 console at . 2. In the navigation pane, choose Volumes . 3. To view more information about a volume, select it. To view information about an EBS volume using the command line You can use one of the following commands. For more information about these command line interfaces, see Accessing Amazon EC2 (p. 3) . describe-volumes (AWS CLI) Get-EC2Volume (AWS Tools for Windows PowerShell) 735
Image of page 746
Amazon Elastic Compute Cloud User Guide for Linux Instances EBS Volumes Monitoring the Status of Your Volumes Amazon Web Services (AWS) automatically provides data, such as Amazon CloudWatch metrics and volume status checks, that you can use to monitor your Amazon Elastic Block Store (Amazon EBS) volumes.
Image of page 747
Image of page 748

You've reached the end of your free preview.

Want to read all 928 pages?

  • Spring '16
  • ........., Amazon Web Services, Amazon Elastic Compute Cloud, Amazon Virtual Private Cloud

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture