实战:Solrais系统下Oracle 12.2 在线扩容ASM磁盘组操作记录

news2025/1/18 10:01:52

这篇文章主要是为了记录一下操作,这个假期又要给这套RAC扩容磁盘。

我这套Solaris的小机我还不总操作这玩意,和LINUX有点小差别,整理记录一下,要不每次都是现翻。

存储端划LUN映射到主机

登录到3PAR存储控制台,创建新的VV

image.png

创建VV配置

image.png

按此配置创建2个卷

image.png

选中卷,右键选择Export(映射)

image.png

在下一个界面中,选好主机组(也就是我们要映射的RAC主机),实际映射了2个vv这里图有错误说明一下。

image.png

image.png

确认存储端VV的WWN

image.png

主机端格式化磁盘

映射存储之前查看LUN信息,以下操作在2个节点都执行校验一下

root@XDB1:~# format 
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t60002AC0000000000000003A00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003a00020a4c
       1. c0t60002AC0000000000000003B00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003b00020a4c
       2. c0t60002AC0000000000000003C00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003c00020a4c
       3. c0t60002AC0000000000000003D00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003d00020a4c
       4. c0t60002AC0000000000000003E00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003e00020a4c
       5. c0t60002AC0000000000000003F00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003f00020a4c
       6. c0t60002AC0000000000000004A00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004a00020a4c
       7. c0t60002AC0000000000000004B00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004b00020a4c
       8. c0t60002AC0000000000000004C00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004c00020a4c
       9. c0t60002AC0000000000000004D00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004d00020a4c
      10. c0t60002AC0000000000000004E00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004e00020a4c
      11. c0t60002AC0000000000000040A00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040a00020a4c
      12. c0t60002AC0000000000000040B00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040b00020a4c
      13. c0t60002AC0000000000000040C00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040c00020a4c
      14. c0t60002AC0000000000000040D00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040d00020a4c
      15. c0t60002AC0000000000000040E00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040e00020a4c
      16. c0t60002AC0000000000000048A00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048a00020a4c
      17. c0t60002AC0000000000000048B00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048b00020a4c
      18. c0t60002AC0000000000000048C00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048c00020a4c
      19. c0t60002AC0000000000000048D00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048d00020a4c
      20. c0t60002AC0000000000000048E00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048e00020a4c
      21. c0t60002AC0000000000000003200020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003200020a4c
      22. c0t60002AC0000000000000003300020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003300020a4c
      23. c0t60002AC0000000000000003400020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003400020a4c
      24. c0t60002AC0000000000000003500020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003500020a4c
      25. c0t60002AC0000000000000003600020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003600020a4c
      26. c0t60002AC0000000000000003700020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003700020a4c
      27. c0t60002AC0000000000000003800020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003800020a4c
      28. c0t60002AC0000000000000003900020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003900020a4c
      29. c0t60002AC0000000000000004000020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004000020a4c
      30. c0t60002AC0000000000000004100020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004100020a4c
      31. c0t60002AC0000000000000004200020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004200020a4c
      32. c0t60002AC0000000000000004300020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004300020a4c
      33. c0t60002AC0000000000000004400020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004400020a4c
      34. c0t60002AC0000000000000004500020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004500020a4c
      35. c0t60002AC0000000000000004900020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004900020a4c
      36. c0t60002AC0000000000000006700020893d0 <3PARdata-VV-3226-200.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000006700020893
      37. c0t60002AC0000000000000008800020893d0 <3PARdata-VV-3226-4.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000008800020893
      38. c1d0 <3PARdata-VV-3226-300.00GB>
          /virtual-devices@100/channel-devices@200/disk@0
      39. c1d1 <3PARdata-VV-3226-300.00GB>
          /virtual-devices@100/channel-devices@200/disk@1

增加映射后使用命令cfgadm -al扫描并查看配置

root@XDB1:~# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c2                             fc-fabric    connected    configured   unknown
c2::100000144ffa3735           unknown      connected    unconfigured unknown
c2::100000144ffa5d2c           unknown      connected    unconfigured unknown
c2::20020002ac020893           disk         connected    configured   unknown
c2::20410002ac0209f4           disk         connected    configured   unknown
c2::20410002ac020a4c           disk         connected    configured   unknown
c2::20510002ac0209f4           disk         connected    configured   unknown
c2::20510002ac020a4c           disk         connected    configured   unknown
c2::21020002ac020893           disk         connected    configured   unknown
c2::21420002ac0209f4           disk         connected    configured   unknown
c2::21420002ac020a4c           disk         connected    configured   unknown
c2::21520002ac0209f4           disk         connected    configured   unknown
c2::21520002ac020a4c           disk         connected    configured   unknown
c3                             fc-fabric    connected    configured   unknown
c3::100000144ffb4fa0           unknown      connected    unconfigured unknown
c3::20010002ac020893           disk         connected    configured   unknown
c3::20420002ac0209f4           disk         connected    configured   unknown
c3::20420002ac020a4c           disk         connected    configured   unknown
c3::20520002ac0209f4           disk         connected    configured   unknown
c3::20520002ac020a4c           disk         connected    configured   unknown
c3::21010002ac020893           disk         connected    configured   unknown
c3::21410002ac0209f4           disk         connected    configured   unknown
c3::21410002ac020a4c           disk         connected    configured   unknown
c3::21510002ac0209f4           disk         connected    configured   unknown
c3::21510002ac020a4c           disk         connected    configured   unknown
c4                             fc-fabric    connected    configured   unknown
c4::100000144ffa3735           unknown      connected    unconfigured unknown
c4::100000144ffacf8b           unknown      connected    unconfigured unknown
c4::20020002ac020893           disk         connected    configured   unknown
c4::20410002ac0209f4           disk         connected    configured   unknown
c4::20410002ac020a4c           disk         connected    configured   unknown
c4::20510002ac0209f4           disk         connected    configured   unknown
c4::20510002ac020a4c           disk         connected    configured   unknown
c4::21020002ac020893           disk         connected    configured   unknown
c4::21420002ac0209f4           disk         connected    configured   unknown
c4::21420002ac020a4c           disk         connected    configured   unknown
c4::21520002ac0209f4           disk         connected    configured   unknown
c4::21520002ac020a4c           disk         connected    configured   unknown
c5                             fc-fabric    connected    configured   unknown
c5::20020002ac020893           disk         connected    configured   unknown
c5::20410002ac0209f4           disk         connected    configured   unknown
c5::20410002ac020a4c           disk         connected    configured   unknown
c5::20510002ac0209f4           disk         connected    configured   unknown
c5::20510002ac020a4c           disk         connected    configured   unknown
c5::21020002ac020893           disk         connected    configured   unknown
c5::21420002ac0209f4           disk         connected    configured   unknown
c5::21420002ac020a4c           disk         connected    configured   unknown
c5::21520002ac0209f4           disk         connected    configured   unknown
c5::21520002ac020a4c           disk         connected    configured   unknown
c6                             fc-fabric    connected    configured   unknown
c6::100000144ff929d5           unknown      connected    unconfigured unknown
c6::100000144ff9c72b           unknown      connected    unconfigured unknown
c6::20010002ac020893           disk         connected    configured   unknown
c6::20420002ac0209f4           disk         connected    configured   unknown
c6::20420002ac020a4c           disk         connected    configured   unknown
c6::20520002ac0209f4           disk         connected    configured   unknown
c6::20520002ac020a4c           disk         connected    configured   unknown
c6::21010002ac020893           ESI          connected    configured   unusable
c6::21410002ac0209f4           disk         connected    configured   unknown
c6::21410002ac020a4c           disk         connected    configured   unknown
c6::21510002ac0209f4           disk         connected    configured   unknown
c6::21510002ac020a4c           disk         connected    configured   unknown
c7                             fc-fabric    connected    configured   unknown
c7::100000144ff929d5           unknown      connected    unconfigured unknown
c7::100000144ffb4fa0           unknown      connected    unconfigured unknown
c7::20010002ac020893           disk         connected    configured   unknown
c7::20420002ac0209f4           disk         connected    configured   unknown
c7::20420002ac020a4c           disk         connected    configured   unknown
c7::20520002ac0209f4           disk         connected    configured   unknown
c7::20520002ac020a4c           disk         connected    configured   unknown
c7::21010002ac020893           disk         connected    configured   unknown
c7::21410002ac0209f4           disk         connected    configured   unknown
c7::21410002ac020a4c           disk         connected    configured   unknown
c7::21510002ac0209f4           disk         connected    configured   unknown
c7::21510002ac020a4c           disk         connected    configured   unknown

之后再format查看磁盘

root@XDB1:~# format 
Searching for disks...done

c0t60002AC0000000000000048F00020A4Cd0: configured with capacity of 2048.00GB
c0t60002AC0000000000000049000020A4Cd0: configured with capacity of 2048.00GB


AVAILABLE DISK SELECTIONS:
       0. c0t60002AC0000000000000003A00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003a00020a4c
       1. c0t60002AC0000000000000003B00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003b00020a4c
       2. c0t60002AC0000000000000003C00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003c00020a4c
       3. c0t60002AC0000000000000003D00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003d00020a4c
       4. c0t60002AC0000000000000003E00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003e00020a4c
       5. c0t60002AC0000000000000003F00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003f00020a4c
       6. c0t60002AC0000000000000004A00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004a00020a4c
       7. c0t60002AC0000000000000004B00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004b00020a4c
       8. c0t60002AC0000000000000004C00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004c00020a4c
       9. c0t60002AC0000000000000004D00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004d00020a4c
      10. c0t60002AC0000000000000004E00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004e00020a4c
      11. c0t60002AC0000000000000040A00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040a00020a4c
      12. c0t60002AC0000000000000040B00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040b00020a4c
      13. c0t60002AC0000000000000040C00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040c00020a4c
      14. c0t60002AC0000000000000040D00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040d00020a4c
      15. c0t60002AC0000000000000040E00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040e00020a4c
      16. c0t60002AC0000000000000048A00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048a00020a4c
      17. c0t60002AC0000000000000048B00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048b00020a4c
      18. c0t60002AC0000000000000048C00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048c00020a4c
      19. c0t60002AC0000000000000048D00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048d00020a4c
      20. c0t60002AC0000000000000048E00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048e00020a4c
      21. c0t60002AC0000000000000048F00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048f00020a4c
      22. c0t60002AC0000000000000003200020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003200020a4c
      23. c0t60002AC0000000000000003300020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003300020a4c
      24. c0t60002AC0000000000000003400020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003400020a4c
      25. c0t60002AC0000000000000003500020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003500020a4c
      26. c0t60002AC0000000000000003600020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003600020a4c
      27. c0t60002AC0000000000000003700020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003700020a4c
      28. c0t60002AC0000000000000003800020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003800020a4c
      29. c0t60002AC0000000000000003900020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003900020a4c
      30. c0t60002AC0000000000000004000020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004000020a4c
      31. c0t60002AC0000000000000004100020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004100020a4c
      32. c0t60002AC0000000000000004200020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004200020a4c
      33. c0t60002AC0000000000000004300020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004300020a4c
      34. c0t60002AC0000000000000004400020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004400020a4c
      35. c0t60002AC0000000000000004500020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004500020a4c
      36. c0t60002AC0000000000000004900020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004900020a4c
      37. c0t60002AC0000000000000049000020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000049000020a4c
      38. c0t60002AC0000000000000006700020893d0 <3PARdata-VV-3226-200.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000006700020893
      39. c0t60002AC0000000000000008800020893d0 <3PARdata-VV-3226-4.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000008800020893
      40. c1d0 <3PARdata-VV-3226-300.00GB>
          /virtual-devices@100/channel-devices@200/disk@0
      41. c1d1 <3PARdata-VV-3226-300.00GB>
          /virtual-devices@100/channel-devices@200/disk@1
Specify disk (enter its number):  

比对后可以看出新加的LUN为

37. c0t60002AC0000000000000049000020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000049000020a4c
21. c0t60002AC0000000000000048F00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048f00020a4c

校验一下磁盘的路径数量都是24个,正确。

root@XDB1:~# mpathadm list lu /dev/rdsk/c0t60002AC0000000000000048F00020A4Cd0s2
mpath-support:  libmpscsi_vhci.so
        /dev/rdsk/c0t60002AC0000000000000048F00020A4Cd0s2
                Total Path Count: 24
                Operational Path Count: 24
root@XDB1:~# mpathadm list lu /dev/rdsk/c0t60002AC0000000000000049000020A4Cd0s2
mpath-support:  libmpscsi_vhci.so
        /dev/rdsk/c0t60002AC0000000000000049000020A4Cd0s2
                Total Path Count: 24
                Operational Path Count: 24

对磁盘进行标记,以下操作只在1个节点操作即可,执行format -e对21和37号磁盘进行标记(一定看准备,别搞错了,xshell的话,可以用搜索功能把WWN高亮,避免误操作)

root@XDB1:~# format -e
Searching for disks...done

c0t60002AC0000000000000048F00020A4Cd0: configured with capacity of 2048.00GB
c0t60002AC0000000000000049000020A4Cd0: configured with capacity of 2048.00GB


AVAILABLE DISK SELECTIONS:
       0. c0t60002AC0000000000000003A00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003a00020a4c
       1. c0t60002AC0000000000000003B00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003b00020a4c
       2. c0t60002AC0000000000000003C00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003c00020a4c
       3. c0t60002AC0000000000000003D00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003d00020a4c
       4. c0t60002AC0000000000000003E00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003e00020a4c
       5. c0t60002AC0000000000000003F00020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003f00020a4c
       6. c0t60002AC0000000000000004A00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004a00020a4c
       7. c0t60002AC0000000000000004B00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004b00020a4c
       8. c0t60002AC0000000000000004C00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004c00020a4c
       9. c0t60002AC0000000000000004D00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004d00020a4c
      10. c0t60002AC0000000000000004E00020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004e00020a4c
      11. c0t60002AC0000000000000040A00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040a00020a4c
      12. c0t60002AC0000000000000040B00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040b00020a4c
      13. c0t60002AC0000000000000040C00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040c00020a4c
      14. c0t60002AC0000000000000040D00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040d00020a4c
      15. c0t60002AC0000000000000040E00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000040e00020a4c
      16. c0t60002AC0000000000000048A00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048a00020a4c
      17. c0t60002AC0000000000000048B00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048b00020a4c
      18. c0t60002AC0000000000000048C00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048c00020a4c
      19. c0t60002AC0000000000000048D00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048d00020a4c
      20. c0t60002AC0000000000000048E00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048e00020a4c
      21. c0t60002AC0000000000000048F00020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000048f00020a4c
      22. c0t60002AC0000000000000003200020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003200020a4c
      23. c0t60002AC0000000000000003300020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003300020a4c
      24. c0t60002AC0000000000000003400020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003400020a4c
      25. c0t60002AC0000000000000003500020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003500020a4c
      26. c0t60002AC0000000000000003600020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003600020a4c
      27. c0t60002AC0000000000000003700020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003700020a4c
      28. c0t60002AC0000000000000003800020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003800020a4c
      29. c0t60002AC0000000000000003900020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000003900020a4c
      30. c0t60002AC0000000000000004000020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004000020a4c
      31. c0t60002AC0000000000000004100020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004100020a4c
      32. c0t60002AC0000000000000004200020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004200020a4c
      33. c0t60002AC0000000000000004300020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004300020a4c
      34. c0t60002AC0000000000000004400020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004400020a4c
      35. c0t60002AC0000000000000004500020A4Cd0 <3PARdata-VV-3226-500.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004500020a4c
      36. c0t60002AC0000000000000004900020A4Cd0 <3PARdata-VV-3226-30.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000004900020a4c
      37. c0t60002AC0000000000000049000020A4Cd0 <3PARdata-VV-3226-2.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000049000020a4c
      38. c0t60002AC0000000000000006700020893d0 <3PARdata-VV-3226-200.00GB>
          /scsi_vhci/ssd@g60002ac0000000000000006700020893
      39. c0t60002AC0000000000000008800020893d0 <3PARdata-VV-3226-4.00TB>
          /scsi_vhci/ssd@g60002ac0000000000000008800020893
      40. c1d0 <3PARdata-VV-3226-300.00GB>
          /virtual-devices@100/channel-devices@200/disk@0
      41. c1d1 <3PARdata-VV-3226-300.00GB>
          /virtual-devices@100/channel-devices@200/disk@1
Specify disk (enter its number):  21
selecting c0t60002AC0000000000000048F00020A4Cd0
[disk formatted]
Disk not labeled.  Label it now? y
format> l
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 1
Ready to label disk, continue? y

format> disk 37
selecting c0t60002AC0000000000000049000020A4Cd0
[disk formatted]
Disk not labeled.  Label it now? y
format> l
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 1
Ready to label disk, continue? y
format>   quit

标记完磁盘后,默认的设备权限如下

root@XDB1:/devices/scsi_vhci# ls -l /devices/scsi_vhci/ssd@g60002ac0000000000000049000020a4c:a,raw
crw-r-----   1 root     sys      246, 304 Apr  6 10:47 /devices/scsi_vhci/ssd@g60002ac0000000000000049000020a4c:a,raw
root@XDB1:/devices/scsi_vhci# ls -l  /dev/rdsk/c0t60002AC0000000000000048F00020A4Cd0s0
lrwxrwxrwx   1 root     root          67 Apr  6 10:46 /dev/rdsk/c0t60002AC0000000000000048F00020A4Cd0s0 -> ../../devices/scsi_vhci/ssd@g60002ac0000000000000048f00020a4c:a,raw
root@XDB1:/devices/scsi_vhci# ls -l /devices/scsi_vhci/ssd@g60002ac0000000000000048f00020a4c:a,raw
crw-r-----   1 root     sys      246, 312 Apr  6 10:47 /devices/scsi_vhci/ssd@g60002ac0000000000000048f00020a4c:a,raw
root@XDB1:/devices/scsi_vhci# ls -l /dev/rdsk/c0t60002AC0000000000000049000020A4Cd0s0
lrwxrwxrwx   1 root     root          67 Apr  6 10:46 /dev/rdsk/c0t60002AC0000000000000049000020A4Cd0s0 -> ../../devices/scsi_vhci/ssd@g60002ac0000000000000049000020a4c:a,raw
root@XDB1:/devices/scsi_vhci# ls -l /devices/scsi_vhci/ssd@g60002ac0000000000000049000020a4c:a,raw
crw-r-----   1 root     sys      246, 304 Apr  6 10:47 /devices/scsi_vhci/ssd@g60002ac0000000000000049000020a4c:a,raw

还需要对应的裸设备赋予权限,这个操作需要2个节点都执行

chmod -R 660 /dev/rdsk/c0t60002AC0000000000000048F00020A4Cd0s0
chown -R grid:asmadmin /dev/rdsk/c0t60002AC0000000000000048F00020A4Cd0s0
chmod -R 660 /dev/rdsk/c0t60002AC0000000000000049000020A4Cd0s0
chown -R grid:asmadmin /dev/rdsk/c0t60002AC0000000000000049000020A4Cd0s0

修改权限后,再次校验,这个操作需要2个节点都执行,返回结果都如下所示,表示OK

root@XDB1:~# ls -l /devices/scsi_vhci/ssd@g60002ac0000000000000048f00020a4c:a,raw
crw-rw----   1 grid     asmadmin 246, 312 Apr  6 12:00 /devices/scsi_vhci/ssd@g60002ac0000000000000048f00020a4c:a,raw
root@XDB1:~# ls -l /devices/scsi_vhci/ssd@g60002ac0000000000000049000020a4c:a,raw
crw-rw----   1 grid     asmadmin 246, 304 Apr  6 12:00 /devices/scsi_vhci/ssd@g60002ac0000000000000049000020a4c:a,raw

ASM存储添加磁盘

作为一个爱用图形的,我这里就把图形输出到操作的主机上

主机运行Xmanager - Passive

在Solaris操作系统Grid用户下修改display变量,再执行asmca

export DISPLAY=XXX.XXX.XXX.XXX:0.0
asmca

image.png

添加两块状态为candidate的磁盘,注意这里图形界面默认就勾选了label disks using afd

image.png


与11G稍有不同,这里添加之后就会触发reblance,需要等待reblance完毕这个图形界面才会弹出成功,但是默认的reblance power 是1,于是我去后台修改一下,把reblance power 改为11。加快一下速度。

期中EST_MINUTES为预估完成时间,等待平衡完毕。

SQL>  select * from v$asm_operation;

GROUP_NUMBER OPERA PASS      STAT      POWER     ACTUAL      SOFAR   EST_WORK
------------ ----- --------- ---- ---------- ---------- ---------- ----------
  EST_RATE EST_MINUTES ERROR_CODE                                       CON_ID
---------- ----------- -------------------------------------------- ----------
           1 REBAL COMPACT   WAIT          1          1          0          0
         0           0                                                       0

           1 REBAL REBALANCE RUN           1          1       8740     839569
     19398          42                                                       0

           1 REBAL REBUILD   DONE          1          1          0          0
         0           0                                                       0

SQL> alter diskgroup DATA1 rebalance power 11;

Diskgroup altered.

SQL> select * from v$asm_operation;

GROUP_NUMBER OPERA PASS      STAT      POWER     ACTUAL      SOFAR   EST_WORK
------------ ----- --------- ---- ---------- ---------- ---------- ----------
  EST_RATE EST_MINUTES ERROR_CODE                                       CON_ID
---------- ----------- -------------------------------------------- ----------
           1 REBAL COMPACT   WAIT         11         11          0          0
         0           0                                                       0

           1 REBAL REBALANCE RUN          11         11       1874       1874
     22780           0                                                       0

           1 REBAL REBUILD   DONE         11         11          0          0
         0           0                                                       0

校验存储空间&&扩容表空间

asmcmd lsdg检查一下存储空间,DATA1磁盘组己经增加上4T可用空间

grid@XDB1:~$ 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  4194304  10239760    16416                0           16416              0             N  DATA/
MOUNTED  EXTERN  N         512             512   4096  4194304  23068540  4600668                0         4600668              0             N  DATA1/
MOUNTED  NORMAL  N         512             512   4096  4194304    184248    57440            30708           13366              0             Y  OCRVOTE/

接下来就是扩容表空间了。

这块就没有啥了,直接复制粘贴一堆执行。

alter tablespace xxx add datafile ‘+DATA1’ size 30G;
收工

也欢迎关注我的公众号【徐sir的IT之路】,一起学习!
————————————————————————————
公众号:徐sir的IT之路
CSDN :https://blog.csdn.net/xxddxhyz?type=blog
墨天轮:https://www.modb.pro/u/3605
PGFANS:https://www.pgfans.cn/user/home?userId=5568
————————————————————————————

image.png

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1572253.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

ARM汇编与逆向工程:揭秘程序背后的神秘世界

文章目录 一、ARM汇编语言&#xff1a;底层世界的密码二、逆向工程&#xff1a;软件世界的侦探工作三、ARM汇编与逆向工程的完美结合四、ARM汇编逆向工程的风险与挑战五、ARM汇编逆向工程的未来展望《ARM汇编与逆向工程 蓝狐卷 基础知识》内容简介作者简介译者简介ChaMd5安全团…

前端学习之DOM编程案例:抽奖案例

代码 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>抽奖案例</title><style>*{margin: 0;padding: 0;}</style> </head> <body><div id"container"&g…

【SpringCloud】Nacos 注册中心

目 录 一.认识和安装 Nacos1.Windows安装1. 下载安装包2. 解压3. 端口配置4. 启动5. 访问 2.Linux安装1. 安装JDK2. 上传安装包3. 解压4. 端口配置5. 启动 二.服务注册到 nacos1. 引入依赖2. 配置 nacos 地址3. 重启 三.服务分级存储模型1. 给 user-service 配置集群2. 同集群优…

低代码革新:软件开发的未来潜力与创新路径探索

过去的一年&#xff0c;挑战与机遇并存。人们一边忧虑市场经济下行所带来的新的增长难题、裁员危机&#xff0c;一边惊叹于AIGC、量子技术等领域不断涌现新的创新成果。 时代发生了改变&#xff0c;传统“互联网”的模式已走入尾声&#xff0c;新一轮的科技革命与产业变革正在到…

【刷题】代码随想录算法训练营第三天|203、移除链表元素,707、设计链表,206、反转链表

目录 203. 移除链表元素707. 设计链表206. 反转链表双指针法递归法 203. 移除链表元素 文档讲解&#xff1a;https://programmercarl.com/0203.%E7%A7%BB%E9%99%A4%E9%93%BE%E8%A1%A8%E5%85%83%E7%B4%A0.html 视频讲解&#xff1a;https://www.bilibili.com/video/BV18B4y1s7R9…

活动回顾丨掘金海外,探寻泛娱乐社交APP出海新风口

3月中旬,Flat Ads携手声网、XMP在广州成功举办“泛娱乐社交APP出海新风口——广州站”的主题线下沙龙活动。 多位大咖与泛娱乐社交APP赛道的行业伙伴汇聚一堂。本次活动邀请到Flat Ads 市场VP 王若策、声网娱乐视频产品负责人 陈际陶、XMP资深产品运营专家 屈俊星等多位行业大…

20.安全性测试与评估

每年都会涉及&#xff1b;可能会考大题&#xff1b;多记&#xff01;&#xff01;&#xff01; 典型考点&#xff1a;sql注入、xss&#xff1b; 从2个方面记&#xff1a; 1、测试对象的功能、性能&#xff1b; 2、相关设备的工作原理&#xff1b; 如防火墙&#xff0c;要了解防…

Linux网络管理类命令

ping -c&#xff1a;指定次数 -i n&#xff1a;指定发送频率 n 秒 -t&#xff1a;指定 TTL 值 -s&#xff1a;指定发送包的大小 ifconfig iproute netstat -anltp ss ssh 主机名 SCP wget nmap -A: 全面扫描 -p &#xff1a;端口 80 22-80 80,25,443 -sP &#xf…

机器学习模型——K—Means算法

目录 无监督学习概念&#xff1a; 有监督学习与无监督学习&#xff1a; 无监督学习 - 聚类分析 &#xff1a; 聚类算法应用场景&#xff1a; 常用聚类算法介绍&#xff1a; 对不同的聚类算法应用选择原则&#xff1a; 基于原型聚类&#xff1a; K-Means聚类算法概念及步…

故障分析,大有可为!考虑光热电站及N-k故障的新能源电力系统优化调度程序代码!

前言 近年来&#xff0c;为了践行国家“节约、清洁、安全”的能源发展方针&#xff0c;推动高比例可再生能源接入电网&#xff0c;以风电为代表的可再生能源迅猛发展。但随着风电渗透率的增加&#xff0c;弃风现象严重&#xff0c;风电消纳问题亟需解决。同时&#xff0c;风电…

基于SpringBoot+Vue的OA管理系统

一、项目背景介绍&#xff1a; 办公自动化&#xff08;Office Automation&#xff0c;简称OA&#xff09;&#xff0c;是将计算机、通信等现代化技术运用到传统办公方式&#xff0c;进而形成的一种新型办公方式。办公自动化利用现代化设备和信息化技术&#xff0c;代替办公人员…

面试题——JVM老年代空间担保机制(我的想法)

这里借用一下人家的图&#xff0c;来说一下我的想法&#xff0c;嘻嘻。。。。 原文链接&#xff1a;一道面试题&#xff1a;JVM老年代空间担保机制-CSDN博客? 嗯&#xff0c;我觉得老年代担保机制的主要作用就是避免频繁触发FULL GC&#xff0c;这其实也是因为年轻代Minor GC…

DV证书与OV证书的区别

在网络安全日益受到重视的今天&#xff0c;数字证书扮演着至关重要的角色。其中&#xff0c;DV证书&#xff08;域名验证证书&#xff09;和OV证书&#xff08;组织验证证书&#xff09;是两种常见的SSL/TLS证书类型&#xff0c;它们在验证流程和适用场景上存在显著区别。 首先…

666666666666666666

欢迎关注博主 Mindtechnist 或加入【Linux C/C/Python社区】一起学习和分享Linux、C、C、Python、Matlab&#xff0c;机器人运动控制、多机器人协作&#xff0c;智能优化算法&#xff0c;滤波估计、多传感器信息融合&#xff0c;机器学习&#xff0c;人工智能等相关领域的知识和…

LeetCode题练习与总结:插入区间--57

一、题目描述 示例 1&#xff1a; 输入&#xff1a;intervals [[1,3],[6,9]], newInterval [2,5] 输出&#xff1a;[[1,5],[6,9]]示例 2&#xff1a; 输入&#xff1a;intervals [[1,2],[3,5],[6,7],[8,10],[12,16]], newInterval [4,8] 输出&#xff1a;[[1,2],[3,10],[…

数据结构二叉树链式存储

二叉树 1. 二叉树的遍历1.1 前序遍历1.2 中序遍历1.3 后序遍历1.4 层序遍历2. 二叉树的高度3. 某一层结点的个数4. 计算二叉树的结点5. 叶子结点的个数6. 销毁二叉树 二叉树的顺序存储通过堆已经介绍过了&#xff0c;现在介绍二叉树的链式存储。关于二叉树&#xff0c;有 如下…

C#复习——变长参数和可选参数

变长参数——params 参数默认值 总结 配合泛型类实现迭代器的语法糖使用&#xff1a;

7.java openCV4.x 入门-Mat之转换、重塑与计算

专栏简介 &#x1f492;个人主页 &#x1f4f0;专栏目录 点击上方查看更多内容 &#x1f4d6;心灵鸡汤&#x1f4d6;我们唯一拥有的就是今天&#xff0c;唯一能把握的也是今天建议把本文当作笔记来看&#xff0c;据说专栏目录里面有相应视频&#x1f92b; &#x1f9ed;文…

电商API接口|Python爬虫 | 如何用Python爬虫一天内收集数百万条电商数据?

你是否遇到过需要收集大量数据的问题&#xff1f;比如需要分析市场趋势&#xff0c;或者是想要了解某个领域的发展动态。手动收集这些数据既费时又费力&#xff0c;而且很难保证数据的准确性和完整性。那么有没有一种方法可以快速高效地收集大量数据呢&#xff1f; 技术汇总 …

xss.pwnfunction-Ma Spaghet!

根据代码得知 这个是根据get传参的并且是由someboby来接收参数的 所以 <script>alert(1137)</script> js并没有执行因为 HTML5中指定不执行由innerHTML插入的<script>标签 所以 ?somebody<img%20src1%20onerror"alert(1337)"> 这样就成…