Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@assignUser
Copy link

assignUser commented Dec 1, 2021

This did not work for me currently (Ubuntu 20.04, s3ql 3.8.0) as the unmounting was immediatly killed and the fs corrupted. It just needs a small fix to make it work by adding Type=notify to [Service] and the (new?) --systemd flag to the mount command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment