<<Back to Oracle ASM Main Page
ASMCMD-9521: AFD is already configured while labeling the disk
#export ORACLE_HOME=/u01/app/product/19c/grid
#export ORACLE_BASE=/u01/app
# $ORACLE_HOME/bin/asmcmd afd_label FRA_01_RAC_001 /dev/dm-10 --init
ASMCMD-9521: AFD is already configured
After checking the disk status I found the disk is available to lable
#$ORACLE_HOME/bin/asmcmd afd_lslbl /dev/dm-10
No devices to be scanned.
The Permission is also fine
# ls -lrt /dev/dm-10
lrwxrwxrwx 1 root root 8 Sep 28 10:19 /dev/dm-10
Lets read the header of this disk
# $ORACLE_HOME/bin/kfed read /dev/dm-10
kfbh.endian: 0 ; 0x000: 0x00
kfbh.hard: 0 ; 0x001: 0x00
kfbh.type: 0 ; 0x002: KFBTYP_INVALID
kfbh.datfmt: 0 ; 0x003: 0x00
kfbh.block.blk: 0 ; 0x004: blk=0
kfbh.block.obj: 0 ; 0x008: file=0
kfbh.check: 0 ; 0x00c: 0x00000000
kfbh.fcn.base: 0 ; 0x010: 0x00000000
kfbh.fcn.wrap: 0 ; 0x014: 0x00000000
kfbh.spare1: 0 ; 0x018: 0x00000000
kfbh.spare2: 0 ; 0x01c: 0x00000000
000000000 00000000 00000000 00000000 00000000 [................]
Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]
So it seems the disk assigned to the server is not a clean disk
Solution:
# $ORACLE_HOME/bin/asmcmd afd_label FRA_01_RAC_001 /dev/dm-10
OR
# $ORACLE_HOME/bin/asmcmd afd_label FRA_01_RAC_001 /dev/dm-10 --migrate
OR
#dd if=/dev/zero of=/dev/dm-10 bs=4M count 10
# $ORACLE_HOME/bin/asmcmd afd_label FRA_01_RAC_001 /dev/dm-10 --init
# $ORACLE_HOME/bin/asmcmd afd_lslbl /dev/dm-10
--------------------------------------------------------------------------------
Label Duplicate Path
================================================================================
FRA_01_RAC_001 /dev/dm-10
Comments
Post a Comment