[Lustre-discuss] lustre and rssh

Eudes PHILIPPE eudes at cisneo.fr
Tue Jan 4 08:37:13 PST 2011


Ouah !

I compil new kernel and lustre for client, in 32 bits

And sftp chroot works fine


Have an idea why it’s a problem in 64 bits? I think it would be better to
have the client in 64-bit?


De : lustre-discuss-bounces at lists.lustre.org
[mailto:lustre-discuss-bounces at lists.lustre.org] De la part de Eudes
PHILIPPE
Envoyé : mardi 4 janvier 2011 09:57
À : 'lustre-discuss'
Objet : Re: [Lustre-discuss] lustre and rssh

I’ll try another system
 very very strange
 using chroot system on openssh
http://www.debian-administration.org/articles/590

chown root.root /home/user
mkdir /home/user/backup
chown user:sftponly /home/user/backup

when I’ve not lustre mounted, it’ work fine:
sftp  user at 127.0.0.1
pwd
Remote working directory: /backup
sftp> mkdir test
sftp> ls
test

now..
mount -t lustre -o flock,auto 192.168.45.20 at tcp0:/mdsT /home
df -h
192.168.45.20 at tcp0:/mdsT   3,0G  102M  2,8G   4% /home

sftp  user at 127.0.0.1
pwd
Remote working directory: /backup
sftp> ls
Couldn't get handle: Failure
sftp> mkdir test
Couldn't create directory: Failure
Exit

Retry again :
sftp  user at 127.0.0.1
sftp> pwd
Remote working directory: /
sftp> ls
Couldn't get handle: Failure
sftp> cd /backup
Couldn't canonicalise: Failure



Have an idea?






De : lustre-discuss-bounces at lists.lustre.org
[mailto:lustre-discuss-bounces at lists.lustre.org] De la part de Eudes
PHILIPPE
Envoyé : mardi 4 janvier 2011 09:16
À : 'lustre-discuss'
Objet : [Lustre-discuss] lustre and rssh

Hi,

I’ve a strange problem with rssh on my client. It’s impossible to make a
chroot environnement on the mounted mds.

Mds is mounted on /home.
If I umount /home, and make my chroot environnement, it work fine (copy
librairies on /home/system, and cp –Rl /home/system to /home/users/user1)


When I mount /home (lustre), connection always close.. (copy librairies on
/home/system, and cp –Rl /home/system to /home/users/user1)

sftp -v user1 at 127.0.0.1
.
.
.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow at openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 1424, received 1960 bytes, in 0.1 seconds
Bytes per second: sent 16860.4, received 23206.8
debug1: Exit status 1
Connection closed


I see on google I must mount with option flock, but it’s the same problem.

Someone have an idea howto chroot sftp environnement on lustre?

Regards




More information about the lustre-discuss mailing list