12
返回列表 发新帖
楼主: jayli426

[讨论] ASM实例未启动就可以创建ASM DISKGROUP吗?

[复制链接]
论坛徽章:
8
2010广州亚运会纪念徽章:壁球
日期:2010-11-11 18:03:082010广州亚运会纪念徽章:跆拳道
日期:2010-11-11 18:03:13ITPUB学员
日期:2011-04-14 09:58:10ITPUB十周年纪念徽章
日期:2011-11-01 16:21:152012新春纪念徽章
日期:2012-01-04 11:50:442013年新春福章
日期:2013-02-25 14:51:24暖羊羊
日期:2015-03-04 14:50:372015年新春福章
日期:2015-03-06 11:57:31
11#
 楼主| 发表于 2015-5-24 17:56 | 只看该作者
本帖最后由 jayli426 于 2015-5-24 17:59 编辑
Yong Huang 发表于 2015-5-21 23:11
> 创建 第一个diskgroup的时候,ASM实例到底是启动还是没有启动啊?

It should already be up. Otherwis ...

今天我才搞清楚这个问题
如果要创建ASM DISKGROUP,那么必须启动ASM实例
但是最初的ASM实例是如何启动的? 此时启动参数当然不能再ASM DISKGROUP上面
只能是在安装ASM软件的本地目录中

例如
http://docs.oracle.com/cd/E11882 ... sminst.htm#OSTMG136
提到的
When an Oracle ASM instance searches for an initialization parameter file, the search order is:
1.
The location of the initialization parameter file specified in the Grid Plug and Play (GPnP) profile

2.
If the location has not been set in the GPnP profile, then the search order changes to:
a.
SPFILE in the Oracle ASM instance home

For example, the SPFILE for Oracle ASM has the following default path in the Oracle Grid Infrastructure home in a Linux environment:

$ORACLE_HOME/dbs/spfile+ASM.ora

b.
PFILE in the Oracle ASM instance home



这样才是符合逻辑的,只有ASM实例在基于本地目录的spfile或者pfile起来之后,然后再创建ASM_DISKGROUP
然后在将spfile创建到ASM_DISKGROUP,再利用ASM实例能够读取ASM_DISKGROUP中disk_header的能力
就能读取spfile,启动ASM实例了




使用道具 举报

回复
论坛徽章:
6
暖羊羊
日期:2015-03-04 14:53:002015年新春福章
日期:2015-03-06 11:58:39ITPUB社区OCM联盟徽章
日期:2015-03-30 12:59:19现任管理团队成员
日期:2016-02-27 02:09:57版主1段
日期:2016-02-27 02:09:58火眼金睛
日期:2016-02-29 22:00:01
12#
发表于 2015-5-25 14:56 | 只看该作者
从11.2开始Oracle 集群e标示voting disk files的方法较之前的版本11.1或10.2有所区别,之前的位置存放在OCR中, 不过从11.2开始ocr和votedisk可以作为一个磁盘组存放在ASM了 , 所以从11gR2开始voting disk file通过GPNP profile中的CSS voting file discovery string来定位。
CSS voting disk file的discovery string将指向ASM,所以它要使用ASM discovery string的值,你可以通过grid用户gpnptool get来查看
ASM实例在启动时只需要通过GPNP PROFILE中的 DiscoveryString找到合适的设备路径,并读取其ASM disk header即可以找到kfdhdb.spfile这个位置属性,从而在没有MOUNT DISKGROUP的情况下读取ASM SPFILE,并成功启动ASM,如果不清楚,可以私聊

使用道具 举报

回复
论坛徽章:
6
暖羊羊
日期:2015-03-04 14:53:002015年新春福章
日期:2015-03-06 11:58:39ITPUB社区OCM联盟徽章
日期:2015-03-30 12:59:19现任管理团队成员
日期:2016-02-27 02:09:57版主1段
日期:2016-02-27 02:09:58火眼金睛
日期:2016-02-29 22:00:01
13#
发表于 2015-5-25 15:05 | 只看该作者

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
14#
发表于 2015-5-26 23:48 | 只看该作者
jayli426: Your message #11 is good. But I don't think the initial spfile is named $ORACLE_HOME/dbs/spfile+ASM.ora. I just checked some of my Oracle servers using ASM. Under GI $ORACLE_HOME/dbs, I see

ab_+ASM.dat
hc_+ASM.dat
init.ora
orapw+ASM

I think it's init.ora that was initially used to create the ASM instance, unless there was a file named spfile+ASM.ora and was later renamed to this, but I doubt it. I can check that next time I have another installation.

yingyifeng306: Your messages are appreciated and are very good. But the question here is about *initial* ASM instance during installation, not regular ASM startup after the install. I kind of mixed the two scenarios together too, until today I finally realized why jayli426 continued to be confused.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表