OpenVZ Forum


Home » General » Support » sftp / mount problem
sftp / mount problem [message #27094] Sat, 09 February 2008 00:04 Go to next message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
I have the following setup:

directory /abc on the HW node

and a mount file for VE 2020

mount -n -o ro --bind /abc /vz/root/2020/home/backup/files


when I enter the VE and go to /home/backup/files, I see the content of /abc

when I log in to the VE with sftp (from a remote machine), I see /home/backup/files, I see the other files in /home/backup, but when I step in /home/backup/files/, the directory appears empty.

All files being chmod'ed to 777 to allow easy testing

Any ideas what to look at / for?

Re: sftp / mount problem [message #27176 is a reply to message #27094] Mon, 11 February 2008 17:42 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Can you please specify kernel you use?
How did you log via sftp?
I do the same on 2.6.18-028stab053 and was success.
Re: sftp / mount problem [message #27189 is a reply to message #27094] Mon, 11 February 2008 18:54 Go to previous messageGo to next message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
here:
$ uname -r
2.6.18-53.1.4.el5.028stab053.4


What I think really weird is that the files do not appear only with sftp but they appear with ssh...
Re: sftp / mount problem [message #27321 is a reply to message #27189] Thu, 14 February 2008 16:46 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Have you made any changes on your system recently?
You might have added a new partition or something.
Does /abc locate on the peculiar partition?
Do you observe this strange behavior while mounting only /abc or it happens with other directories too?
Re: sftp / mount problem [message #27496 is a reply to message #27094] Mon, 18 February 2008 23:16 Go to previous messageGo to next message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
No other changes, but it seems to happen to all folders outside of the VE that I mount so that they become visible from within the VE.

(I got hospitalized last Thu, and I'm still there so I can't do much testing but check email / forum))
Re: sftp / mount problem [message #27590 is a reply to message #27496] Wed, 20 February 2008 08:19 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

I wish you get better!

Can you please tell us what exact OS template do you use for your VPS and what version of sftp inside VPS? If it is possible (inside VPS)
rpm -qa | grep ssh

What OS on the HN?
Have you changed any configuration files?


Re: sftp / mount problem [message #27619 is a reply to message #27590] Thu, 21 February 2008 07:47 Go to previous message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
thanks! just got out yesterday Very Happy

here we go:
# rpm -qa | grep ssh
openssh-server-4.3p2-16.el5
rssh-2.3.2-1.2.el5.rf
openssh-4.3p2-16.el5
openssh-clients-4.3p2-16.el5


I'm running CentOS 5, using the minimal template from this site. And the HN is CentOS 5 too.

Is it possible that some of the rights that exist when logging with ssh get dropped / lost when moving to sftp? (just a random guess)
Previous Topic: How to do live migrate of VPS over 30gb?
Next Topic: No Local Loopback with OpenVz and Ubuntu
Goto Forum:
  


Current Time: Tue Nov 05 15:46:48 GMT 2024

Total time taken to generate the page: 0.03722 seconds