Guest User

Untitled

a guest
Oct 21st, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Mounting a s3ql file system to the S3 compatible file system at Softlayer on an Ubuntu 16 Xenial VSI
  2.  
  3. apt install s3ql
  4.  
  5. nano /etc/s3ql.authinfo
  6.  
  7. [softlayer-s3]
  8. backend-login: somelogin
  9. backend-password: thatreallybigkeything
  10. storage-url: s3c://s3-api.us-geo.objectstorage.service.networklayer.com
  11.  
  12.  
  13. chmod 600 /etc/s3ql.authinfo
  14.  
  15.  
  16. mkfs.s3ql --force --plain --cachedir=/var/cache/s3ql/mounthing/ --authfile=/etc/s3ql.authinfo s3c://s3-api.us-geo.objectstorage.service.networklayer.com/mounthing
  17.  
  18.  
  19. mkdir /mnt/mounthing
  20. chown 777 /mnt/mounthing
  21.  
  22. /etc/systemd/system/s3ql-mounthing.service
  23.  
  24. [Unit]
  25. Description=mount s3ql mounthing filesystem
  26. Wants=network-online.target
  27. After=network-online.target
  28. Conflicts=shutdown.target
  29.  
  30. [Service]
  31. 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
  32. ExecStop=/usr/bin/umount.s3ql /mnt/mounthing
  33. TimeoutStopSec=infinity
  34.  
  35. [Install]
  36. WantedBy=multi-user.target
  37.  
  38.  
  39.  
  40. systemctl enable s3ql-mounthing
Add Comment
Please, Sign In to add comment