Project

Profile

Help

SSHFS setup for linking repo and LOGS dir

How to create mount

On the slave perform following commands (for getting instant but temporary (till first reboot) solution):

sudo apt-get install sshfs
cd $HOME
mkdir LOGS/ repo/ repository/
sudo sshfs -o allow_other,reconnect vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
sudo sshfs -o allow_other,reconnect vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
sudo sshfs -o allow_other,reconnect vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository

For getting reboot-resistant solution add following lines to /etc/fstab:

sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository

How to check that mount exists

Run "mount". Output should contain:

vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS on /home/vagrant/LOGS type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
vagrant@max-tst-01.mariadb.com:/home/vagrant/repo on /home/vagrant/repo type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
vagrant@max-tst-01.mariadb.com:/home/vagrant/repository on /home/vagrant/repository type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)

Links