Forked from Blake-/gist:fc00725d519a25a55b3c2368d1ee238d
Created
April 3, 2018 20:54
-
-
Save abradabra/b05a3d45b51a5b22cca8437dba46fe96 to your computer and use it in GitHub Desktop.
Mounting a s3ql file system to the S3 compatible file system at Softlayer on an Ubuntu 16 Xenial VSI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mounting a s3ql file system to the S3 compatible file system at Softlayer on an Ubuntu 16 Xenial VSI | |
apt install s3ql | |
nano /etc/s3ql.authinfo | |
[softlayer-s3] | |
backend-login: somelogin | |
backend-password: thatreallybigkeything | |
storage-url: s3c://s3-api.us-geo.objectstorage.service.networklayer.com | |
chmod 600 /etc/s3ql.authinfo | |
mkfs.s3ql --force --plain --cachedir=/var/cache/s3ql/mounthing/ --authfile=/etc/s3ql.authinfo s3c://s3-api.us-geo.objectstorage.service.networklayer.com/mounthing | |
mkdir /mnt/mounthing | |
chown 777 /mnt/mounthing | |
/etc/systemd/system/s3ql-mounthing.service | |
[Unit] | |
Description=mount s3ql mounthing filesystem | |
Wants=network-online.target | |
After=network-online.target | |
Conflicts=shutdown.target | |
[Service] | |
ExecStart=/usr/bin/mount.s3ql --fg --log=/var/log/s3ql/mounthing.log --cachedir=/var/cache/s3ql/mounthing/ --authfile=/etc/s3ql.authinfo --cachesize=976563 --allow-other --compress=none s3c://s3-api.us-geo.objectstorage.service.networklayer.com/mounthing /mnt/mounthing | |
ExecStop=/usr/bin/umount.s3ql /mnt/mounthing | |
TimeoutStopSec=infinity | |
[Install] | |
WantedBy=multi-user.target | |
systemctl enable s3ql-mounthing | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment