My Oracle Support Banner

ASMLIB:: Scandisks does not list new Labels on other nodes (Doc ID 2095213.1)

Last updated on DECEMBER 25, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

Node 01:

[root@xxxxxx01 ~]# oracleasm createdisk DATA4 /dev/mapper/data4p1
Writing disk header: done
Instantiating disk: done

[root@xxxxxx01 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@xxxxxx01 ~]# oracleasm listdisks
DATA1
DATA2
DATA3
DATA4
GRID1
GRID2

Node 02:

[root@xxxxxx02 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...

[root@xxxxxx02 ~]# oracleasm listdisks
DATA1
DATA2

+ DD dump shows ASMlib label at block level.

0000000 00000000 00000000 00000000 41544170 >............pATA<
0000020 00000000 00000000 00000000 00000000 >................<
0000040 4c43524f 4b534944 41544144 00000034 >ORCLDISKDATA4...<
0000060 00000000 00000000 00000000 00000000 >................<

File_name :: data4p1_xxxxxxx03.dd

+ diff command does not show any difference between disk content of working and non-working nodes.

Non-working home,

31293 22:53:26.860260 munmap(0x7f93cec3b000, 4096) = 0
31293 22:53:26.860388 open("/dev/oracleasm/disks/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
31293 22:53:26.860478 fcntl(4, F_SETFD, FD_CLOEXEC) = 0
31293 22:53:26.860555 getdents(4, /* 9 entries */, 32768) = 264
31293 22:53:26.860697 getdents(4, /* 0 entries */, 32768) = 0
31293 22:53:26.860765 close(4) = 0
31293 22:53:26.860857 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
31293 22:53:26.860957 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f93cec3b000
31293 22:53:26.861039 write(1, "DATA1\n", 6) = 6
31293 22:53:26.861122 write(1, "DATA2\n", 6) = 6
31293 22:53:26.861196 write(1, "DATA3\n", 6) = 6
31293 22:53:26.861271 write(1, "FRA1\n", 5) = 5
31293 22:53:26.861377 write(1, "GRID1\n", 6) = 6
31293 22:53:26.861454 write(1, "GRID2\n", 6) = 6
31293 22:53:26.861529 write(1, "GRID3\n", 6) = 6
31293 22:53:26.861660 close(1) = 0
31293 22:53:26.861785 munmap(0x7f93cec3b000, 4096) = 0

File_name :: listdisks.strace

Working node,

28396 23:00:08.381708 open("/dev/oracleasm/disks/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
28396 23:00:08.381797 fcntl(4, F_SETFD, FD_CLOEXEC) = 0
28396 23:00:08.381936 getdents(4, /* 10 entries */, 32768) = 296
28396 23:00:08.382091 getdents(4, /* 0 entries */, 32768) = 0
28396 23:00:08.382175 close(4) = 0
28396 23:00:08.382282 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
28396 23:00:08.382383 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff97d166000
28396 23:00:08.382468 write(1, "DATA1\n", 6) = 6
28396 23:00:08.382560 write(1, "DATA2\n", 6) = 6
28396 23:00:08.382676 write(1, "DATA3\n", 6) = 6
28396 23:00:08.382764 write(1, "DATA4\n", 6) = 6 <<---------------------
28396 23:00:08.382854 write(1, "FRA1\n", 5) = 5
28396 23:00:08.382951 write(1, "GRID1\n", 6) = 6
28396 23:00:08.383031 write(1, "GRID2\n", 6) = 6
28396 23:00:08.383111 write(1, "GRID3\n", 6) = 6
28396 23:00:08.383208 close(1) = 0
28396 23:00:08.383293 munmap(0x7ff97d166000, 4096) = 0
28396 23:00:08.383412 exit_group(0) = ?

 

Changes

 Node 01:

[root@xxxxxx01 ~]# oracleasm createdisk DATA4 /dev/mapper/data4p1
Writing disk header: done
Instantiating disk: done

[root@xxxxxx01 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@xxxxxx01 ~]# oracleasm listdisks
DATA1
DATA2
DATA3
DATA4
GRID1
GRID2

Node 02:

[root@xxxxxx02 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...

[root@xxxxxx02 ~]# oracleasm listdisks
DATA1
DATA2

+ DD dump shows ASMlib label at block level.

0000000 00000000 00000000 00000000 41544170 >............pATA<
0000020 00000000 00000000 00000000 00000000 >................<
0000040 4c43524f 4b534944 41544144 00000034 >ORCLDISKDATA4...<
0000060 00000000 00000000 00000000 00000000 >................<

File_name :: data4p1_xxxxxxx03.dd

+ diff command does not show any difference between disk content of working and non-working nodes.

Non-working home,

31293 22:53:26.860260 munmap(0x7f93cec3b000, 4096) = 0
31293 22:53:26.860388 open("/dev/oracleasm/disks/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
31293 22:53:26.860478 fcntl(4, F_SETFD, FD_CLOEXEC) = 0
31293 22:53:26.860555 getdents(4, /* 9 entries */, 32768) = 264
31293 22:53:26.860697 getdents(4, /* 0 entries */, 32768) = 0
31293 22:53:26.860765 close(4) = 0
31293 22:53:26.860857 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
31293 22:53:26.860957 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f93cec3b000
31293 22:53:26.861039 write(1, "DATA1\n", 6) = 6
31293 22:53:26.861122 write(1, "DATA2\n", 6) = 6
31293 22:53:26.861196 write(1, "DATA3\n", 6) = 6
31293 22:53:26.861271 write(1, "FRA1\n", 5) = 5
31293 22:53:26.861377 write(1, "GRID1\n", 6) = 6
31293 22:53:26.861454 write(1, "GRID2\n", 6) = 6
31293 22:53:26.861529 write(1, "GRID3\n", 6) = 6
31293 22:53:26.861660 close(1) = 0
31293 22:53:26.861785 munmap(0x7f93cec3b000, 4096) = 0

File_name :: listdisks.strace

Working node,

28396 23:00:08.381708 open("/dev/oracleasm/disks/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
28396 23:00:08.381797 fcntl(4, F_SETFD, FD_CLOEXEC) = 0
28396 23:00:08.381936 getdents(4, /* 10 entries */, 32768) = 296
28396 23:00:08.382091 getdents(4, /* 0 entries */, 32768) = 0
28396 23:00:08.382175 close(4) = 0
28396 23:00:08.382282 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
28396 23:00:08.382383 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff97d166000
28396 23:00:08.382468 write(1, "DATA1\n", 6) = 6
28396 23:00:08.382560 write(1, "DATA2\n", 6) = 6
28396 23:00:08.382676 write(1, "DATA3\n", 6) = 6
28396 23:00:08.382764 write(1, "DATA4\n", 6) = 6 <<---------------------
28396 23:00:08.382854 write(1, "FRA1\n", 5) = 5
28396 23:00:08.382951 write(1, "GRID1\n", 6) = 6
28396 23:00:08.383031 write(1, "GRID2\n", 6) = 6
28396 23:00:08.383111 write(1, "GRID3\n", 6) = 6
28396 23:00:08.383208 close(1) = 0
28396 23:00:08.383293 munmap(0x7ff97d166000, 4096) = 0
28396 23:00:08.383412 exit_group(0) = ?
28391 23:00:08.383699 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 28396

File_name :: listdisks_xxxxxx01.strace

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.