sshfs mountpoint anzeigen

Backup, Restore und Transfer von Daten
mipau
Posts: 6
Joined: 2011-11-22 14:23
 

sshfs mountpoint anzeigen

Post by mipau »

Hallo,
such :google: die ganze Zeit schon, habe aber noch nichts gefunden.
Folgendes, zum Probieren habe ich hier eine VM. Als BS habe ich jeweils ein Debian 5.0 System und mounte ein Laufwerk von Rechner A zu Rechner B. Funktioniert soweit, kann Dateien verschieben erstellen etc.
Wenn ich das Laufwerk ohne sshfs mounte wird mir das auf dem Rechner A auch mit showmount angezeigt. (IP des Rechners der gemountet ist) Bei mount mit sshfs sehe ich aber nichts.
Suche nun eine Lösung. Gibt es da ein Befehl?
Antwort wäre echt nett!
Danke und Gruß.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11183
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: sshfs mountpoint anzeigen

Post by Joe User »

Als root:

Code: Select all

mount
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mipau
Posts: 6
Joined: 2011-11-22 14:23
 

Re: sshfs mountpoint anzeigen

Post by mipau »

jep, hab ich auch schon probiert aber gibt nur folgendes aus:
root@server501 ~ # mount
/dev/md2 on / type ext3 (rw)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/md1 on /boot type ext3 (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
entweder bin ich blind oder es wird nicht angezeigt...
jan10001
Anbieter
Posts: 749
Joined: 2004-01-02 12:17
 

Re: sshfs mountpoint anzeigen

Post by jan10001 »

Vielleicht hilft dir dies hier weiter:
http://wiki.ubuntuusers.de/FUSE/sshfs
User avatar
Joe User
Project Manager
Project Manager
Posts: 11183
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: sshfs mountpoint anzeigen

Post by Joe User »

Bist Du Dir sicher, dass das sshfs gemountet ist? Wie hast Du es gemountet?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mipau
Posts: 6
Joined: 2011-11-22 14:23
 

Re: sshfs mountpoint anzeigen

Post by mipau »

Ja, bin mir sicher da ich auf den Ordner am entfernten Rechner zugreifen kann. Wenn ich eine testdatei anlege ist diese auf dem entfernten Rechner zu sehen. Wenn ich umount ist die Datei auf dem lokalen Rechner nicht da (logisch) und auf dem entfernten Rechner schon.

sshfs root@192.168.200.1/backup/server501 /mnt/backup

--> Bitte nicht am root stören, ist nur ein Testsystem :-D
User avatar
Joe User
Project Manager
Project Manager
Posts: 11183
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: sshfs mountpoint anzeigen

Post by Joe User »

Deine mount-Ausgabe ist von server501, also dem Remote-System, Du musst mount aber auf dem lokalen System aufrufen.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mipau
Posts: 6
Joined: 2011-11-22 14:23
 

Re: sshfs mountpoint anzeigen

Post by mipau »

Sorry wenn das nicht so rübergekommen ist.
Gemountet wird natürlich auf dem Gastsystem zum Server hin.
Und aus dem Server möchte ich gerne per mount oder showmount sehen ob das geklappt hat. Leider ist da nichts wie ich ja oben schon gezeigt hab.
Allerdings kann ich Daten hin und herschieben.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11183
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: sshfs mountpoint anzeigen

Post by Joe User »

Mit showmount wird das nichts, da showmount nur den Remote-mountd für NFS abfragt.
Aber mount sollte auch sshfs-Mounts problemlos anzeigen, zumindest wenn mount als root auf dem Quellsystem aufgerufen wird. Auf dem Zielsystem ist natürlich nichts per mount zu sehen.

Wenn Du also auf dem server501 den sshfs-Befehl absetzt, dann ist auch nur auf server501 der Mointpoint zu sehen, nicht aber auf 192.168.200.1.

Quellsystem und Zielsystem nicht verwechselt?
FUSE ist vollständig installiert und konfiguriert?
sshfs und mount jeweils als root beziehungsweise gleicher User aufgerufen?

Langsam gehen mir die möglichen Fehlerquellen aus...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mipau
Posts: 6
Joined: 2011-11-22 14:23
 

Re: sshfs mountpoint anzeigen

Post by mipau »

Argh... ja, ich dachte immer da es bei NFS angezeigt wird macht mir das System das bei SSHFS auch...
Nein, im Quellsystem zeigt es mir die Verbindung an...

Sorry, mein Fehler und danke für den Zaunpfahl... :-D

Kann ich das auf dem Zielsystem als gar nicht nachprüfen?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11183
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: sshfs mountpoint anzeigen

Post by Joe User »

mipau wrote:Kann ich das auf dem Zielsystem als gar nicht nachprüfen?
Nein, zumindest nicht per mount. Per netstat sollte es theoretisch möglich sein, dabei kann ich Dir aber nicht mehr sinnvoll weiterhelfen, sorry.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mipau
Posts: 6
Joined: 2011-11-22 14:23
 

Re: sshfs mountpoint anzeigen

Post by mipau »

netstat -p zeigt die Verbindung auch auf dem Server an. (tcp sshd...)

Wenn ich noch was anderes finden sollte werde ich es hier posten...
Thx!