创建和使用 Oracle® Solaris 区域

退出打印视图

更新时间: 2015 年 5 月
 
 

如何在提交临时更改时从故障中恢复

在编辑实时配置时,正在运行的区域的配置可能在外部发生更改。发生该冲突时,commit 子命令会返回一个错误。您可以重新加载配置以显示更新版本并进行编辑。

  1. 成为管理员。

    有关更多信息,请参见在 Oracle Solaris 11.2 中确保用户和进程的安全 中的使用所指定的管理权限

  2. 执行以下步骤以使用 reload 从故障中恢复。
    # zonecfg -z zone1 -r 
    	    zonecfg:zone1> add anet;set linkname=anet1;set lower-link=net1;end
    	    zonecfg:zone1> commit
    	    zone1: error: Failed to commit. The live configuration of the zone
    		'zone1' changed externally.
    	    zonecfg:zone1> reload
    	    zonecfg:zone1> add anet;set linkname=anet1;set lower-link=net1;end
    	    zonecfg:zone1> commit
    	    zone1: Checking: add anet linkname=anet1
    	    zone1: Applying changes