免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1727 | 回复: 1
打印 上一主题 下一主题

[新手入门] 什么叫SSA disk fencing ? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-05-21 09:07 |只看该作者 |倒序浏览
问题一:
一、问题出处:redbook 187

二、原文内容:
Note: If you are creating (or plan to create) concurrent volume groups on SSA
devices, be sure to assign unique non-zero node numbers through the SSAR
on each cluster node. If you plan to specify SSA disk fencing in your
concurrent resource group, the node numbers are assigned when you
synchronize resources. If you do not specify SSA disk fencing, assign node
numbers using the command chdev -l ssar -a node_number=x, where x is
0:48 2003-5-21the number to assign to that node. You must reboot the system to effect the
change.

三、我的问题:

什么叫SSA disk fencing  ?  这个概念不懂,请教!

论坛徽章:
0
2 [报告]
发表于 2003-05-21 09:29 |只看该作者

什么叫SSA disk fencing ?

刚刚自己好好找了一下,问题明白了。
SSA Disk Fencing
SSA disk fencing is a facility which is provided in the SSA subsystem to allow multiple hosts to control access to a common set of disks.

Using the fencing commands provided by the hardware it is possible to exclude individual hosts from accessing a particular disk. The access list for different disks are independent of one another.

Fencing is essentially a function provided by the hardware and manipulated using the hardware commands, but the device driver does have some involvement.

The SSA disk device driver supports fencing by allowing the FN_ISAL_FENCE command, which is defined in the SSA Adapter Technical Reference, to be issued to SSA logical disks using the SSADISK_ISALCMD ioctl operation.

In order to use fencing, the node_number attribute of the ssar router must be set to a different value on each host which is participating in fencing. Note that after setting node_number the host must be rebooted for the new value to take effect.

By default, the value of node_number is 0. This value has particular significance because it is not possible to exclude a host with node number 0 from access to the disk. Thus if a disk is moved from a machine which has been using fencing to a machine which is not involved in fencing, the new machine will be able to communicate with the disk.

If a host attempts to open a disk from which it has been denied access using the open subroutine, the return code will be -1 and the global variable errno will be set to the value ENOCONNECT. Likewise, if an application already has a SSA Logical disk open but since the open, it has been fenced out then calls to the read or write subroutine will fail, with errno set to ENOCONNECT.

The hardware fencing commands provide for a facility, to forcibly break through a fence. This command can be issued using the SSADISK_ISALCMD ioctl operation but it is necessary first to open the disk. A disk from which the host has been excluded can be opened by using the openx subroutine and specifying the SSADISK_FENCEMODE extension flag as described in SSA disk device driver device-dependant subroutines. While open in this mode no read or write operations will be permitted.

If a host has been excluded from access to a disk using fencing but that disk is also reserved to another host the reservation takes precedence. The return code from the open subroutine will be -1 and the global variable errno will be set to EBUSY. If the host attempts to break through the reservation by passing the ext parameter SSADISK_FORCED_OPEN to the openx subroutine, the reservation will be broken but the open will fail with errno set to ENOCONNECT. In order to break through the fence, the SSA logical disk must be opened in SSADISK_FENCEMODE and the SSADISK_ISALCMD ioctl operation used to issue the appropriate hardware command to break the fence condition.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP