在11gR2 RAC中修改ASM DISK Path磁盘路径
磁盘名称由/dev/* 更改为/dev/grid/*。
只需要进入到asmcmd 修改 GPnP profile文件中discovery diskstring这个参数即可。
经过测试发现好像不需要对vot位置进行修改grid 就可以正常的启动。
grid的votdisk与磁盘名称无关,磁盘名称更改之后可以正常启动grid 可以正常启动。
=========================
修改之前的磁盘位置:
$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 27bf854588fa4f05bfb0478bcf4bdd25 (/dev/asm-asm)
Located 1 voting disk(s).
Disk Size Path User Group
================================================================================
1: 512 Mb /dev/asm-asm 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
--------------------------------------------------------------------------------
ASMCMD> dsget
parameter:/dev/*
profile:/dev/*
ASMCMD>
ASMCMD> lsdsk -G crs
Path
/dev/asm-asm
/dev/asm-diskc
/dev/asm-diskd
修改之后的磁盘位置:
Disk Size Path User Group
================================================================================
1: 512 Mb /dev/grid/asm-asm grid asmadmin
2: 512 Mb /dev/grid/asm-diskc grid asmadmin
3: 512 Mb /dev/grid/asm-diskd grid asmadmin
4: 128 Mb /dev/grid/asm-diske grid asmadmin
5: 128 Mb /dev/grid/asm-diskf grid asmadmin
--------------------------------------------------------------------------------
修改步骤:
excl模式启动grid 软件:
# /u01/grid/bin/crsctl start crs -excl
$ asmcmd
ASMCMD> spget
+CRS/snow-cluster/asmparameterfile/registry.253.851207651
ASMCMD> dsset /dev/grid/*
ORA-32001: write to SPFILE requested but no SPFILE is in use (DBD ERROR: OCIStmtExecute)
ASMCMD> dsget
profile:/dev/*
ASMCMD> dsset /dev/grid/* --profile
ASMCMD> dsget
profile:/dev/grid/*
ASMCMD> exit
# /u01/grid/bin/crsctl stop crs -f
启动grid 软件:
# /u01/grid/bin/crsctl start crs
$ asmcmd
ASMCMD> dsget
parameter:/dev/*
profile:/dev/grid/*
ASMCMD> dsset /dev/grid/* --parameter
ASMCMD> dsget
parameter:/dev/grid/*
profile:/dev/grid/*
ASMCMD>
ASMCMD> lsdsk -G crs
Path
/dev/grid/asm-asm
/dev/grid/asm-diskc
/dev/grid/asm-diskd
$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 27bf854588fa4f05bfb0478bcf4bdd25 (/dev/grid/asm-asm)
Located 1 voting disk(s).
是的,因为信息都保存在磁盘头
通过kfed工具可以看到磁盘头信息?
kfed read /dev/mapper/datap1
kfdhdb.dsknum: 0 ; 0x024: 0x0000 ##磁盘号
kfdhdb.grptyp: 1 ; 0x026: KFDGTP_EXTERNAL ##磁盘冗余类型
kfdhdb.hdrsts: 3 ; 0x027: KFDHDR_MEMBER
kfdhdb.dskname: DATA_0000 ; 0x028: length=9 ##在asm中磁盘名disk_name
kfdhdb.grpname: DATA ; 0x048: length=4 ##磁盘组名 diskgroup_name
kfdhdb.fgname: DATA_0000 ; 0x068: length=9 ##failure groupname
kfdhdb.crestmp.hi: 32937833 ; 0x0a8: HOUR=0x9 DAYS=0x1b MNTH=0x5 YEAR=0x7da
kfdhdb.mntstmp.hi: 32937834 ; 0x0b0: HOUR=0xa DAYS=0x1b MNTH=0x5 YEAR=0x7da
kfdhdb.secsize: 512 ; 0x0b8: 0x0200
kfdhdb.blksize: 4096 ; 0x0ba: 0x1000
kfdhdb.ausize: 1048576 ; 0x0bc: 0x00100000
kfdhdb.dsksize: 51200 ; 0x0c4: 0x0000c800
kfdhdb.f1b1locn: 2 ; 0x0d4: 0x00000002
kfdhdb.dbcompat: 168820736 ; 0x0e0: 0x0a100000
kfdhdb.grpstmp.hi: 32937833 ; 0x0e4: HOUR=0x9 DAYS=0x1b MNTH=0x5 YEAR=0x7da
kfdhdb.grpstmp.lo: 1704339456 ; 0x0e8: USEC=0x0 MSEC=0x18a SECS=0x19 MINS=0x19
页:
[1]