Archive for 三月 2012

《倒鸭子》

 经典大连话报案保险理赔,很搞笑。

Storage Foundation 5.2 sp2更换(更新)序列号

当时装的一套storage foundation5.2使用的临时的序列号,现在正版序列号已购买,刚需要将原来的序列号覆盖,而使用新的序列号,在SF(storage foundaion简称)界面上找了半天也没找到输序列号的地方,只好求助symantec 800电话,一问才知道只需在[添加/删除]那改就可以,具体操作如下:

1、打开win2003的控制面板的[添加/删除]程序,选择安装条目,然后点击[更改] 

2、选择License Management,点击Next 

 3、将原来的序列号remove,然后输入新的序列号,点击update,点击finish,完成。 

安装oracle rac时出现crs-1006和crs-0215错误

在安装clusterware时为避免运行root.sh时出现错误,需在第二个节点运行VIPCA,当运行VIPCA时,就出现了如下错误:

crs-1006:No more members to consider
crs-0215:Could not start resource ‘ora.node2.vip’

搜索发现为配置的网关主机不能PING通导致,立即接入一台笔记本,然后将笔记本IP设置为网关IP。点击[retry],故障排除。

创建ASM磁盘时出现错误:Marking disk "VOL1" as an ASM disk: [FAILED]

安装oracle rac(redhat平台)时,创建asm磁盘时出现failed错误,如下:

[root@node1 /]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc1
Marking disk “VOL2” as an ASM disk: [FAILED]

首先查看了asm的状态,如下,状态正常。

[root@node1 /]# /etc/init.d/oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes

接着查看asm的日志,如下:

[root@node1 /]# less /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module “oracleasm”: oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
Reloading disk partitions: done
Cleaning any stale ASM disks…
Scanning system for ASM disks…
oracleasm-read-label: Unable to open device “/dev/sdb1”: No such file or directory
Disk “VOL1” does not exist or is not instantiated
Instantiating disk “VOL1”
Disk “VOL2” does not exist or is not instantiated
Instantiating disk “VOL2”
Disk “VOL1” is a valid ASM disk
Disk “VOL2” is a valid ASM disk
Device “/dev/sdb1” is already labeled for ASM disk “VOL1”
Reloading disk partitions: done
Cleaning any stale ASM disks…
Validating disk “VOL1”
Validating disk “VOL2”
Scanning system for ASM disks…
oracleasm-read-label: Unable to open device “/dev/sdb1”: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Disk “VOL1” is a valid ASM disk
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Disk “VOL2” is a valid ASM disk
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Disk “VOL1” is a valid ASM disk
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Disk “VOL2” is a valid ASM disk
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Device “/dev/sdb1” is already labeled for ASM disk “VOL1”
Device “/dev/sdc1” is already labeled for ASM disk “VOL2”

显示为VOL1和VOL2已经存在,所以当我再次创建时就出现了问题。马上把当时创建的这两个ASM删除,如下操作:

[root@node1 /]# /etc/init.d/oracleasm deletedisk VOL1
Removing ASM disk “VOL1”: [ OK ]
[root@node1 /]# /etc/init.d/oracleasm deletedisk VOL2
Removing ASM disk “VOL2”: [ OK ]

然后再次运行创建命令,可以创建了。

[root@node1 /]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
Marking disk “VOL1” as an ASM disk: [ OK ]
[root@node1 /]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc1
Marking disk “VOL2” as an ASM disk: [ OK ]
[root@node1 /]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@node1 /]# /etc/init.d/oracleasm listdisks
VOL1
VOL2