Examples
Common setups where PolicyFS handles storage routing, tiering, and HDD spindown. New content lands on fast
SSD; a nightly pfs move migrates older files to the HDD archive tier. Apps always see a single,
stable mountpoint.
Media library
Your ingest/organizer writes new files into the SSD fast tier. Apps read and update the library through the
same mount, while indexed HDD paths serve readdir/getattr from
index.db without waking disks. A nightly pfs move migrates eligible files during
your maintenance window.
pfs move
migrates older files to HDD during maintenancepfs move → pfs prune →
pfs index
index.db) — HDDs never wake up just for a file listing.
/mnt/pfs/media/ingest/ → lands on SSDs only. HDDs stay
asleep.
pfs prune)
hd-idle (or
hdparm -S) is what physically spins the disk down after an idle timeout.
NVR / CCTV
Frigate writes new clips and recordings to the SSD fast tier for fast access. Older footage is migrated to
the HDD archive tier by pfs move on a schedule (systemd timer/cron) — or triggered manually.
Frigate reads back through the same mount: recent clips come off SSD, archived footage off HDD.
pfs move migrates
older segments during maintenance
pfs move migrates segments past a configurable age to HDDpfs move → pfs prune →
pfs index (if indexed)
pfs move after the age threshold. Disk sleeps until you review old footage.
clips/ on SSD.
No HDD involved at all.
recordings/ → lands on SSD
only. HDDs sleep through it.
pfs prune.
The use cases reference has annotated configuration examples for each setup.