Oracle 11GR2单机一键部署(sh脚本)
566
2022-05-28
在11gR2 RAC中修改ASM DISK磁盘名称
[grid@snow ~]$ crsctl query crs activeversion
Oracle Clusterware active version on the cluster is 11.2.0.1.0
本次/dev/rsm-disk* 更名为/dev/asm-disk*。
测试显示系统磁盘名称的变更,grid不需要做任何修改可以正常启动。
1,磁盘更名前:
Disk Size Path User Group
===============================================================================
2: 512 Mb /dev/rsm-diskb grid asmadmin
3: 512 Mb /dev/rsm-diskc grid asmadmin
4: 512 Mb /dev/rsm-diskd grid asmadmin
5: 128 Mb /dev/rsm-diske grid asmadmin
6: 128 Mb /dev/rsm-diskf grid asmadmin
--------------------------------------------------------------------------------
[root@snow dev]# /u01/grid/bin/crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 27bf854588fa4f05bfb0478bcf4bdd25 (/dev/rsm-diskb) [CRS]
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 1536 1179 0 1179 0 N CRS/
MOUNTED EXTERN N 512 4096 1048576 256 204 0 204 0 N DATE_DG/
ASMCMD> lsdsk -G crs
Path
/dev/rsm-diskb
/dev/rsm-diskc
/dev/rsm-diskd
ASMCMD> lsdsk -G date_dg
Path
/dev/rsm-diske
/dev/rsm-diskf
2,磁盘更名后:
--------------------------------------------------------------------------------
Disk Size Path User Group
===============================================================================
1: 512 Mb /dev/asm-diskb grid asmadmin
2: 512 Mb /dev/asm-diskc grid asmadmin
3: 512 Mb /dev/asm-diskd grid asmadmin
4: 128 Mb /dev/asm-diske grid asmadmin
5: 128 Mb /dev/asm-diskf grid asmadmin
--------------------------------------------------------------------------------
[root@snow snow]# /u01/grid/bin/crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 27bf854588fa4f05bfb0478bcf4bdd25 (/dev/asm-diskb) [CRS]
Located 1 voting disk(s).
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 1536 1179 0 1179 0 N CRS/
MOUNTED EXTERN N 512 4096 1048576 256 204 0 204 0 N DATE_DG/
ASMCMD> lsdsk -G crs
Path
/dev/asm-diskb
/dev/asm-diskc
/dev/asm-diskd
ASMCMD> lsdsk -G date_dg
Path
/dev/asm-diske
/dev/asm-diskf
3, GPnP-Profile
本次安装软件设置DiscoveryString参数为"/dev/*”。
DiscoveryString="/dev/*
DiscoveryString="/dev/*"PFile="+CRS/snow-cluster/asmparameterfile/registry.253.851207651"/>
SMsSpxurb+LdxeuH5/IQH6yKAP8=
EzsDi6msHVfGz9xfsUfyM63oOKqt9dV3tEhvimcYyNvAMTACg26vV9gX/fEjTz2OQFzGdsn0f3DFvx2yic3mw4fkSuu8yeheSyZcsU1Ak0eN+9UBD8bFSV5xlnxXu5VyXgi8IMgiuHaLJq4/98+hIb7P3SaQg1RZ9L+Vr5InqG4=
其他
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。