Sometimes, but only when the database explicitly supports the network filesystem semantics and latency; local durable storage is the safer default.
The decision matters when a containerized PostgreSQL, MariaDB, or SQLite workload is pointed at NFS or SMB for easier central storage. The two competing states are supported locking, fsync, and failure semantics and latency, cache, lock, or reconnect behavior that violates database expectations. Begin with a saved configuration and disposable data, observe one branch at a time, and stop if the test expands data-loss, permission, or availability risk.
Define the Conditions Behind the Database Files On Network Storage Decision
Record the environment before changing anything: software and firmware versions, device identities, mount or network path, free space, permissions, and the observable symptom. The baseline must preserve enough detail to reproduce a containerized PostgreSQL, MariaDB, or SQLite workload is pointed at NFS or SMB for easier central storage.
The first candidate is supported locking, fsync, and failure semantics. The second is latency, cache, lock, or reconnect behavior that violates database expectations. The current PostgreSQL on NFS defines the mechanism or command boundary used in the test; it does not replace observation from this specific home server.
Write the acceptance condition and stop condition before running the discriminator. A pass must change the evidence predicted by one branch while leaving unrelated services unchanged; a fail must return the system to the saved state rather than trigger a chain of speculative fixes.
Test the Claim Without Lowering the Original Requirement
Use this discriminator: restore a disposable database onto the exact mount, run consistency and crash-recovery tests, and simulate a short network outage. Keep workload, client, path, file set, and timing constant so the result is attributable to the changed variable.
Use database network-filesystem risks to select the field that can actually separate the branches, then capture its timestamp, exit status, error text, device or snapshot identity, latency, transferred bytes, permissions, and recovery state. A clean command exit is not enough when identity, durability, or application state is the claim under test.
Repeat the test once after a restart, reconnect, remount, or cold cache when that event is part of the original condition. If the first run is destructive or the environment cannot be restored, stop and reproduce on a disposable copy instead.
Test: sustained transactions -> network interruption -> remount -> database recovery -> checks
Interpret Pass, Fail, and Exception Results
PASS: transactions remain durable and recovery succeeds without corruption under the target latency and mount options. Record the exact version, identity, and workload that passed so the conclusion stays conditional rather than becoming a universal claim.
FAIL: the database hangs, reports lock or fsync errors, or returns after outage with inconsistent state. A fail does not automatically prove the opposite branch when network, memory, permissions, or source consistency can influence both; isolate those shared dependencies before escalating.
EXCEPTION OR AMBIGUOUS RESULT: move database files back to local durable storage and back up or replicate at the application layer. Preserve logs and do not run repair, prune, destroy, repartition, or recursive ownership commands until a recoverable copy exists.
Confirm the Decision Under the Original Workload
Apply the action matched to the observed branch, then repeat the original condition rather than a reduced substitute. The decision holds only when transactions remain durable and recovery succeeds without corruption under the target latency and mount options across two cycles or the relevant reboot, sleep, interruption, or load transition.
Use the database dump workflow to check the nearest dependent workflow, but keep the original trigger unchanged. Unrelated datasets, shares, containers, users, and recovery points must retain their previous access and timing.
The stop boundary is explicit: if the database hangs, reports lock or fsync errors, or returns after outage with inconsistent state, return to the last verified configuration, retain the evidence, and escalate to a deeper platform or hardware test only when the branch is repeatable.
After the target result holds, compare it with the NFS timeout behavior so the fix does not move risk into a neighboring service. A successful target test with a new backup, identity, timeout, or availability failure is still a failed change.
FAQ
For database files on network storage, the remaining searches usually concern is nfs safer than smb for database files, can the database wal stay local while data is remote, and is a network docker volume different from a host nfs mount. The answers below keep those edge cases separate from the primary decision.
The acceptance boundary does not move: transactions remain durable and recovery succeeds without corruption under the target latency and mount options. If a follow-up condition changes the filesystem, identity, network path, or application version, repeat only the discriminator affected by that change.
Stop broadening the experiment when the database hangs, reports lock or fsync errors, or returns after outage with inconsistent state. At that point, move database files back to local durable storage and back up or replicate at the application layer; preserve the evidence before escalating to the platform, storage, or hardware owner.
Is NFS safer than SMB for database files?
Protocol name alone is not enough; database support, server implementation, mount semantics, and latency all matter.
Can the database WAL stay local while data is remote?
Some layouts allow separation, but failure and recovery semantics become more complex and must be tested.
Is a network Docker volume different from a host NFS mount?
The container abstraction does not remove the underlying network filesystem behavior.
For database files on network storage, the practical answer remains conditional: transactions remain durable and recovery succeeds without corruption under the target latency and mount options. When the database hangs, reports lock or fsync errors, or returns after outage with inconsistent state, move database files back to local durable storage and back up or replicate at the application layer; a partial success that cannot survive the original workload is not compatibility.
Support & Tips
More to Read

Can You Replace a Noisy Mini PC Fan Without Changing Thermal Control?
Yesโif the replacement matches the electrical interface, airflow, and feedback signals; connector fit alone does not preserve thermal control.

Can a Home Server Resume Services in Dependency Order After UPS Recovery?
Yesโuse explicit boot dependencies and readiness checks; restart policies alone do not guarantee services become usable in the right order.

Can You Use Wake-on-LAN After a Complete Power Loss?
SometimesโWOL needs standby power and firmware/NIC state to recover after AC returns; it cannot wake a machine while power is absent.

