t***5 发帖数: 832 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: take5 (NotAvailable), 信区: Linux
标 题: 怎样mount另一个Linux server的filesystem
发信站: BBS 未名空间站 (Mon Jan 7 12:30:10 2013, 美东)
Two linux servers both running Red Hat 6.
One (linux1) has /dev/sdb1 mounted on /data1, another (linux2) has /dev/sdb2
mounted on /data2. How to make two filesystems available to both servers?
tried something like
http://etutorials.org/Linux+systems/red+hat+linux+bible+fedora+
Thought this should be a simple task. But using the command on linux1
mount linux2:/data2 /data2
didn't work. Any idea?
Thanks! |
r*******e 发帖数: 7583 | 2 NFS should work.
If not, you did sth wrong.
sdb2
【在 t***5 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: take5 (NotAvailable), 信区: Linux : 标 题: 怎样mount另一个Linux server的filesystem : 发信站: BBS 未名空间站 (Mon Jan 7 12:30:10 2013, 美东) : Two linux servers both running Red Hat 6. : One (linux1) has /dev/sdb1 mounted on /data1, another (linux2) has /dev/sdb2 : mounted on /data2. How to make two filesystems available to both servers? : tried something like : http://etutorials.org/Linux+systems/red+hat+linux+bible+fedora+ : Thought this should be a simple task. But using the command on linux1
|
w*r 发帖数: 2421 | 3 google cluster file system
google NFS
google OCFS |
t***5 发帖数: 832 | 4 是不是作以下就可以了?
on server side:
#service nfs start
on client side:
#mount -t nfs linux2:/data2 /data2
但总是得到
mount.nfs: Connection timed out
请问这是什么问题? |
r*******e 发帖数: 7583 | 5 你这看起来是像NSF连接被防火墙挡住了
临时关掉server上的防火墙试试
【在 t***5 的大作中提到】 : 是不是作以下就可以了? : on server side: : #service nfs start : on client side: : #mount -t nfs linux2:/data2 /data2 : 但总是得到 : mount.nfs: Connection timed out : 请问这是什么问题?
|
t***5 发帖数: 832 | 6 不知道是否有防火墙, 但telnet不work. 必须用ssh or scp.
怎样关掉server上的防火墙? Thanks. |
t***5 发帖数: 832 | 7 Just did
service iptables stop
then the mount command worked. Then the next question, how do I bypass the
firewall for the mount command to work?
Many thanks. |
a9 发帖数: 21638 | 8 http://www.cyberciti.biz/faq/centos-fedora-rhel-iptables-open-n
【在 t***5 的大作中提到】 : Just did : service iptables stop : then the mount command worked. Then the next question, how do I bypass the : firewall for the mount command to work? : Many thanks.
|
Z**0 发帖数: 1119 | 9 这个要看你对安全和速度的要求了。
两个server在一个子网里边不?
sshfs,就可以,简单。
nfs快,但是安全性没有sshfs好,需要配置nfs server。
iptables的问题,简单的方法,就是在root下,setup,(我猜那个package应该是默认
安装),然后自己按照屏幕,在防火墙里边,打开NFS需要的端口。 |
t***5 发帖数: 832 | 10 多谢各位高手.顺便吐槽一下,本人不是admin.问了好几次,就是不干(或不会).
现按各位的办法,叫admin去做. |