当前位置: 技术问答>linux和unix
请问linux中的挂载磁盘的fsid参数是什么作用的?
来源: 互联网 发布时间:2016-09-22
本文导语: 将一台suse10服务器设置为nfs服务器,配置参数如下: /backup * fsid=0,rw,sync,all_squash /share * fsid=0,rw,sync,all_squash 请问以上的fsid是干嘛用的? | fsid=num 通常是在 NFS 故障恢复的情况...
将一台suse10服务器设置为nfs服务器,配置参数如下:
/backup
* fsid=0,rw,sync,all_squash
/share
* fsid=0,rw,sync,all_squash
请问以上的fsid是干嘛用的?
/backup
* fsid=0,rw,sync,all_squash
/share
* fsid=0,rw,sync,all_squash
请问以上的fsid是干嘛用的?
|
fsid=num 通常是在 NFS 故障恢复的情况中使用。
|
使用fsid=0选项的时候只能共享一个目录===>有这个说法吗?
fsid=num
This option forces the filesystem identification portion of the file handle and file attributes used on the
wire to be num instead of a number derived from the major and minor number of the block device on which the
filesystem is mounted. Any 32 bit number can be used, but it must be unique amongst all the exported
filesystems.
This can be useful for NFS failover, to ensure that both servers of the failover pair use the same NFS file
handles for the shared filesystem thus avoiding stale file handles after failover.
Some Linux filesystems are not mounted on a block device; exporting these via NFS requires the use of the
fsid option (although that may still not be enough).
The value 0 has a special meaning when use with NFSv4. NFSv4 has a concept of a root of the overall
exported filesystem. The export point exported with fsid=0 will be used as this root.
fsid=num
This option forces the filesystem identification portion of the file handle and file attributes used on the
wire to be num instead of a number derived from the major and minor number of the block device on which the
filesystem is mounted. Any 32 bit number can be used, but it must be unique amongst all the exported
filesystems.
This can be useful for NFS failover, to ensure that both servers of the failover pair use the same NFS file
handles for the shared filesystem thus avoiding stale file handles after failover.
Some Linux filesystems are not mounted on a block device; exporting these via NFS requires the use of the
fsid option (although that may still not be enough).
The value 0 has a special meaning when use with NFSv4. NFSv4 has a concept of a root of the overall
exported filesystem. The export point exported with fsid=0 will be used as this root.