Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abradabra/b05a3d45b51a5b22cca8437dba46fe96 to your computer and use it in GitHub Desktop.
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
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