cluster可以通过clrg switch命令手动切换,但如果是reboot自动切换,会导致数据冲突
我在组下用SUNW.HAStoragePlus:6资源类型建共享Zpool资源,现在问题是通过clrg switch命令,可在双机间自由切换,但是如果我reboot当前Zpool挂起的节点(reboot非活动节点没有问题),就会发生数据冲突。
重启时在另一个节点日志里有以下记录:
Feb8 09:56:16 cluster1 qlc: NOTICE: Qlogic qlc(0,0): Loop OFFLINE
Feb8 09:56:16 cluster1 scsi: WARNING: /pci@0,0/pci8086,65f9@6/pci1077,15d@0/fp@0,0/disk@w210000d02308005c,1 (sd2):
Feb8 09:56:16 cluster1 SCSI transport failed: reason 'tran_err': retrying command
Feb8 09:56:16 cluster1 qlc: NOTICE: Qlogic qlc(0,0): Loop ONLINE
Feb8 09:56:16 cluster1 scsi: /pci@0,0/pci8086,65f9@6/pci1077,15d@0/fp@0,0 (fcp0):
Feb8 09:56:16 cluster1 ndi_devi_online: failed for scsiclass,0d: target=25 lun=3 ffffffff
Feb8 09:56:16 cluster1 scsi: WARNING: /pci@0,0/pci8086,65f9@6/pci1077,15d@0/fp@0,0/disk@w210000d02308005c,1 (sd2):
Feb8 09:56:16 cluster1 Error for Command: read(10) Error Level: Retryable
Feb8 09:56:16 cluster1 scsi: Requested Block: 0 Error Block: 0
Feb8 09:56:16 cluster1 scsi: Vendor: IFT Serial Number: 161743AB-020
Feb8 09:56:16 cluster1 scsi: Sense Key: Unit_Attention
Feb8 09:56:16 cluster1 scsi: 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 Feb8 10:05:29 2010
config:
NAME STATE READ WRITE CKSUM
mynas ONLINE 0 0 0
c11t112d1ONLINE 0 0 022K repaired
errors: Permanent errors have been detected in the following files:
<metadata>:<0x1>
<metadata>:<0x15> 还有一个现象是我重启后,zpool会在两个节点上都import,按理reboot的时候,会将资源切换到另一个节点,重启的机子重新起来后,就不应该看到这个POOL了。 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. 楼上什么意思,不是太懂。 能让zpool启动的时候不自动加载吗? 自己顶 谢谢,用cachefile实现了。 日志怎么看的?求指导 回复 7# diyer_xu
能写一下cachefile 的方法么?
页:
[1]