- 最后登录
- 2015-3-27
- 在线时间
- 7 小时
- 威望
- 0
- 金钱
- 44
- 注册时间
- 2015-1-23
- 阅读权限
- 10
- 帖子
- 14
- 精华
- 0
- 积分
- 0
- UID
- 2252
|
2#
发表于 2015-1-23 12:20:38
我的分析过程如下:
(1)首先 确保runcluvfy.sh stage -pre crsinst -n mydb-nod1,mydb-node2 -fixup -verbose 执行成功。
(2)根据提示,找到/u01/product/11.2/grid/crs/install/crsconfig_lib.pm 第9379行(红色标示即9379行)。
if (isFirstNodeToStart())
{
$success = add_Nodeapps($upgrade_option, \@nodevip, $DHCP_flag,
\@nodes_to_add, \@nodes_to_start);
if ($success != TRUE) {
writeCkpt($ckptName, CKPTFAIL);
die("Failed to add Nodeapps");
}
$success = configFirstNode($DHCP_flag, \@nodes_to_start);
if ($success != SUCCESS) {
writeCkpt($ckptName, CKPTFAIL);
die("FirstNode configuration failed");
}
} else {
......
(3)发现它是调用的configFirstNode函数,在crsconfig_lib.pm中跟踪到这个函数:
sub configFirstNode
#---------------------------------------------------------------------
# Function: Configure first node
# Args : [0] DHCP_flag
# [1] nodes_to_start
# Returns : TRUE if success
# FALSE if failed
#---------------------------------------------------------------------
{
my $DHCP_flag = shift;
my $nodes_to_start_ref = shift;
trace ("Configuring first node");
trace ("DHCP_flag=$DHCP_flag");
trace ("nodes_to_start=@$nodes_to_start_ref");
my $success = SUCCESS;
#set the network interface - Bug 9243302
setNetworkInterface();
if (($CFG->params('ASM_UPGRADE') =~ m/false/i) && (! isASMExists())) {
trace("Prior version ASM does not exist , Invoking add asm");
add_ASM(); # add ora.asm
if ($CFG->ASM_STORAGE_USED) {
createDiskgroupRes(); # add disk group resource, if necessary
}
}
add_acfs_registry();
if ($success &&
add_GNS($CFG->params('GNS_ADDR_LIST'),
$CFG->params('GNS_DOMAIN_LIST')) &&
add_scan() &&
add_scan_listener() &&
add_J2EEContainer() == SUCCESS) {
$success = SUCCESS;
} else {
$success = FAILED;
}
if ($success) {
add_CVU();
}
if ($success &&
start_Nodeapps($DHCP_flag, \@$nodes_to_start_ref) &&
start_GNS() &&
start_scan() &&
start_scan_listener() &&
start_J2EEContainer() == SUCCESS)
{
$success = SUCCESS;
if (($CFG->params('ASM_UPGRADE') =~ m/false/i) && (isASMExists())) {
$success = start_acfs_registry(\@$nodes_to_start_ref);
}
if (s_is92ConfigExists()) {
$success = enable_GSD();
}
else {
remove_gsd_file();
}
} else {
$success = FAILED;
}
if ($success) {
start_CVU();
}
return $success;
} |
|