Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Storage & infrastructureLinux + IT series

Block vs File vs Object storage

Block, file and object storage are the three building blocks behind almost every server and cloud setup. Choosing the wrong one makes things slow, expensive, or both.

Quick reference

BlockFileObject
Looks likeA raw diskFolders and filesObjects in a bucket
Accessed byOne serverMany, NFS/SMBAnyone, HTTPS
ExamplesEBS, iSCSINFS, SMB, EFSS3, MinIO, Blob
Edit in place✅ Yes✅ Yes❌ Replace object
Scales to🟡 One volume🟡 Large✅ Near unlimited
Best forDatabases, VMsShared filesBackups, media

How to pick

  • Block → databases and VM disks that need low latency.
  • File → shared folders that people and apps use together.
  • Object → backups, archives and huge amounts of static data.

Explained

Block storage looks like a raw disk. The server formats it with a filesystem and mounts it. AWS EBS, an iSCSI LUN from a SAN, and the virtual disk of a VM are all block storage. It gives the lowest latency and lets you change any byte in place, which is exactly what databases need. Usually one server uses one volume at a time.

File storage looks like folders and files, shared over the network with NFS or SMB. Many servers and users can read and write the same files at once. File shares, home directories and AWS EFS are file storage. It is the natural choice for shared team files and applications that expect a normal filesystem path.

Object storage stores whole objects in a bucket, each with a key and metadata, accessed over HTTPS with an API. Amazon S3, MinIO and Azure Blob are object storage. You cannot edit part of an object, you replace it. In exchange, it scales to practically unlimited size, is very durable, and is usually the cheapest per gigabyte.

How to choose

A database or VM disk: block. Folders that several people or servers share: file. Backups, archives, logs, images and video, website assets: object. With versioning and object lock, it is also a strong defence against ransomware deleting your backups.

Match the storage to how the data is accessed.

In one line

Match the storage to the access. How the data is used decides where it should live.

See your block devices

lsblk -f

More notes: Storage & infrastructure

Open in the notes app: search, filters, copy This note on GitHub