免费注册 查看新帖 |

Chinaunix

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

cluster可以通过clrg switch命令手动切换,但如果是reboot自动切换,会导致数据冲突 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-08 10:47 |只看该作者 |倒序浏览
我在组下用SUNW.HAStoragePlus:6资源类型建共享Zpool资源,
现在问题是通过clrg switch命令,可在双机间自由切换,但是如果我reboot当前Zpool挂起的节点(reboot非活动节点没有问题),就会发生数据冲突。
重启时在另一个节点日志里有以下记录:
Feb  8 09:56:16 cluster1 qlc: [ID 439991 kern.info] NOTICE: Qlogic qlc(0,0): Loop OFFLINE
Feb  8 09:56:16 cluster1 scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci8086,65f9@6/pci1077,15d@0/fp@0,0/disk@w210000d02308005c,1 (sd2):
Feb  8 09:56:16 cluster1        SCSI transport failed: reason 'tran_err': retrying command
Feb  8 09:56:16 cluster1 qlc: [ID 439991 kern.info] NOTICE: Qlogic qlc(0,0): Loop ONLINE
Feb  8 09:56:16 cluster1 scsi: [ID 243001 kern.info] /pci@0,0/pci8086,65f9@6/pci1077,15d@0/fp@0,0 (fcp0):
Feb  8 09:56:16 cluster1        ndi_devi_online: failed for scsiclass,0d: target=25 lun=3 ffffffff
Feb  8 09:56:16 cluster1 scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci8086,65f9@6/pci1077,15d@0/fp@0,0/disk@w210000d02308005c,1 (sd2):
Feb  8 09:56:16 cluster1        Error for Command: read(10)                Error Level: Retryable
Feb  8 09:56:16 cluster1 scsi: [ID 107833 kern.notice]  Requested Block: 0                         Error Block: 0
Feb  8 09:56:16 cluster1 scsi: [ID 107833 kern.notice]  Vendor: IFT                                Serial Number: 161743AB-020
Feb  8 09:56:16 cluster1 scsi: [ID 107833 kern.notice]  Sense Key: Unit_Attention
Feb  8 09:56:16 cluster1 scsi: [ID 107833 kern.notice]  ASC: 0x29 (power on, reset, or bus reset occurred), ASCQ: 0x0, FRU: 0x0

然后查看pool状态,可能就是以下样子:
root@cluster2:~# zpool status -v
  pool: mynas
state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://www.sun.com/msg/ZFS-8000-8A
scrub: scrub completed after 0h0m with 2 errors on Mon Feb  8 10:05:29 2010
config:

        NAME         STATE     READ WRITE CKSUM
        mynas        ONLINE       0     0     0
          c11t112d1  ONLINE       0     0     0  22K repaired

errors: Permanent errors have been detected in the following files:

        <metadata>:<0x1>
        <metadata>:<0x15>

论坛徽章:
0
2 [报告]
发表于 2010-02-08 11:03 |只看该作者
还有一个现象是我重启后,zpool会在两个节点上都import,按理reboot的时候,会将资源切换到另一个节点,重启的机子重新起来后,就不应该看到这个POOL了。

论坛徽章:
0
3 [报告]
发表于 2010-02-08 11:37 |只看该作者
cachefile String N/A Controls where pool configuration information is cached. All
pools in the cache are automatically imported when the system
boots.However, installation and clustering environments
might need to cache this information in a different location so
that pools are not automatically imported. You can set this
property to cache pool configuration in a different location
that can be imported later by using the zpool import -c
command. For most ZFS configurations, this property would
not be used.

论坛徽章:
0
4 [报告]
发表于 2010-02-08 14:39 |只看该作者
楼上什么意思,不是太懂。

论坛徽章:
0
5 [报告]
发表于 2010-02-08 14:53 |只看该作者
能让zpool启动的时候不自动加载吗?

论坛徽章:
0
6 [报告]
发表于 2010-02-08 18:34 |只看该作者
自己顶

论坛徽章:
0
7 [报告]
发表于 2010-02-10 15:15 |只看该作者
谢谢,用cachefile实现了。

论坛徽章:
0
8 [报告]
发表于 2013-11-18 14:13 |只看该作者
日志怎么看的?求指导

论坛徽章:
0
9 [报告]
发表于 2013-12-02 09:16 |只看该作者
回复 7# diyer_xu


    能写一下cachefile 的方法么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP