Mounting Multiple File Systems
More than one file system can be mounted on a single machine as long as the following conditions are met:
1. They must be different file systems, i.e., either the S3Bucket and/or S3KeyPrefix parameters must be different.
2. The mount points must be different.
3. They must use different cache files (CacheFilename).
While not required, it is recommend to:
4. Use different log files (LogFilename).
5. Use different pid files (PidFilename).
One way to accomplish this is to have two different config files (for example, /etc/persistentfs1.conf and /etc/persistentfs2.conf), and mount the file systems using
/sbin/persistentfs /mnt/pfs1 -o allow_other --config=/etc/persistentfs1.conf
/sbin/persistentfs /mnt/pfs2 -o allow_other --config=/etc/persistentfs2.conf
Another way to accomplish this is to put the common parameters in the default config file, /etc/persistentfs.conf, and then place the unique parameters on the command line:
/sbin/persistentfs /mnt/pfs1 -o allow_other --S3KeyPrefix=pfs1 --CacheFilename=/mnt/persistentfs1.cache --LogFilename=/var/log/persistentfs1.log --PidFilename=/var/run/persistentfs1.pid
/sbin/persistentfs /mnt/pfs2 -o allow_other --S3KeyPrefix=pfs2 --CacheFilename=/mnt/persistentfs2.cache --LogFilename=/var/log/persistentfs2.log --PidFilename=/var/run/persistentfs2.pid
- Login to post comments
