Network storage
Quick answer
NFS and SMB expose remote file access; object storage typically accesses objects by key through an API. Choose based on application requirements, identity and failure behavior.
Prepare the practice environment
Run python3 lab-fixtures/backup/setup.py from the extracted root as an ordinary user. Enter the printed fresh private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. Only disposable regular files may be written. Optional examples require an authorized snapshot VM. Never substitute real devices, mount remote shares or change storage configuration. Review the lab guide.
How it works
NFS is common in Unix environments; SMB is common in mixed Windows/Linux environments. Both require server authorization, compatible client identity, network connectivity and filesystem semantics. NFS export policy and client mount policy are separate; an SMB share needs server permissions and appropriate credentials. Do not place passwords in mount options visible to other users. Object stores do not automatically provide POSIX locking, rename or directory semantics. Latency and outages can interrupt access, and a mounted remote path is not a backup merely because it is remote. Use the fictional sample fstab to compare protocols; do not install it.
A client may read a remote file successfully without proving that the server has an independent backup or that a later client can recover the same version. Before choosing network storage for an application, check its required locking, rename, permission and failure-recovery behavior against the actual protocol and server configuration. The sample mount table is only a declaration; no network storage service is contacted.
Try the examples
findmnt --fstab --tab-file ./network.fstab -rn -o TARGET,FSTYPERead configuration only, without contacting servers. cifs is the Linux mount type commonly used for SMB.
Expected stdout:
/mnt/lab-nfs nfs/mnt/lab-smb cifsThe modeled object API is separate from network filesystem mounting.
Expected stdout:
object-apiOn an authorized disposable NFS server VM only, inspect current exports. Do not change exports or connect to a real remote share.
Manual example; not executed locally. Follow its stated environment restrictions.
Common mistakes
Do not assume network storage has local-disk behavior or that remote storage is an independent retained backup. Never bypass server authorization.
Practice
Inspect network.fstab; identify NFS and SMB, then describe an application requiring POSIX file locking and why an object API needs separate evaluation.
Related references
Study: mount, exportfs. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Network storage — Knowledge Check
Apply advanced storage and backup concepts to synthetic fixtures and VM-only scenarios.
Which protocol commonly uses cifs mount type?
What controls which clients may access NFS shares?
Does object storage always implement POSIX rename?
Is a remote mounted share automatically a retained backup?