YulePale
YulePale

Reputation: 7686

Is volume in aws like a hard drive that the instance uses?

I am learning about aws and using ec2 instances. I am trying to understand what a volume is.

I have read from the aws site that:

An Amazon EBS volume is a durable, block-level storage device that you can attach to your instances. After you attach a volume to an instance, you can use it as you would use a physical hard drive.

Is it where things are stored when I install things like npm and node? Does it function like the harddrive o my server?

Upvotes: 0

Views: 652

Answers (3)

kru
kru

Reputation: 553

AWS EBS is block storage volume, and for the ease of understanding, yes you can consider it same as hard drive, however with more benefits over traditional hard drive. few of them are:

  • You can increase/decrease size of the storage as per your requirement (Hence name Elastic)
  • You can add multiple ebs to your instances, for example 20 GB of volume1 and 30 GB of volume2
  • And for the question you asked if you can install npm & node yes you can as it would be attached to your EC2 instance and your instance can easily utilised attached data, modules,etc

For further explanation you can refer this user guide from AWS on EBS: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes.html

Upvotes: 4

Jatin Mehrotra
Jatin Mehrotra

Reputation: 11523

where things are stored when I install things like npm and node

  • Yes, technically ebs volume is virtual storage drive which is connected to your instance through network, ( flash drive connected over network).
  • Since network is involved which implicitly means there will be some latency because of data transfer through network.
  • The data is persistent even if instance stops,terminates, hibernates or hardware failure.
  • Since it is network drive it can be attached or detached to any other instance.

Adding to this there is another type of storage which you will find called as instance store

  • You can specify instance store volumes for an instance only when you launch it. You can't detach an instance store volume from one instance and attach it to a different instance.
  • it gives very high IOPS because it is directly (physically) attached to instance.
  • The use case for instance store would where data changes rapidly like for cache or buffers.
  • Your data will be lost if any of these events happens like The underlying disk drive fails The instance stops, instance hibernates instance terminates or drive failure.

Upvotes: 2

Fabián Bertetto
Fabián Bertetto

Reputation: 1966

Yes it is exactly like a hard drive on your server and you can have multiple devices.

The cool thing is that you also can expand them if you need extra space.

Upvotes: 3

Related Questions