Solaris SVM的majority consensus算法

SVM的state database中包含了卷的配置和状态等重要信息,一旦state database全部损坏,理论上将丢失卷上的所有数据。为了保证state database的安全,SVM使用了冗余机制。即维护多个state database replica.

在有多个state database replica的情况下,如果部分replica损坏,SVM难以判断究竟哪些是好的,哪些是坏的。为了解决这个问题,SVM采用了majority consensus算法。即:当多于半数的replica可用且一致,则认为这些replica是有效的。

The majority consensus algorithm provides the following:

  • The system continues to run if at least half of the state database replicas are available.
  • The system panics if fewer than half of the state database replicas are available.
  • The system cannot reboot into multiuser mode unless a majority (half + 1) of the total number of state database replicas is available. If insufficient state database replicas are available, you must boot into single-user mode and delete enough of the corrupted or missing replicas to achieve a quorum.

从上述机制可以看出,如果半数或以上replica不可用,将导致Solaris无法启动到多用户模式下。此时解决办法是启动到单用户下,然后删除损坏的replica.

另一种解决方法是事先在/etc/system中设置set md:mirrored_root_flag = 1,此参数将让SVM在启动时忽略Quorum规则。但文档明确说明,Solaris不建议修改此参数,因为忽略Quorum规则的话,无法保证replica是有效的,因而无法确保卷的配置信息和状态信息准确,这意味着卷中的数据有损坏或丢失的风险。

转载于:https://www.cnblogs.com/cqubityj/archive/2011/11/23/2259949.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值