分类目录归档:操作系统

ssd trim导致fdisk格式化磁盘之后无法恢复

8个节点的rac,有一个节点有点问题,重装系统的时候,没有选择任何磁盘
20231221191215


结果发现该机器上的所有磁盘都被分区并且加入到centos的vg中了,导致另外7个节点的asm disk的所有磁盘全部异常,磁盘组无法正常mount,在以前正常的rac节点上pvs扫描发现如下结果
20231221191551

对原asm disk(现在被分区加入到vg中的磁盘)进行分析发现所有的ssd磁盘被的以前记录被置空,机械磁盘的数据正常,机械磁盘kfed看到的记录

[root@xxxrac5 oracle]#  kfed read /dev/mapper/hdisk60 aun=2 aus=4096k
kfbh.endian:                          1 ; 0x000: 0x01
kfbh.hard:                          130 ; 0x001: 0x82
kfbh.type:                            3 ; 0x002: KFBTYP_ALLOCTBL
kfbh.datfmt:                          2 ; 0x003: 0x02
kfbh.block.blk:                    2048 ; 0x004: blk=2048
kfbh.block.obj:              2147483682 ; 0x008: disk=34
kfbh.check:                  2349679586 ; 0x00c: 0x8c0d43e2
kfbh.fcn.base:                   998219 ; 0x010: 0x000f3b4b
kfbh.fcn.wrap:                        0 ; 0x014: 0x00000000
kfbh.spare1:                          0 ; 0x018: 0x00000000
kfbh.spare2:                          0 ; 0x01c: 0x00000000
kfdatb.aunum:                    916608 ; 0x000: 0x000dfc80
………………
kfdate[446].free.hi:                  0 ; 0xe1c: S=0 V=0 L=0 ASZM=0x0 S=0
kfdate[447].discriminator:            0 ; 0xe20: 0x00000000
kfdate[447].free.lo.next:             0 ; 0xe20: 0x0000
kfdate[447].free.lo.prev:             0 ; 0xe22: 0x0000
kfdate[447].free.hi:                  0 ; 0xe24: S=0 V=0 L=0 ASZM=0x0 S=0

分析ssd磁盘的记录情况,发现磁盘中记录全部被置空

[root@xxxrac5 oracle]# kfed read /dev/mapper/ssdisk30 aun=2 aus=4096k
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
000800000 00000000 00000000 00000000 00000000  [................]
  Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]

[root@xxxrac5 oracle]# kfed read /dev/mapper/ssdisk30 aun=11 aus=4096k
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
002C00000 00000000 00000000 00000000 00000000  [................]
  Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]

[root@xxxrac5 oracle]# kfed read /dev/mapper/ssdisk30 aun=100
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
006400000 00000000 00000000 00000000 00000000  [................]
  Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]

[root@xxxrac5 oracle]# kfed read /dev/mapper/ssdisk30 aun=1000
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
03E800000 00000000 00000000 00000000 00000000  [................]
  Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]

[root@xxxrac5 oracle]# kfed read /dev/mapper/ssdisk30 aun=10000
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
271000000 00000000 00000000 00000000 00000000  [................]
  Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]

[root@xxxrac5 oracle]# kfed read /dev/mapper/ssdisk30 aun=100000
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
186A000000 00000000 00000000 00000000 00000000  [................]
  Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]

[root@xxxrac5 oracle]# kfed read /dev/mapper/ssdisk30 aun=100000
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
186A000000 00000000 00000000 00000000 00000000  [................]
  Repeat 255 times
KFED-00322: invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]

dd ssd磁盘100M数据压缩前后大小比较(压缩之后只有150kb左右,除了分区和lv信息之外其他全部是0)
100M
20231221193859


通过linux命令查看磁盘是否是为ssd(cat /sys/block/sdfr/queue/rotational为1表示机械磁盘,0表示ssd磁盘)

hdisk66 (360060e8007c550000030c55000000223) dm-66 HITACHI ,OPEN-V          
size=2.0T features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
  |- 10:0:1:4  sdfr               130:208 active ready running
  |- 7:0:0:4   sds                65:32   active ready running
  |- 8:0:1:4   sdu                65:64   active ready running
  `- 9:0:1:4   sdx                65:112  active ready running
ssdisk58 (26e8d69b6480c854f6c9ce90091cfe58e) dm-22 Nimble  ,Server          
size=2.0T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 7:0:1:48  sdfu               131:0   active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 10:0:0:48 sdek               128:192 active ghost running
ssdisk43 (2e0e493e08cfd75996c9ce90091cfe58e) dm-8 Nimble  ,Server          
size=2.0T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 7:0:1:35  sdev               129:112 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 10:0:0:35 sddj               71:16   active ghost running
ssdisk60 (2696bc3246f81fb116c9ce90091cfe58e) dm-34 Nimble  ,Server          
size=2.0T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 7:0:1:59  sdgq               132:96  active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 10:0:0:59 sdfg               130:32  active ghost running
ssdisk08 (2629f870548db01a76c9ce90091cfe58e) dm-35 Nimble  ,Server          
size=2.0T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 7:0:1:6   sdcq               69:224  active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 10:0:0:6  sdz                65:144  active ghost running
[root@odsrac5 oracle]# cat /sys/block/sdcq/queue/rotational
0
[root@odsrac5 oracle]# cat /sys/block/sdcu/queue/rotational
0
[root@odsrac5 oracle]# cat /sys/block/sdfr/queue/rotational
1

出现该问题是由于ssd盘的trim操作导致,相关知识补充:TRIM(SATA), Deallocate(NVMe), UNMAP(SCSI)指的是同一类指令,都是为了减少不必要的数据搬移。
原因:
在文件系统中,删除文件并没有真正的删除物理的数据,只是清空了记录表。而此时,对SSD来说,它并不知道文件已经被删除了,只有下次覆写的时候,SSD才能发现之前被删除的文件对应的page是无效的,从而启动GC。然而,如果在此之前发生了GC等数据搬移动作,无效的page仍然会被当做是有效的。重新磁盘分区,重建文件系统也可能触发类似操作
作用:
Trim 只是一个指令,它让操作系统通知 SSD 主控某个页的数据已经‘无效’后,任务就已完成,并没有更多的操作。TRIM 的先进性在于它可以让固态硬盘在进行垃圾回收的时候跳过移动无用数据的过程,从而不再用重新写入这些无用的数据,达到节省时间的目的。

发表在 Linux | 标签为 , , | 一条评论

redhat和oracle linux kernel对应关系—202310

 

Oracle Linux Oracle Linux Release Date Oracle Linux Kernel / Architecture / Release String Red Hat Enterprise Linux Red Hat Enterprise Linux Kernel / Release String
Oracle Linux 9    

 

 

Red Hat Enterprise Linux 9  
Oracle Linux 9.1 11 Nov 2022 UEKR7 5.15.0-3.60.5.1.el9uek ^ * (x86_64, aarch64)
RHCK 5.14.0-162.6.1.el9_1 (x86_64, aarch64)
redhat-release: Red Hat Enterprise Linux release 9.1 (Ootpa)
system-release: Oracle Linux Server release 9.1
oracle-release: Oracle Linux Server release 9.1
Red Hat Enterprise Linux 9.1 5.14.0-162.6.1.el9_1
redhat-release: Red Hat Enterprise Linux release 9.1 (Ootpa)
Oracle Linux 9.0 (GA) 01 Jul 2022 UEKR7 5.15.0-0.30.19.el9uek ^ * (x86_64, aarch64)
RHCK 5.14.0-70.13.1.0.3.el9_0 ^ (x86_64, aarch64)
redhat-release: Red Hat Enterprise Linux release 9.0 (Ootpa)
system-release: Oracle Linux Server release 9.0
oracle-release: Oracle Linux Server release 9.0
Red Hat Enterprise Linux 9.0 (GA) 5.14.0-70.13.1.el9_0
redhat-release: Red Hat Enterprise Linux release 9.0 (Ootpa)
Oracle Linux 8     Red Hat Enterprise Linux 8  
Oracle Linux 8.7 16 Nov 2022 UEKR7 5.15.0-3.60.5.1.el8uek ^ * (x86_64, aarch64)
RHCK 4.18.0-425.3.1.el8 ^ (x86_64, aarch64)
redhat-release: Red Hat Enterprise Linux release 8.7 (Ootpa)
system-release: Oracle Linux Server release 8.7
oracle-release: Oracle Linux Server release 8.7
Red Hat Enterprise Linux 8.7 4.18.0-425.3.1.el8
redhat-release: Red Hat Enterprise Linux release 8.7 (Ootpa)
Oracle Linux 8.6 17 May 2022 UEKR6 5.4.17-2136.307.3.1.el8uek ^ * (x86_64, aarch64)
RHCK 4.18.0-372.9.1.el8 ^ (x86_64, aarch64)
redhat-release: Red Hat Enterprise Linux release 8.6 (Ootpa)
system-release: Oracle Linux Server release 8.6
oracle-release: Oracle Linux Server release 8.6
Red Hat Enterprise Linux 8.6 4.18.0-372.9.1.el8
redhat-release: Red Hat Enterprise Linux release 8.6 (Ootpa)
Oracle Linux 8.5 16 Nov 2021 UEKR6 5.4.17-2136.300.7.el8uek ^ * (x86_64, aarch64)
RHCK 4.18.0-348.el8 ^ (x86_64, aarch64)
redhat-release: Red Hat Enterprise Linux release 8.5 (Ootpa)
system-release: Oracle Linux Server release 8.5
oracle-release: Oracle Linux Server release 8.5
Red Hat Enterprise Linux 8.5 4.18.0-348.el8
redhat-release: Red Hat Enterprise Linux release 8.5 (Ootpa)
Oracle Linux 8.4 26 May 2021 UEKR6 5.4.17-2102.201.3.6.2.el8uek ^ * (x86_64, aarch64)
RHCK 4.18.0-305.el8 ^ (x86_64, aarch64)
redhat-release: Red Hat Enterprise Linux release 8.4 (Ootpa)
system-release: Oracle Linux Server release 8.4
oracle-release: Oracle Linux Server release 8.4
Red Hat Enterprise Linux 8.4 4.18.0-305.el8
redhat-release: Red Hat Enterprise Linux release 8.4 (Ootpa)
Oracle Linux 8.3 13 Nov 2020 UEKR6 5.4.17-2011.7.4.el8uek ^ * (x86_64, aarch64)
RHCK 4.18.0-240.el8 ^ (x86_64, aarch64)
redhat-release: Red Hat Enterprise Linux release 8.3 (Ootpa)
system-release: Oracle Linux Server release 8.3
oracle-release: Oracle Linux Server release 8.3
Red Hat Enterprise Linux 8.3 4.18.0-240.el8
redhat-release: Red Hat Enterprise Linux release 8.3 (Ootpa)
Oracle Linux 8.2 06 May 2020 UEKR6 5.4.17-2011.6.2.el8uek ^ * (x86_64)
UEKR6 5.4.17-2011.1.2.el8uek ^ * (aarch64)
RHCK 4.18.0-193.el8 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux release 8.2 (Ootpa)
system-release: Oracle Linux Server release 8.2
oracle-release: Oracle Linux Server release 8.2
Red Hat Enterprise Linux 8.2 4.18.0-193.el8
redhat-release: Red Hat Enterprise Linux release 8.2 (Ootpa)
Oracle Linux 8.1 15 Nov 2019 RHCK 4.18.0-147.el8 ^ * (x86_64, aarch64: Developer Preview)
UEK unavailable
redhat-release: Red Hat Enterprise Linux release 8.1 (Ootpa)
system-release: Oracle Linux Server release 8.1
oracle-release: Oracle Linux Server release 8.1
Red Hat Enterprise Linux 8.1 4.18.0-147.el8
redhat-release: Red Hat Enterprise Linux release 8.1 (Ootpa)
Oracle Linux 8.0 (GA) 18 Jul 2019 RHCK 4.18.0-80.el8 ^ * (x86_64, aarch64: Developer Preview)
UEK unavailable
redhat-release: Red Hat Enterprise Linux release 8.0 (Ootpa)
system-release: Oracle Linux Server release 8.0
oracle-release: Oracle Linux Server release 8.0
Red Hat Enterprise Linux 8.0 (GA) 4.18.0-80.el8
redhat-release: Red Hat Enterprise Linux release 8.0 (Ootpa)
Oracle Linux 7     Red Hat Enterprise Linux 7  
Oracle Linux 7.9 07 Oct 2020 UEKR6 5.4.17-2011.6.2.el7uek ^ * (x86_64, aarch64)
RHCK 3.10.0-1160.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.9 (Maipo)
system-release: Oracle Linux Server release 7.9
oracle-release: Oracle Linux Server release 7.9
Red Hat Enterprise Linux 7.9 3.10.0-1160.el7
redhat-release: Red Hat Enterprise Linux Server release 7.9 (Maipo)
Oracle Linux 7.8 08 Apr 2020 UEKR5 4.14.35-1902.300.11.el7uek ^ * (x86_64, aarch64)
RHCK 3.10.0-1127.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.8 (Maipo)
system-release: Oracle Linux Server release 7.8
oracle-release: Oracle Linux Server release 7.8
Red Hat Enterprise Linux 7.8 3.10.0-1127.el7
redhat-release: Red Hat Enterprise Linux Server release 7.8 (Maipo)
Oracle Linux 7.7 15 Aug 2019 UEKR5 4.14.35-1902.3.2.el7uek ^ * (x86_64, aarch64)
RHCK 3.10.0-1062.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.7 (Maipo)
system-release: Oracle Linux Server release 7.7
oracle-release: Oracle Linux Server release 7.7
Red Hat Enterprise Linux 7.7 3.10.0-1062.el7
redhat-release: Red Hat Enterprise Linux Server release 7.7 (Maipo)
Oracle Linux 7.6 07 Nov 2018 UEKR5 4.14.35-1818.3.3.el7uek ^ * (x86_64, aarch64)
RHCK 3.10.0-957.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.6 (Maipo)
system-release: Oracle Linux Server release 7.6
oracle-release: Oracle Linux Server release 7.6
Red Hat Enterprise Linux 7.6 3.10.0-957.el7
redhat-release: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Oracle Linux 7.5 17 Apr 2018 UEKR5 4.14.35-1818.0.9.el7uek ^ * (aarch64)
UEKR4 4.1.12-112.16.4.el7uek ^ * (x86_64)
RHCK 3.10.0-862.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.5 (Maipo)
system-release: Oracle Linux Server release 7.5
oracle-release: Oracle Linux Server release 7.5
Red Hat Enterprise Linux 7.5 3.10.0-862.el7
redhat-release: Red Hat Enterprise Linux Server release 7.5 (Maipo)
Oracle Linux 7.4 08 Aug 2017 UEKR4 4.1.12-94.3.9.el7uek ^ * (x86_64)
RHCK 3.10.0-693.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.4 (Maipo)
system-release: Oracle Linux Server release 7.4
oracle-release: Oracle Linux Server release 7.4
Red Hat Enterprise Linux 7.4 3.10.0-514.el7
redhat-release: Red Hat Enterprise Linux Server release 7.3 (Maipo)
Oracle Linux 7.3 10 Nov 2016 UEKR4 4.1.12-61.1.18.el7uek ^ * (x86_64)
RHCK 3.10.0-514.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.3 (Maipo)
system-release: Oracle Linux Server release 7.3
oracle-release: Oracle Linux Server release 7.3
Red Hat Enterprise Linux 7.3 3.10.0-514.el7
redhat-release: Red Hat Enterprise Linux Server release 7.3 (Maipo)
Oracle Linux 7.2 25 Nov 2015 UEKR3 3.8.13-98.6.1.el7uek ^ * (x86_64)
RHCK 3.10.0-327.el7 ^ (x86_64)
redhat-release: Red Hat Enterprise Linux Server release 7.2 (Maipo)
system-release: Oracle Linux Server release 7.2
oracle-release: Oracle Linux Server release 7.2
Red Hat Enterprise Linux 7.2 3.10.0-327.el7
redhat-release: Red Hat Enterprise Linux Server release 7.2 (Maipo)
Oracle Linux 7.1 12 Mar 2015 UEKR3 3.8.13-55.1.6.el7uek ^ * (x86_64)
RHCK 3.10.0-229.el7 ^ (x86_64)
redhat-release:Red Hat Enterprise Linux Server release 7.1 (Maipo)
system-release:Oracle Linux Server release 7.1
oracle-release: Oracle Linux Server release 7.1
Red Hat Enterprise Linux 7.1 3.10.0-229.el7
redhat-release: Red Hat Enterprise Linux Server release 7.1 (Maipo)
Oracle Linux 7.0 (GA) 23 Jul 2014 UEKR3 3.8.13-35.3.1.el7uek ^ * (x86_64)
RHCK 3.10.0-123.el7 ^ (x86_64)
redhat-release:Red Hat Enterprise Linux Server release 7.0 (Maipo)
system-release:Oracle Linux Server release 7.0
oracle-release: Oracle Linux Server release 7.0
Red Hat Enterprise Linux 7.0 (GA) 3.10.0-123.el7
redhat-release: Red Hat Enterprise Linux Server release 7.0 (Maipo)
Oracle Linux 6     Red Hat Enterprise Linux 6  
Oracle Linux 6.10 02 Jul 2018 UEKR4 4.1.12-124.16.4.el6uek ^ * (x86_64 only)
UEKR2 2.6.39-400.299.3.el6uek ^ * (x86 only)
RHCK 2.6.32-754.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.10 (Santiago)
system-release: Oracle Linux Server release 6.10
oracle-release: Oracle Linux Server release 6.10
Red Hat Enterprise Linux 6.10 2.6.32-754.el6
redhat-release: Red Hat Enterprise Linux Server release 6.10 (Santiago)
Oracle Linux 6.9 28 Mar 2017 UEKR4 4.1.12-61.1.28.el6uek ^ * (x86_64 only)
UEKR2 2.6.39-400.294.3.el6uek ^ * (x86 only)
RHCK 2.6.32-696.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.9 (Santiago)
system-release: Oracle Linux Server release 6.9
oracle-release: Oracle Linux Server release 6.9
Red Hat Enterprise Linux Server 6.9 2.6.32-696.el6
redhat-release: Red Hat Enterprise Linux Server release 6.9 (Santiago)
Oracle Linux 6.8 20 May 2016 UEKR4 4.1.12-37.3.1.el6uek ^ * (x86_64 only)
UEKR2 2.6.39-400.278.2.el6uek ^ * (x86 only)
RHCK 2.6.32-642.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.8 (Santiago)
system-release: Oracle Linux Server release 6.8
oracle-release: Oracle Linux Server release 6.8
Red Hat Enterprise Linux Server 6.8 2.6.32-642.el6
redhat-release: Red Hat Enterprise Linux Server release 6.8 (Santiago)
Oracle Linux 6.7 29 Jul 2015 UEKR3 3.8.13-68.3.4.el6uek ^ * (x86_64 only)
UEKR2 2.6.39-400.250.7.el6uek ^ * (x86 only)
RHCK 2.6.32-573.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.7 (Santiago)
system-release: Oracle Linux Server release 6.7
oracle-release: Oracle Linux Server release 6.7
Red Hat Enterprise Linux Server 6.7 2.6.32-573.el6
redhat-release: Red Hat Enterprise Linux Server release 6.7 (Santiago)
Oracle Linux 6.6 21 Oct 2014 UEKR3 3.8.13-44.1.1.el6uek ^ * (x86_64 only)
UEKR2 2.6.39-400.215.10.el6uek ^ * (x86 only)
RHCK 2.6.32-504.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.6 (Santiago)
system-release: Oracle Linux Server release 6.6
oracle-release: Oracle Linux Server release 6.6
Red Hat Enterprise Linux Server 6.6 2.6.32-504.el6
edhat-release: Red Hat Enterprise Linux Server release 6.6 (Santiago)
Oracle Linux 6.5 27 Nov 2013 UEKR3 3.8.13-16.121.el6uek ^ * (x86_64 only)
UEKR2 2.6.39-400.211.1.el6uek ^ * (x86 only)
RHCK 2.6.32-431.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.5 (Santiago)
system-release: Oracle Linux Server release 6.5
oracle-release: Oracle Linux Server release 6.5
Red Hat Enterprise Linux Server 6.5 2.6.32-431.el6
redhat-release: Red Hat Enterprise Linux Server release 6.5 (Santiago)
Oracle Linux 6.4 28 Feb 2013 UEKR2 2.6.39-400.17.1.el6uek ^ * (x86, x86_64)
RHCK 2.6.32-358.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.4 (Santiago)
system-release: Oracle Linux Server release 6.4
oracle-release: Oracle Linux Server release 6.4
Red Hat Enterprise Linux Server 6.4 2.6.32-358.el6
redhat-release: Red Hat Enterprise Linux Server release 6.4 (Santiago)
Oracle Linux 6.3 28 Jun 2012 UEKR2 2.6.39-200.24.1.el6uek ^ * (x86, x86_64)
RHCK 2.6.32-279.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.3 (Santiago)
system-release: Oracle Linux Server release 6.3
oracle-release: Oracle Linux Server release 6.3
Red Hat Enterprise Linux Server 6.3 2.6.32-279.el6
redhat-release: Red Hat Enterprise Linux Server release 6.3 (Santiago)
Oracle Linux 6.2 15 Dec 2011 UEKR1 2.6.32-100.34.1.el6uek ^ * (x86, x86_64)
RHCK 2.6.32-220.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.2 (Santiago)
system-release: Oracle Linux Server release 6.2
oracle-release: Oracle Linux Server release 6.2
Red Hat Enterprise Linux Server 6.2 2.6.32-220.el6
redhat-release: Red Hat Enterprise Linux Server release 6.2 (Santiago)
Oracle Linux 6.1 01 Jun 2011 UEKR1 2.6.32-100.34.1.el6uek ^ * (x86, x86_64)
RHCK 2.6.32-131.0.15.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.1 (Santiago)
system-release: Oracle Linux Server release 6.1
oracle-release: Oracle Linux Server release 6.1
Red Hat Enterprise Linux Server 6.1 2.6.32-131.el6
redhat-release: Red Hat Enterprise Linux Server release 6.1 (Santiago)
Oracle Linux 6.0 (GA) 11 Feb 2011 UEKR1 2.6.32-100.28.5.el6uek ^ * (x86, x86_64)
RHCK 2.6.32-71.el6 ^ (x86, x86_64)
redhat-release: Red Hat Enterprise Linux Server release 6.0 (Santiago)
system-release: Oracle Linux Server release 6.0
oracle-release: Oracle Linux Server release 6.0
Red Hat Enterprise Linux Server 6.0 (GA) 2.6.32-71.el6
redhat-release: Red Hat Enterprise Linux Server release 6.0 (Santiago)
Oracle Linux 5     Red Hat Enterprise Linux 5  
Oracle Linux 5.11 26 Sep 2014 UEKR2 2.6.39-400.215.10.el5uek ^ * (x86, x86_64, ia64)
RHCK 2.6.18-398.el5 ^ (x86, x86_64, ia64)
RHCK 2.6.18-398.0.0.0.1.el5 (x86, x86_64, ia64)
redhat-release: Red Hat Enterprise Linux Server release 5.11 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.11 (Carthage)
oracle-release: Oracle Linux Server release 5.11
Red Hat Enterprise Linux Server 5.11 2.6.18-398.el5
redhat-release: Red Hat Enterprise Linux Server release 5.11 (Tikanga)
Oracle Linux 5.10 08 Oct 2013 UEKR2 2.6.39-400.209.1.el5uek ^ * (x86, x86_64, ia64)
RHCK 2.6.18-371.el5 ^ (x86, x86_64)
RHCKMOD 2.6.18-371.0.0.0.1.el5 (x86, x86_64, ia64)
redhat-release: Red Hat Enterprise Linux Server release 5.10 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.10 (Carthage)
oracle-release: Oracle Linux Server release 5.10
Red Hat Enterprise Linux Server 5.10 2.6.18-371.el5
redhat-release: Red Hat Enterprise Linux Server release 5.10 (Tikanga)
Oracle Linux 5.9 16 Jan 2013 UEKR2 2.6.39-300.26.1.el5uek ^ * (x86, x86_64, ia64)
RHCK 2.6.18-348.el5 ^ (x86, x86_64)
RHCKMOD 2.6.18-348.0.0.0.1.el5 (x86, x86_64, ia64)
redhat-release: Red Hat Enterprise Linux Server release 5.9 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.9 (Carthage)
oracle-release: Oracle Linux Server release 5.9
Red Hat Enterprise Linux Server 5.9 2.6.18-348.el5
redhat-release: Red Hat Enterprise Linux Server release 5.9 (Tikanga)
Oracle Linux 5.8 02 Mar 2012 UEKR1 2.6.32-300.10.1.el5uek ^ * (x86, x86_64, ia64)
RHCK 2.6.18-308.el5 ^ (x86, x86_64)
RHCKMOD 2.6.18-308.0.0.0.1.el5 (x86, x86_64, ia64)
redhat-release: Red Hat Enterprise Linux Server release 5.8 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.8 (Carthage)
oracle-release: Oracle Linux Server release 5.8
Red Hat Enterprise Linux Server 5.8 2.6.18-308.el5
redhat-release: Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Oracle Linux 5.7 16 Aug 2011 UEKR1 2.6.32-200.13.1.el5uek ^ * (x86, x86_64, ia64)
RHCK 2.6.18-274.el5 ^ (x86, x86_64)
RHCKMOD 2.6.18-274.0.0.0.1.el5 (x86, x86_64, ia64)
redhat-release: Red Hat Enterprise Linux Server release 5.7 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
oracle-release: Oracle Linux Server release 5.7
Red Hat Enterprise Linux Server 5.7 2.6.18-274.el5
redhat-release: Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Oracle Linux 5.6 22 Jan 2011 UEKR1 2.6.32-100.26.2.el5uek ^ * (x86_64, ia64)
RHCK 2.6.18-238.el5 ^ (x86, x86_64)
RHCKMOD 2.6.18-238.0.0.0.1.el5 (x86, x86_64, ia64)
redhat-release: Red Hat Enterprise Linux Server release 5.6 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.6 (Carthage)
oracle-release: Oracle Linux Server release 5.6
Red Hat Enterprise Linux Server 5.6 2.6.18-238.el5
redhat-release: Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Oracle Linux 5.5 07 Apr 2010 2.6.18-194.el5 ^ * (x86, x86_64, ia64)
UEKR1 2.6.32-100.24.1.el5 # (x86_64)
2.6.18-194.0.0.0.3.el5 (x86, x86_64, ia64)
redhat-release: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
oracle-release: Oracle Linux Server release 5.5
Red Hat Enterprise Linux Server 5.5 2.6.18-194.el5
redhat-release: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Oracle Enterprise Linux 5.4 09 Sep 2009 2.6.18-164.el5 ^ * (x86, x86_64)
2.6.18-164.0.0.0.1.el5 (x86, x86_64)
no UEK available
redhat-release: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
Red Hat Enterprise Linux Server 5.4 2.6.18-164.el5
redhat-release: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Oracle Enterprise Linux 5.3 28 Jan 2009 RHCK 2.6.18-128.el5 ^ * (x86, x86_64)
RHCKMOD 2.6.18-128.0.0.0.2.el5 (x86, x86_64)
UEK unavailable
redhat-release: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server 5.3 2.6.18-128.el5
redhat-release: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Oracle Enterprise Linux 5.2 02 Jun 2008 RHCK 2.6.18-92.el5 ^ * (x86, x86_64)
RHCKMOD 2.6.18-92.0.0.0.1.el5 (x86, x86_64)
UEK unavailable
redhat-release: Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Red Hat Enterprise Linux Server 5.2 2.6.18-92.el5
redhat-release: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Oracle Enterprise Linux 5.1 26 Nov 2007 RHCK 2.6.18-53.el5 ^ * (x86, x86_64)
RHCKMOD 2.6.18-53.0.0.0.1.el5 (x86, x86_64)
UEK unavailable
redhat-release: Enterprise Linux Enterprise Linux Server release 5.1 (Carthage)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5.1 (Carthage)
Red Hat Enterprise Linux Server 5.1 2.6.18-53.el5
redhat-release: Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Oracle Enterprise Linux 5.0 (GA) 26 Jun 2007 RHCK 2.6.18-8.el5 ^ * (x86, x86_64)
RHCKMOD 2.6.18-8.0.0.4.1.el5 (x86, x86_64)
UEK unavailable
redhat-release: Enterprise Linux Enterprise Linux Server release 5 (Carthage)
enterprise-release: Enterprise Linux Enterprise Linux Server release 5 (Carthage)
Red Hat Enterprise Linux Server 5.0 (GA) 2.6.18-8.el5
redhat-release: Red Hat Enterprise Linux Server release 5 (Tikanga)
Oracle Enterprise Linux 4     Red Hat Enterprise Linux 4  
Oracle Enterprise Linux 4.9 28 Feb 2011 RHCKMOD 2.6.9-100.0.0.0.1.EL ^ * # (x86, x86_64, ia64)
RHCK 2.6.9-100.EL (x86, x86_64, ia64)
UEK unavailable
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 9)
enterprise-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 9)
Red Hat Enterprise Linux 4.9 2.6.9-100.EL
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 9)
Oracle Enterprise Linux 4.8 26 May 2009 RHCKMOD 2.6.9-89.0.0.0.1.EL ^ * (x86, x86_64, ia64)
RHCK 2.6.9-89.EL (x86, x86_64, ia64)
UEK unavailable
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
enterprise-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 8)
Red Hat Enterprise Linux 4.8 2.6.9-89.EL
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Oracle Enterprise Linux 4.7 05 Aug 2008 RHCKMOD 2.6.9-78.0.0.0.1.EL ^ * (x86, x86_64, ia64)
RHCK 2.6.9-78.EL (x86, x86_64, ia64)
UEK unavailable
redhat-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
enterprise-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
Red Hat Enterprise Linux 4.7 2.6.9-78.EL
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
Oracle Enterprise Linux 4.6 10 Dec 2007 RHCKMOD 2.6.9-67.0.0.0.1.EL ^ * (x86, x86_64, ia64)
RHCK 2.6.9-67.EL ^ * (x86, x86_64, ia64)
UEK unavailable
redhat-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 6)
enterprise-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 6)
Red Hat Enterprise Linux 4.6 2.6.9-67.EL
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
Oracle Enterprise Linux 4.5 13 May 2007 RHCKMOD 2.6.9-55.0.0.0.2.EL ^ * (x86, x86_64)
RHCK 2.6.9-55.EL (x86, x86_64)
UEK unavailable
redhat-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 5)
enterprise-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 5)
Red Hat Enterprise Linux 4.5 2.6.9-55.EL
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
Oracle Enterprise Linux 4.4 (GA) 26 Oct 2006 RHCKMOD 2.6.9-42.0.0.0.1.EL ^ * (x86, x86_64)
RHCK 2.6.9-42.EL (x86, x86_64)
UEK unavailable
redhat-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 4)
enterprise-release: Enterprise Linux Enterprise Linux AS release 4 (October Update 4)
Red Hat Enterprise Linux 4 Update 4 2.6.9-42.EL
redhat-release: Red Hat Enterprise Linux AS release 4 (Nahant Update 4

 补充说明:

  • Oracle Linux RHCK kernels correspond to Red Hat Enterprise Linux Server Edition kernels only
  • From Oracle Linux 4.8, 5.3, 6.0, 7.0, 8.0, 9.0 onward, /etc/redhat-release file content mirrors that of corresponding RHEL 4/5/6/7/8/9 versions
  • From Oracle Linux 5.6 onward, UEK is the default boot kernel
  • * default boot kernel
  • ^ default installed kernel
  • # available only via ULN / Oracle YUM Server update
  • UEKR7 (5.15.0) available from Oracle Linux 8.7 (x86_64, aarch64), 9.0 (x86_64, aarch64)
  • UEKR6 (5.4.17) available from Oracle Linux 7.9 (x86_64, aarch64), 8.2 (x86_64, aarch64)
  • UEKR5 (4.1.14) available from Oracle Linux 7.5 (aarch64), 7.6 (x86_64), 8.1 (x86_64)
  • UEKR4 (4.1.12) available from Oracle Linux 6.8 (x86, x86_64), 7.3 (x86_64)
  • UEKR3 (3.8.13) available from Oracle Linux 6.4 (x86, x86_64), 7.0 (x86_64)
  • UEKR2 (2.6.39) available from Oracle Linux 5.9 (x86, x86_64), 6.3 (x86, x86_64)
  • UEK[R1] (2.6.32) available from Oracle Linux 5.5 (x86, x86_64), 6.0 (x86, x86_64)

 参考:Oracle Linux: Comparison of Oracle Linux and Red Hat Enterprise Linux Kernel Versions (Doc ID 560992.1)

发表在 Linux | 评论关闭

ARM上的oracle数据库存储字节序分析—小字节序

对在ARM CPU上运行的oracle数据库进行分析,判断大小字节序问题
从系统上lscpu看是小字节序

[root@xifenfei ~]# lscpu
Architecture:                    aarch64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
CPU(s):                          8
On-line CPU(s) list:             0-7
Thread(s) per core:              1
Core(s) per socket:              8
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       ARM
Model:                           1
Model name:                      Cortex-A76
Stepping:                        r4p1
BogoMIPS:                        125.00
NUMA node0 CPU(s):               0-7
…………
[root@xifenfei ~]# 

从dbid分析字节序问题
数据库中查看dbid值

SQL> select name,dbid,PLATFORM_ID,PLATFORM_NAME from v$database;

NAME            DBID PLATFORM_ID
--------- ---------- -----------
PLATFORM_NAME
--------------------------------------------------------------------------------
ARMDB     1195886419          23
Linux OS (AARCH64)

bbed查看dbid值

BBED> p kcvfh.kcvfhhdr.kccfhdbi
ub4 kccfhdbi                                @28       0x4747c753

BBED> set count 16
        COUNT           16

BBED> d
 File: /tmp/system01.dbf (0)
 Block: 1                Offsets:   28 to   43           Dba:0x00000000
------------------------------------------------------------------------
 53c74747 41524d44 42000000 03040000 

 <32 bytes per line>

从这里可以看出来dbid(1195886419)是倒序存储的,也就证明了arm linux上面运行的oracle 是小字节序的.

发表在 Linux, Oracle | 标签为 , | 评论关闭