FAQ
Port conflict - what to do?
Multiple JuiceFS instances on the same node must configure different port values. If you encounter port conflict error:
juice_instances have port conflicts: [9567, 9567]
Assign unique ports to each instance in config:
juice_instances:
fs1:
path: /fs1
meta: postgres://...
port: 9567
fs2:
path: /fs2
meta: postgres://...
port: 9568 # Must be different
How to add new instance?
- Add new instance definition in config
- Execute playbook specifying new instance name
./juice.yml -l 10.10.10.10 -e fsname=newfs
How to remove instance?
- Set instance’s
statetoabsentin config - Execute
juice_cleantask
./juice.yml -l 10.10.10.10 -e fsname=jfs -t juice_clean
Where is filesystem data stored?
Depends on data parameter config:
- PostgreSQL Large Objects: Data stored in PostgreSQL’s
pg_largeobjecttable - MinIO/S3: Data stored in specified bucket in object storage
Metadata is always stored in the PostgreSQL database specified by meta parameter.
What storage backends are supported?
JuiceFS supports multiple storage backends. Common ones in Pigsty:
postgres: PostgreSQL large object storageminio: MinIO object storages3: AWS S3 or S3-compatible storage
See JuiceFS official docs for full list.
Can I mount same filesystem on multiple nodes?
Yes. Just configure the same meta URL on multiple nodes; JuiceFS handles concurrent access automatically.
First-time formatting only needs to run on one node; other nodes automatically skip formatting.
How to use PITR to recover filesystem?
When using PostgreSQL for metadata and data storage:
- Stop all JuiceFS services
- Use pgBackRest to restore PostgreSQL to target point in time
- Restart PostgreSQL and JuiceFS services
See Administration: PITR Filesystem Recovery for detailed steps.
Can cache directory be customized?
Yes, via juice_cache parameter:
juice_cache: /data/juice # Default
# or
juice_cache: /ssd/juice # Use SSD for cache
How to configure mount options?
Pass extra juicefs mount parameters via instance’s mount field:
juice_instances:
jfs:
path : /fs
meta : postgres://...
mount : --cache-size 102400 --prefetch 3
Common options:
| Option | Description |
|---|---|
--cache-size | Local cache size (MB) |
--prefetch | Prefetch block count |
--buffer-size | Read/write buffer size (MB) |
--max-uploads | Max concurrent uploads |
--open-cache | Open file cache time (seconds) |
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.