User Tools

Site Tools


mounting_storage_server_shares

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mounting_storage_server_shares [2016/05/17 18:57]
132.216.122.49
mounting_storage_server_shares [2016/11/03 17:23] (current)
Line 36: Line 36:
   ​   ​
 You should be able to login without requiring your password You should be able to login without requiring your password
- 
  
 ===== Install SSHFS ===== ===== Install SSHFS =====
Line 45: Line 44:
  
 A mount point is a directory on your system where the content in a remote directory appears on your workstation. The standard location for mount points on linux and unix systems us `/mnt`. A mount point is a directory on your system where the content in a remote directory appears on your workstation. The standard location for mount points on linux and unix systems us `/mnt`.
 +
 +IMPORTANT: To ensure that mount points continue to work and are still available (not clobbered) when LDAP mounts users home directories to `/​home/​username` we will avoid mounting file systems to users current home directories and use the standard convention of mounting file systems to the designated temporary mount point `/mnt` as described in the [[https://​en.wikipedia.org/​wiki/​Filesystem_Hierarchy_Standard]] and illustrated in the examples below:
  
 Syntax Syntax
  
-    ​/​mnt/<​user name>/< ​server ​>-< directory >+(using all lower case) 
 + 
 +  ​/​mnt/<​user name>/< ​short host name >-< directory >
  
 ==== Mount Point Examples ==== ==== Mount Point Examples ====
  
-    ​/​mnt/​asmith/​storage-2-home +  ​/​mnt/​asmith/​storage-2-home 
-    /​mnt/​asmith/​storage-2-shared +  /​mnt/​asmith/​storage-2-shared 
-    /​mnt/​asmith/​storage-2-datasets+  /​mnt/​asmith/​storage-2-datasets
  
-==== Optional Mount Points ​====+===== /​etc/​fuse.conf ​===== 
 + 
 +Ensure that `user_allow_other` is in /​etc/​fuse.conf and that it is uncommented so that users are able to mount file systems. (Our current LDAP configuration requires this as well). 
 + 
 +  ###############################################################################​ 
 +  # Ansible managed: last modified on 2016-04-05 13:09:11 by ace-ws-32 
 +  # /​etc/​fuse.conf 
 +  # root:fuse 644 
 +  # 
 +  # Allow fuse to use allow_othe and allow_root options - CentOS and Ubuntu 
 +  # 
 +  # 0.1 2016-03-31 - ppatterson - Initial file 
 +  ###############################################################################​ 
 +   
 +  user_allow_other
  
-    /​mnt/​asmith/​storage-2-taskforce-2016 
-  
 2. Connect it to the data directory on ace-storage-2 2. Connect it to the data directory on ace-storage-2
  
-  ​sshfs myusername@ace-storage-2.cbrain.mcgill.ca:/​path/to/some/data mywork+Syntax 
 + 
 +  ​sshfs < user name >@< server name >:/​path/​to/​some/​data <mount point> 
 +   
 +Example 
 + 
 +  sshfs asmith@ace-storage-2.cbrain.mcgill.ca:/​home/users/asmith ​/mnt/​asmith/​storage-2-home
   ​   ​
-Replace '​myusername'​ by your username on ace-storage-2,​ and /​path/​to/​some/​data by the real location of what you're trying to access. That's it! Look into "​mywork"​ to see your files. ​More information and options are described in [[https://​wiki.archlinux.org/​index.php/​sshfs]]+More information and options are described in [[https://​wiki.archlinux.org/​index.php/​sshfs]]
  
 ===== Mount Directories Permanently ===== ===== Mount Directories Permanently =====
Line 76: Line 97:
 Add the following Add the following
  
-  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​home/​users/<​your_user>​ /​mnt/​storage2-home fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0 +  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​home/​users/<​your_user>​ /mnt/<​your_user>​/​storage2-home fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0 
-  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​data1/​ACElab_Shared /​mnt/​storage2-shared fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0 +  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​data1/​ACElab_Shared /mnt/<​your_user>​/​storage2-shared fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0 
-  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​data1/​Raw_Study_Data /​mnt/​storage2-datasets fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0+  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​data1/​Raw_Study_Data /mnt/<​your_user>​/​storage2-datasets fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0
   ​   ​
 ====== Access SAMBA Shares With Linux ====== ====== Access SAMBA Shares With Linux ======
mounting_storage_server_shares.1463511459.txt.gz · Last modified: 2016/11/03 17:23 (external edit)