EC2 - Volumes and Snapshots Flashcards

1
Q

When creating a new volume…

A

…make sure it is in the same AZ as your instance, or you will not be able to attach it to your instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

After SSH into instance and elevating privileges, type what to find volumes?

A

lsblk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

To attach a volume…

A

…you need to format and mount it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To check if a volume has data…

A

file -s e.g. file -s /dev/xvdf

“data” = no data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To format a volume…

A

mkfs -t ext4 . ext4 is file format for Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To mount a volume…

A

mount

e.g. mount /dev/xvdf /myfileserver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which directory is created by default when you mount a volume?

A

lost+found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

To unmount a volume…

A

umount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If you forget to unmount a volume when you try to detach it…

A

…use Force Detach

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where are snapshots stored?

A

S3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When another snapshot is taken…

A

…only changed data since your last snapshot is sent to S3, since snapshots are incremental

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can you make a volume from a snapshot?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can you change the volume type, size when you make a volume from a snapshot?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is stored on your root volume?

A

OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Think of a snapshot as…

A

a photograph (point in time copies of volumes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

If you create a snapshot for the first time…

A

…it may take some time to create