Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Help with autos and mount bind Post 302919391 by maverick_here on Wednesday 1st of October 2014 01:44:29 AM
Old 10-01-2014
RedHat Help with autos and mount bind

I have a sftp server running on Centos 5.10. It servers as upload/download interface for three users who basically are chrooted to three different locations.
Code:
User A -- >  /home/REGIONA/

User B -- > /home/REGIONB/

User C -- > /home/REGIONC/

The users run certain application procedures on app servers and on the app servers the code uploads data to the sftp server, there are three app servers for three users

Say
Code:
APP server A

APP server B

App server C

I have setup the autofs mounts on the Apps servers, where the application code upon completion will go to the mount point and dump the data


example


Code:
/sftp/REGIONA/upload   --> from APP server A

/sftp/REGIONB/upload   --> from APP server B

/sftp/REGIONC/upload  --> from APP server C

Everything works fine.


Now coming to the issue, I have a requirement of making the "UPLOAD" region common across all the three app servers so what i did was


mkdir /opt/upload

Code:
mount -o bind,rw /opt/upload /home/REGIONA/upload

mount -o bind,rw /opt/upload /home/REGIONB/upload

mount -o bind,rw /opt/upload /home/REGIONC/upload

Now, this works OK if i upload data from filezilla/winscp


However from the App servers which do a autofs mount of the remote ( sftp ) servers filesystems , they are not recognizing upload to be a bound mount.When I upload data
programmatically from the app servers the data si not visible


for example

From APP server A I run the script / application code

I does not show up on /home/REGIONA/upload

and when I umount /home/REGIONA/upload, it shows up.


I figure its an issue with autofs recognizing an underlying mount binded sub directory on the remote filesystem.

Any ideas ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

Hi... question is this: How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure. ... (4 Replies)
Discussion started by: soulshaker
4 Replies

2. UNIX for Advanced & Expert Users

mount -t cifs permission denied by mount -t smbfs works fine

I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password="" mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies

3. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

4. UNIX for Dummies Questions & Answers

mount --bind

I read it create hard link but I want to be sure, what does this command do exactly? Thank in advance. (1 Reply)
Discussion started by: programAngel
1 Replies

5. UNIX for Dummies Questions & Answers

Can't bind to IP

When you get the message can't bind to ip already in use. is there a command to search to see everything that is using that IP? I've already check the host and hostname files (2 Replies)
Discussion started by: mchelle_99
2 Replies

6. Shell Programming and Scripting

Script to mount nas-share using generated credentials (mount EC 13,32)

Heyas At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it. EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...). Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies

7. Red Hat

Linux Bind mount issues.

Hi All, we have an issue in bind mounting LINUX. we are able to see the bound mounts in mount command and df -h <file system name> but they are not visible in normal df -h command. all these mounts are local mounts. we have a /xyz is mount and abc is a directory in /xyz ( /xyz/abc ) ... (1 Reply)
Discussion started by: Naveen.6025
1 Replies

8. UNIX for Beginners Questions & Answers

Mount point bind issues

Hi ALL I am unable to do mount bind to connect new storage Once I run the below commands both file systems were empty Code: mount --bind /prod/OpenCSS /var/lib/test Code: echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab Please use code tags for code and data (9 Replies)
Discussion started by: anil529
9 Replies

9. UNIX for Advanced & Expert Users

Bind

Hi All I need to do bind of exiting filesystem to new storage allocated mount --bind /prod/OpenCSS /var/lib/test echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab will this command just work ? (2 Replies)
Discussion started by: anil529
2 Replies

10. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies
GIT-REMOTE-EXT(1)						    Git Manual							 GIT-REMOTE-EXT(1)

NAME
git-remote-ext - Bridge smart transport to external command. SYNOPSIS
git remote add <nick> "ext::<command>[ <arguments>...]" DESCRIPTION
This remote helper uses the specified <command> to connect to a remote Git server. Data written to stdin of the specified <command> is assumed to be sent to a git:// server, git-upload-pack, git-receive-pack or git-upload-archive (depending on situation), and data read from stdout of <command> is assumed to be received from the same service. Command and arguments are separated by an unescaped space. The following sequences have a special meaning: '% ' Literal space in command or argument. %% Literal percent sign. %s Replaced with name (receive-pack, upload-pack, or upload-archive) of the service Git wants to invoke. %S Replaced with long name (git-receive-pack, git-upload-pack, or git-upload-archive) of the service Git wants to invoke. %G (must be the first characters in an argument) This argument will not be passed to <command>. Instead, it will cause the helper to start by sending git:// service requests to the remote side with the service field set to an appropriate value and the repository field set to rest of the argument. Default is not to send such a request. This is useful if remote side is git:// server accessed over some tunnel. %V (must be first characters in argument) This argument will not be passed to <command>. Instead it sets the vhost field in the git:// service request (to rest of the argument). Default is not to send vhost in such request (if sent). ENVIRONMENT VARIABLES
: GIT_TRANSLOOP_DEBUG If set, prints debugging information about various reads/writes. ENVIRONMENT VARIABLES PASSED TO COMMAND
: GIT_EXT_SERVICE Set to long name (git-upload-pack, etc...) of service helper needs to invoke. GIT_EXT_SERVICE_NOPREFIX Set to long name (upload-pack, etc...) of service helper needs to invoke. EXAMPLES
: This remote helper is transparently used by Git when you use commands such as "git fetch <URL>", "git clone <URL>", , "git push <URL>" or "git remote add <nick> <URL>", where <URL> begins with ext::. Examples: "ext::ssh -i /home/foo/.ssh/somekey user@host.example %S foo/repo" Like host.example:foo/repo, but use /home/foo/.ssh/somekey as keypair and user as user on remote side. This avoids needing to edit .ssh/config. "ext::socat -t3600 - ABSTRACT-CONNECT:/git-server %G/somerepo" Represents repository with path /somerepo accessible over git protocol at abstract namespace address /git-server. "ext::git-server-alias foo %G/repo" Represents a repository with path /repo accessed using the helper program "git-server-alias foo". The path to the repository and type of request are not passed on the command line but as part of the protocol stream, as usual with git:// protocol. "ext::git-server-alias foo %G/repo %Vfoo" Represents a repository with path /repo accessed using the helper program "git-server-alias foo". The hostname for the remote server passed in the protocol stream will be "foo" (this allows multiple virtual Git servers to share a link-level address). "ext::git-server-alias foo %G/repo% with% spaces %Vfoo" Represents a repository with path /repo with spaces accessed using the helper program "git-server-alias foo". The hostname for the remote server passed in the protocol stream will be "foo" (this allows multiple virtual Git servers to share a link-level address). "ext::git-ssl foo.example /bar" Represents a repository accessed using the helper program "git-ssl foo.example /bar". The type of request can be determined by the helper using environment variables (see above). SEE ALSO
gitremote-helpers(1) GIT
Part of the git(1) suite Git 2.17.1 10/05/2018 GIT-REMOTE-EXT(1)
All times are GMT -4. The time now is 12:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy