OpenVZ Forum


Home » General » Support » Fuse(sshfs) instead of NFS
Fuse(sshfs) instead of NFS [message #24341] Tue, 04 December 2007 08:59 Go to next message
RobinVossen is currently offline  RobinVossen
Messages: 36
Registered: November 2007
Member
Well,

I am in a Hurry here since we almost hit the DeathLine.
So, well thats why we though about changing from NFS ( http://forum.openvz.org/index.php?t=msg&goto=24234&# msg_24234) to SSHFS (Or at least ANYTHING that does like the same but works..)
I dont care what it is as long as its works.
So I took at look at Fuse+SSHFS.
So I did:
http://wiki.openvz.org/FUSE

Exactly as it said..
I even did change the /etc/ld.so.conf file and I did add the following lines:
/usr/local/lib/libfuse.so.2.7.1
/usr/local/lib/libfuse.so.2


Both the files are there.
But when I do:
sshd _sxb@192.168.1.1:/home_sxb /mnt

I get
Quote:

sshfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

So I took a look at my /usr/local/lib/libfuse.so.2 file..
And it is there.
I tryed to restart the VZbox. but no luck.
And I hope I understand this correctly..
This:
sshd _sxb@192.168.1.1:/home/_sxb /mnt

is runned on the Client were I want to make a SSH-Tunnel for my FileSystem. I want to login with the user _sxb on the box 192.168.1.1 I want to mount the /home/_sxb directory from the 192.168.1.1 box to the /mnt folder of my local box?
The server just needs to have OpenSSH_4.5p1, OpenSSL 0.9.8d
The kernel I use is:
2.6.18-openvz-686


Can anyone help me with this?
Thanks..

Cheers,
Robin
Re: Fuse(sshfs) instead of NFS [message #24343 is a reply to message #24341] Tue, 04 December 2007 09:10 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

1. /etc/ld.so.conf contains list of _directories_ with shared libraries, not the files itself. If you change it, you need to rerun ldconfig.

2. Installing libraries manually and in a non-standard location is a bad practice. Most modern distros come with a packages supporting fuse -- say, for fedora 8 there are fuse, fuse-libs and fuse-sshfs packages available, and you need all three of them in order to mount via ssh.

3. Since you haven't specified which distro do you run inside a VE, I can not help you with determining which packages you need to install.

4.
Quote:

sshd _sxb@192.168.1.1:/home_sxb /mnt

I quess you mean sshfs not sshd here. To avoid such errors please use copy/paste when showing what's happening on your system.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fuse(sshfs) instead of NFS [message #24349 is a reply to message #24343] Tue, 04 December 2007 09:38 Go to previous messageGo to next message
RobinVossen is currently offline  RobinVossen
Messages: 36
Registered: November 2007
Member
kir wrote on Tue, 04 December 2007 04:10

1. /etc/ld.so.conf contains list of _directories_ with shared libraries, not the files itself. If you change it, you need to rerun ldconfig.

Ah, ok. thanks i didnt know that.
But I see now that the /usr/local/lib folder is already in that file.

kir wrote on Tue, 04 December 2007 04:10

2. Installing libraries manually and in a non-standard location is a bad practice. Most modern distros come with a packages supporting fuse -- say, for fedora 8 there are fuse, fuse-libs and fuse-sshfs packages available, and you need all three of them in order to mount via ssh.

I did do exactly what to tutorial said. So I compiled the packages myself.. (Did I screw up.. :/ ??)

kir wrote on Tue, 04 December 2007 04:10

3. Since you haven't specified which distro do you run inside a VE, I can not help you with determining which packages you need to install.

I use Gentoo and I think I need:
sys-fs/sshfs-fuse

kir wrote on Tue, 04 December 2007 04:10

4.
Quote:

sshd _sxb@192.168.1.1:/home_sxb /mnt

I quess you mean sshfs not sshd here. To avoid such errors please use copy/paste when showing what's happening on your system.

How can I copy from a Terminal Box that doesnt have any webbrowser on it?
This is a Terminal Only box.
And yea I did sshfs..

Thanks already.
I hope that my information give you the information you need to help me Smile

Cheers,
Robin
Re: Fuse(sshfs) instead of NFS [message #24356 is a reply to message #24349] Tue, 04 December 2007 09:57 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:

But I see now that the /usr/local/lib folder is already in that file.


And now you need to run ldconfig Smile

Quote:

I use Gentoo and I think I need:
sys-fs/sshfs-fuse


Yeah, I guess at this point it's better to
1. undo your changes to /etc/ld.so.conf
2. rerun ldconfig
3. do 'make uninstall' for fuse and sshfs-fuse (the same way you did 'make install')
4. run 'emerge sshfs-fuse' and it will emerge it and all its dependencies.

After that it should work.

Quote:

How can I copy from a Terminal Box that doesnt have any webbrowser on it?

Perhaps by ssh-ing into it from a system on which you do have a web browser. Alternatively, use a text browser (such as links or elinks). Alternatively, on a "Terminal Box" save what you need into a text file, copy it over the network to your desktop and then open the file and do copy/paste. You see, there are a lot of solutions Smile


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fuse(sshfs) instead of NFS [message #24364 is a reply to message #24356] Tue, 04 December 2007 10:10 Go to previous messageGo to next message
RobinVossen is currently offline  RobinVossen
Messages: 36
Registered: November 2007
Member
kir wrote on Tue, 04 December 2007 04:57


And now you need to run ldconfig Smile


Yeah, I guess at this point it's better to
1. undo your changes to /etc/ld.so.conf
2. rerun ldconfig



Already taken care of. Smile
Now Ill do:
kir wrote on Tue, 04 December 2007 04:57


3. do 'make uninstall' for fuse and sshfs-fuse (the same way you did 'make install')
4. run 'emerge sshfs-fuse' and it will emerge it and all its



And hope it will work..

After that it should work.

Quote:

You see, there are a lot of solutions Smile


heh yea, ok you got me there.
But SSHing using Windows (PuTTY) never is my strong point.
It always messes up when I use nano or Emacs (or Vi).
I dont install links since I simply want to spare the system from having file I dont want/need.

I just have to be a bit cleaner with typing.

Also I checked the Kernel config for it to support NFS or SSHFS. It did, but I did turn something else on. So I have to wait for the kernel to compile now.

Then ill try what you told.

Cheers,
Robin
Re: Fuse(sshfs) instead of NFS [message #24374 is a reply to message #24364] Tue, 04 December 2007 11:28 Go to previous messageGo to next message
RobinVossen is currently offline  RobinVossen
Messages: 36
Registered: November 2007
Member
Ok, I was done with the Kernel.
So I did what you said. I removed them I did emerge and I got that I miss the Linux-Sources.. So Emerge is going to Build something in the Kernel. That means that I cant run it, since well the kernel is a OpenVZ kernel right?
It doesnt have ANY USE flags. so I cant temper with them.
My exact error was:
get_version || die "Unable to calculate Linux kernel Version"
Before that I saw a error saying something about no config file in the LinuxSources.


Well do you think its going to be easyer to try sshfs up now to NFS?
Since I need either..


Cheers,
Robin
Re: Fuse(sshfs) instead of NFS [message #24375 is a reply to message #24374] Tue, 04 December 2007 11:34 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I guess it just wants to check if the kernel config options are fine.

You can emerge openvz-sources (with USE=symlink) and then copy your real kernel .config to /usr/src/linux, after that try emerging fuse again.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fuse(sshfs) instead of NFS [message #24378 is a reply to message #24375] Tue, 04 December 2007 11:56 Go to previous messageGo to next message
RobinVossen is currently offline  RobinVossen
Messages: 36
Registered: November 2007
Member
Well there I have a Problem then..

The Hardware Node is Debian Stable since I had problems with installing it on Gentoo.

So the HN is Debian and the OpenVZs are Gentoo..

Cheers,
Robin
Re: Fuse(sshfs) instead of NFS [message #24435 is a reply to message #24341] Wed, 05 December 2007 08:14 Go to previous message
RobinVossen is currently offline  RobinVossen
Messages: 36
Registered: November 2007
Member
Ok, well I took a look at sshfs.
I think there is a mistake with the kernel. Since I cant compile it in using "make menuconfig"
So I looked back at NFS once. To be sure I can get this up before Friday.. (My Deathline)
I did merge that into the kernel..
Here is a part of my kernel Config:

#
# Network File Systems
#
[b]CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y[/b]
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_RPCSEC_GSS_KRB5=y
CONFIG_RPCSEC_GSS_SPKM3=m
CONFIG_SMB_FS=m
# CONFIG_SMB_NLS_DEFAULT is not set
CONFIG_CIFS=m
# CONFIG_CIFS_STATS is not set
# CONFIG_CIFS_WEAK_PW_HASH is not set
# CONFIG_CIFS_XATTR is not set
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_EXPERIMENTAL is not set
CONFIG_NCP_FS=m
CONFIG_NCPFS_PACKET_SIGNING=y
CONFIG_NCPFS_IOCTL_LOCKING=y
CONFIG_NCPFS_STRONG=y
CONFIG_NCPFS_NFS_NS=y
CONFIG_NCPFS_OS2_NS=y
# CONFIG_NCPFS_SMALLDOS is not set
CONFIG_NCPFS_NLS=y
CONFIG_NCPFS_EXTRAS=y
CONFIG_CODA_FS=m
# CONFIG_CODA_FS_OLD_API is not set
CONFIG_AFS_FS=m
CONFIG_RXRPC=m
CONFIG_9P_FS=m

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
CONFIG_ACORN_PARTITION=y
# CONFIG_ACORN_PARTITION_CUMANA is not set
# CONFIG_ACORN_PARTITION_EESOX is not set
CONFIG_ACORN_PARTITION_ICS=y
# CONFIG_ACORN_PARTITION_ADFS is not set
# CONFIG_ACORN_PARTITION_POWERTEC is not set
CONFIG_ACORN_PARTITION_RISCIX=y
CONFIG_OSF_PARTITION=y
CONFIG_AMIGA_PARTITION=y
CONFIG_ATARI_PARTITION=y
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
CONFIG_LDM_PARTITION=y
# CONFIG_LDM_DEBUG is not set
CONFIG_SGI_PARTITION=y
CONFIG_ULTRIX_PARTITION=y
CONFIG_SUN_PARTITION=y
CONFIG_KARMA_PARTITION=y
CONFIG_EFI_PARTITION=y

#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_CODEPAGE_737=m
CONFIG_NLS_CODEPAGE_775=m
CONFIG_NLS_CODEPAGE_850=m
CONFIG_NLS_CODEPAGE_852=m
CONFIG_NLS_CODEPAGE_855=m
CONFIG_NLS_CODEPAGE_857=m
CONFIG_NLS_CODEPAGE_860=m
CONFIG_NLS_CODEPAGE_861=m
CONFIG_NLS_CODEPAGE_862=m
CONFIG_NLS_CODEPAGE_863=m
CONFIG_NLS_CODEPAGE_864=m
CONFIG_NLS_CODEPAGE_865=m
CONFIG_NLS_CODEPAGE_866=m
CONFIG_NLS_CODEPAGE_869=m
CONFIG_NLS_CODEPAGE_936=m
CONFIG_NLS_CODEPAGE_950=m
CONFIG_NLS_CODEPAGE_932=m
CONFIG_NLS_CODEPAGE_949=m
CONFIG_NLS_CODEPAGE_874=m
CONFIG_NLS_ISO8859_8=m
CONFIG_NLS_CODEPAGE_1250=m
CONFIG_NLS_CODEPAGE_1251=m
CONFIG_NLS_ASCII=m
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_ISO8859_2=m
CONFIG_NLS_ISO8859_3=m
CONFIG_NLS_ISO8859_4=m
CONFIG_NLS_ISO8859_5=m
CONFIG_NLS_ISO8859_6=m
CONFIG_NLS_ISO8859_7=m
CONFIG_NLS_ISO8859_9=m
CONFIG_NLS_ISO8859_13=m
CONFIG_NLS_ISO8859_14=m
CONFIG_NLS_ISO8859_15=m
CONFIG_NLS_KOI8_R=m
CONFIG_NLS_KOI8_U=m
CONFIG_NLS_UTF8=m

#
# Instrumentation Support
#
CONFIG_PROFILING=y
CONFIG_OPROFILE=m
# CONFIG_KPROBES is not set

#
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_PRINTK_TIME is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_UNUSED_SYMBOLS=y
# CONFIG_SYSRQ_DEBUG is not set
# CONFIG_DEBUG_KERNEL is not set
CONFIG_LOG_BUF_SHIFT=15
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_FS=y
# CONFIG_UNWIND_INFO is not set
CONFIG_EARLY_PRINTK=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
CONFIG_DOUBLEFAULT=y

#
# OpenVZ
#
CONFIG_VE=y
CONFIG_VE_CALLS=m
CONFIG_VZ_GENCALLS=y
CONFIG_VE_NETDEV=m
CONFIG_VE_ETHDEV=m
CONFIG_VZ_DEV=m
CONFIG_VE_IPTABLES=y
CONFIG_VZ_WDOG=m
CONFIG_VZ_CHECKPOINT=m 


I have been looking really deep into my error logs.
Stuff that Id find are:
Quote:

nfdssvc: No such device
and
Quote:

Cant find file /lib/modules/2.6.18-openvz-686/modules.dep

I did fix that by making the dir: "/lib/modules/version" and then I runned depmod..
but the files are empty now.. Well I dont know what I do wrong.

Id really love if anyone can help me..

And Kir.. you have already BEEN a LOT of help.
Thank you for everything till this part already Smile

Cheers,
Robin
Previous Topic: Unable to add ip: Address already in use
Next Topic: Adding Swap space to VE
Goto Forum:
  


Current Time: Tue Feb 27 13:29:09 GMT 2024

Total time taken to generate the page: 0.02622 seconds