<<Back to Oracle ASM Main Page
#asmcmd afd_label WDTESTDB_FRA /dev/xvdd1 --migrate
No devices to be labeled.
ASMCMD-9513: ASM disk label set operation failed.
Solution
validate the content of /etc/oracleafd.conf. Should look like below
$ cat /etc/oracleafd.conf
afd_diskstring='/dev/xvd*'
afd_filtering=enable
validate the content of /etc/afd.conf. If file does not exists create it.Should look like below
$ cat /etc/afd.conf
afd_diskstring='/dev/xvd*'
afd_filtering=enable
Manually Run the command as ASM owner
$ asmcmd afd_dsset '/dev/xvd*'
Restart acfsload and crs on the node. It should fix the problem.
#acfsload stop
#acfsload start
ACFS-9391: Checking for existing ADVM/ACFS installation.
ACFS-9392: Validating ADVM/ACFS installation files for operating system.
ACFS-9393: Verifying ASM Administrator setup.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9154: Loading 'oracleoks.ko' driver.
ACFS-9154: Loading 'oracleadvm.ko' driver.
ACFS-9154: Loading 'oracleacfs.ko' driver.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9156: Detecting control device '/dev/asm/.asm_ctl_spec'.
ACFS-9156: Detecting control device '/dev/ofsctl'.
ACFS-9322: completed
# lsmod | grep acfs
oracleacfs 4616192 0
oracleoks 655360 2 oracleacfs,oracleadvm
# crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'wdtest05'
CRS-2673: Attempting to stop 'ora.evmd' on 'wdtest05'
CRS-2673: Attempting to stop 'ora.asm' on 'wdtest05'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'wdtest05'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'wdtest05' succeeded
CRS-2677: Stop of 'ora.evmd' on 'wdtest05' succeeded
CRS-2677: Stop of 'ora.asm' on 'wdtest05' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'wdtest05'
CRS-2677: Stop of 'ora.cssd' on 'wdtest05' succeeded
CRS-2673: Attempting to stop 'ora.driver.afd' on 'wdtest05'
CRS-2677: Stop of 'ora.driver.afd' on 'wdtest05' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'wdtest05' has completed
CRS-4133: Oracle High Availability Services has been stopped.
# crsctl start has
CRS-4123: Oracle High Availability Services has been started.
Note:- In my case I have to even restart the server. After restarting the server it fixed the issue.
Validate disk availability
$ asmcmd lsdg
State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 512 4096 1048576 30719 25340 0 25340 0 N WDTESTDB_DATA/
MOUNTED EXTERN N 512 512 4096 1048576 30719 30665 0 30665 0 N WDTESTDB_FRA/
$ asmcmd afd_lsdsk
--------------------------------------------------------------------------------
Label Filtering Path
================================================================================
WDTESTDB_DATA ENABLED /dev/xvdc1
WDTESTDB_FRA ENABLED /dev/xvdd1
$ ls -lrt /dev/oracleafd/disks/
-rw-r--r-- 1 oracle dba 11 May 31 17:53 WDTESTDB_FRA
-rw-r--r-- 1 oracle dba 11 May 31 17:53 WDTESTDB_DATA
Note: Ensure you are labeling the AFD disks as root. Otherwise you will also encounter the ASMCMD-9513: ASM disk label set operation failed error even if the /etc/afd.conf is configured properly
Disk Already Provisioned for ASM
# asmcmd afd_label DISK_X /dev/xvdd10disk /dev/xvdd10 is already provisioned for ASM
ASMCMD-9513: ASM disk label set operation failed.
Cause:
Disk /dev/xvdd10 is already in use by ASM. You can verify the same.
# asmcmd afd_lslbl |grep -i /dev/xvdd10
DISK10 /dev/xvdd10.
Solution:
You can not label a disk twice. Use the disk which not already labeled.
Comments
Post a Comment