EC2 - Volumes and Snapshots Flashcards
When creating a new volume…
…make sure it is in the same AZ as your instance, or you will not be able to attach it to your instance
After SSH into instance and elevating privileges, type what to find volumes?
lsblk
To attach a volume…
…you need to format and mount it
To check if a volume has data…
file -s e.g. file -s /dev/xvdf
“data” = no data
To format a volume…
mkfs -t ext4 . ext4 is file format for Linux
To mount a volume…
mount
e.g. mount /dev/xvdf /myfileserver
Which directory is created by default when you mount a volume?
lost+found
To unmount a volume…
umount
If you forget to unmount a volume when you try to detach it…
…use Force Detach
Where are snapshots stored?
S3
When another snapshot is taken…
…only changed data since your last snapshot is sent to S3, since snapshots are incremental
Can you make a volume from a snapshot?
Yes
Can you change the volume type, size when you make a volume from a snapshot?
Yes
What is stored on your root volume?
OS
Think of a snapshot as…
a photograph (point in time copies of volumes)