HPUX系统Oracle RAC如何添加ASM磁盘
前言 HPUX简介
HP-UX (Hewlett-Packard Unix) 是惠普公司开发的类 Unix 操作系统。自 1980 年代问世以来,HP-UX 在技术和功能上不断发展,适应了多种硬件平台和企业计算需求。以下是 HP-UX 的发展历史概述:
1980 年代:起源与早期发展
-
1983 年:HP-UX 1.0 发布,这是基于 UNIX System III 的操作系统,最初用于 HP 9000 系列计算机。
-
1984 年:HP-UX 2.0 发布,基于 UNIX System V,这一版本增强了内存管理和文件系统性能。
1990 年代:扩展与创新
-
1991 年:HP-UX 8.0 发布,引入了对多处理器的支持,并增强了图形用户界面功能。
-
1993 年:HP-UX 9.0 发布,进一步改进了多任务处理和文件系统性能。
-
1995 年:HP-UX 10.0 发布,这是一个重要的版本,带来了许多新特性,包括 Logical Volume Manager (LVM)、增强的用户界面、改进的安全功能和对对称多处理 (SMP) 的支持。
-
1997 年:HP-UX 10.20 发布,提供了对 64 位计算和更大内存寻址的支持。
2000 年代:64 位架构与企业级功能
-
2000 年:HP-UX 11i 发布,提供了更高的可靠性、可用性和服务性 (RAS) 特性,并引入了用于关键任务企业计算的改进,如动态分区和虚拟分区。
-
2003 年:HP-UX 11i v2 (11.23) 发布,支持 Integrity 服务器,并提供更强的安全性和可管理性特性。
-
2007 年:HP-UX 11i v3 (11.31) 发布,进一步改进了虚拟化、安全性、性能和管理功能。
2010 年代:持续改进与现代化
-
2010 年:HP-UX 11i v3 2010 更新版发布,增强了云计算和大数据支持功能。
-
2013 年:HP-UX 11i v3 2013 更新版发布,提供了对最新硬件的支持,并进一步改进了虚拟化和安全性。
-
2017 年:HPE 宣布继续对 HP-UX 提供长期支持,并承诺为现有客户提供增强的功能和安全更新。
2020 年代:向长期支持转型
-
2020 年及以后:尽管不再推出重大版本更新,HP-UX 仍然继续为企业客户提供关键任务支持。HPE 继续提供补丁、安全更新和技术支持,确保现有 HP-UX 环境的稳定运行
随着时代的发展X86机器的各项性能也不再逊色于小型机了,HP小型机也越来越少了,可能在一些金融行业还有HP小机的影子,但是确实少见很多了。这篇文章是介绍HPUX小机添加ASM磁盘,从文章的长度上就知道有多复杂,这里发一下仅供大家参考,一窥早期DBA的战战兢兢,如履薄冰!
Environment:
OS:HPUX11.31
DATABASE: oracle 10.0.2.4 3*nodes RAC
Storage:HP-6100 FC disk
Cluster:HPCM
1. cut 2*300G RAID5 FC EVA disk to all nodes of sfc12rc rac
2. os list and find new disk on all nodes:
ioscan -N -fCdisk
ioscan -N -m lun
ioscan -fnCdisk
smh to check disk properties: SMH->Disks and File Systems->Disks->Details
VD name UUID LUN sfc12rc1 sfc12rc2 sfc12rc3
----------------------------------------------------------------------------------------------------------------
VD_12_ORA_DATA_13 6001-4380-02a5-7554-0001-0000-0096-0000 18 disk98 disk97 disk99
VD_12_ORA_DATA_14 6001-4380-02a5-7554-0001-0000-0099-0000 19 disk103 disk103 disk104
3. stop oracle cluster and OS cluster
sqlplus to close database from sfc12rc1 to sfc12rc3
--sqlplus / as sysdba shutdown immediate on each node.
stop all oracle cluster service:
crs_stop -all
crsctl stop crs
stop OS cluster:
cmviewcl
cmhaltcl -f
cmviewcl
session log
sfc12rc1:/# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
sfc12rc1:/# crsctl stop crs --stop cluster
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
sfc12rc1:/#
sfc12rc1:/#
sfc12rc1:/# cmviewcl -- view information about a high availability cluster
CLUSTER STATUS
clu_RACSFC12 up
NODE STATUS STATE
sfc12rc1 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP1 up running enabled sfc12rc1
pkgSFC12DB1 up running disabled sfc12rc1
NODE STATUS STATE
sfc12rc2 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP2 up running enabled sfc12rc2
pkgSFC12DB2 up running disabled sfc12rc2
NODE STATUS STATE
sfc12rc3 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP3 up running enabled sfc12rc3
pkgSFC12DB3 up running disabled sfc12rc3
sfc12rc1:/# cmhaltcl --check a a high availability cluster healthy
Package pkgSFC12IP1 is still running on sfc12rc1.
Package pkgSFC12IP2 is still running on sfc12rc2.
Package pkgSFC12IP3 is still running on sfc12rc3.
Package pkgSFC12DB1 is still running on sfc12rc1.
Package pkgSFC12DB2 is still running on sfc12rc2.
Package pkgSFC12DB3 is still running on sfc12rc3.
Use the -f option to forcefully halt the cluster/node including halting packages.
sfc12rc1:/# cmhaltcl -f
Disabling all packages from starting on nodes to be halted.
Warning: Do not modify or enable packages until the halt operation is completed.
Disabling automatic failover for failover packages to be halted.
Halting package pkgSFC12IP1
Successfully halted package pkgSFC12IP1
Halting package pkgSFC12DB1
Successfully halted package pkgSFC12DB1
Halting package pkgSFC12IP2
Successfully halted package pkgSFC12IP2
Halting package pkgSFC12DB2
Successfully halted package pkgSFC12DB2
Halting package pkgSFC12IP3
Successfully halted package pkgSFC12IP3
Halting package pkgSFC12DB3
Successfully halted package pkgSFC12DB3
This operation may take some time.
Waiting for nodes to halt ... done
Successfully halted all nodes specified.
Halt operation complete.
sfc12rc1:/# cmviewcl --check os cluster is down
CLUSTER STATUS
clu_RACSFC12 down
NODE STATUS STATE
sfc12rc1 down unknown
sfc12rc2 down unknown
sfc12rc3 down unknown
UNOWNED_PACKAGES
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP1 down halted enabled unowned
pkgSFC12IP2 down halted enabled unowned
pkgSFC12IP3 down halted enabled unowned
pkgSFC12DB1 down halted disabled unowned
pkgSFC12DB2 down halted disabled unowned
pkgSFC12DB3 down halted disabled unowned
sfc12rc1:/#
----------------------------------------------------------------------
4. create VG&LV in sfc12rc1, then export VG mapfile:
Sfc12rc1:
pvcreate /dev/rdisk/disk98
pvcreate /dev/rdisk/disk103
mkdir /dev/vg_ora_data04
mknod /dev/vg_ora_data04/group c 64 0x070000
vgcreate -l 10 -s 32 vg_ora_data06 /dev/disk/disk114
vgextend vg_ora_data06 /dev/disk/disk119
vgdisplay vg_ora_data04
vgdisplay -v vg_ora_data04
lvcreate -l 9597 -n lvdata05 vg_ora_data04
lvcreate -l 9597 -n lvdata06 vg_ora_data04
mkdir -p /tmp/20111231 --from sfc12rc1 to sfc12rc3
vgexport -p -v -s -m /tmp/20111231/vg_ora_data04.map vg_ora_data04
rcp /tmp/20111231/vg_ora_data04.map sfc12rc2:/tmp/20111231
rcp /tmp/20111231/vg_ora_data04.map sfc12rc3:/tmp/20111231
sfc12rc1:/# pvcreate /dev/rdisk/disk98 --create physical volume
Physical volume "/dev/rdisk/disk98" has been successfully created.
sfc12rc1:/# pvcreate /dev/rdisk/disk103 --create physical volume
Physical volume "/dev/rdisk/disk103" has been successfully created.
sfc12rc1:/# ls -lrt /dev/vg_ora_data04
/dev/vg_ora_data04 not found
sfc12rc1:/# mkdir /dev/vg_ora_data04
sfc12rc1:/# mknod /dev/vg_ora_data06/group c 64 0x090000
--最后编号与其他VG不同即可
sfc12rc1:/# ls -lrt /dev/vg_ora_data04
total 0
crw-r--r-- 1 root sys 64 0x070000 Dec 31 08:53 group
sfc12rc1:/# vgdisplay vg_ora_data04 --display information about LVM volume groups
--- Volume groups ---
VG Name /dev/vg_ora_data04
VG Write Access read/write
VG Status available
Max LV 10
Cur LV 0
Open LV 0
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 9599
VGDA 4
PE Size (Mbytes) 32
Total PE 19198
Alloc PE 0
Free PE 19198
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 4914688m
VG Max Extents 153584
sfc12rc1:/# vgdisplay -v vg_ora_data04
--- Volume groups ---
VG Name /dev/vg_ora_data04
VG Write Access read/write
VG Status available
Max LV 10
Cur LV 0
Open LV 0
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 9599
VGDA 4
PE Size (Mbytes) 32
Total PE 19198
Alloc PE 0
Free PE 19198
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 4914688m
VG Max Extents 153584
--- Physical volumes ---
PV Name /dev/disk/disk98
PV Status available
Total PE 9599
Free PE 9599
Autoswitch On
Proactive Polling On
PV Name /dev/disk/disk103
PV Status available
Total PE 9599
Free PE 9599
Autoswitch On
Proactive Polling On
sfc12rc1:/#
sfc12rc1:/# lvcreate -l 9597 -n lvdata08 vg_ora_data06
--create logical volume / Max PE per PV 9599 但是要预留2个pe给系统使用
Logical volume "/dev/vg_ora_data04/lvdata05" has been successfully created with
character device "/dev/vg_ora_data04/rlvdata05".
Logical volume "/dev/vg_ora_data04/lvdata05" has been successfully extended.
Volume Group configuration for /dev/vg_ora_data04 has been saved in /etc/lvmconf/vg_ora_data04.conf
sfc12rc1:/# lvcreate -l 9597 -n lvdata09 vg_ora_data06
Logical volume "/dev/vg_ora_data04/lvdata06" has been successfully created with
character device "/dev/vg_ora_data04/rlvdata06".
Logical volume "/dev/vg_ora_data04/lvdata06" has been successfully extended.
Volume Group configuration for /dev/vg_ora_data04 has been saved in /etc/lvmconf/vg_ora_data04.conf
sfc12rc1:/#
sfc12rc1:/# lvdisplay /dev/vg_ora_data04/lvdata05 --show LV information
--- Logical volumes ---
LV Name /dev/vg_ora_data04/lvdata05
VG Name /dev/vg_ora_data04
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 307104
Current LE 9597
Allocated PE 9597
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
sfc12rc1:/#
sfc12rc1:/# mkdir -p /tmp/20111231
sfc12rc1:/# vgexport -p -v -s -m /tmp/20181001/vg_ora_data06.map vg_ora_data06
--将vg配置信息导入到文件
Beginning the export process on Volume Group "vg_ora_data04".
vgexport: Volume group "vg_ora_data04" is still active.
/dev/disk/disk98
/dev/disk/disk103
vgexport: Preview of vgexport on volume group "vg_ora_data04" succeeded.
sfc12rc1:/#
sfc12rc1:/# rcp /tmp/20181001/vg_ora_data06.map sfc12rc2:/tmp/20181001
sfc12rc1:/# rcp /tmp/20181001/vg_ora_data06.map sfc12rc3:/tmp/20181001
--将VG配置文件copy 到另外两个节点
sfc12rc1:/#
5. import VG mapfile from sfc12rc1 to sfc12rc2:
sfc12rc2:
mkdir /dev/vg_ora_data04
mknod /dev/vg_ora_data04/group c 64 0x070000
vgimport -v -m /tmp/20181001/vg_ora_data06.map vg_ora_data06 /dev/disk/disk118 \
/dev/disk/disk119
sfc12rc2:/# mkdir /dev/vg_ora_data06
sfc12rc2:/# mknod /dev/vg_ora_data06/group c 64 0x090000
sfc12rc2:/# ls -lrt /dev/vg_ora_data06
total 0
crw-r--r-- 1 root sys 64 0x070000 Dec 31 09:03 group
sfc12rc2:/# vgimport -v -m /tmp/20111231/vg_ora_data04.map vg_ora_data04 /dev/disk/disk97 \
> /dev/disk/disk103
--将vg配置信息导入到该节点
Beginning the import process on Volume Group "vg_ora_data04".
vgimport: Warning: Volume Group belongs to different CPU ID.
Can not determine if Volume Group is in use on another system. Continuing.
Logical volume "/dev/vg_ora_data04/lvdata05" has been successfully created
with lv number 1.
Logical volume "/dev/vg_ora_data04/lvdata06" has been successfully created
with lv number 2.
vgimport: Volume group "/dev/vg_ora_data04" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
sfc12rc2:/# vgdisplay vg_ora_data04
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg_ora_data04".
sfc12rc2:/# vgdisplay -v vg_ora_data04
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg_ora_data04".
sfc12rc2:/# lvdisplay /dev/vg_ora_data04/lvdata05
lvdisplay: Couldn't query logical volume "/dev/vg_ora_data04/lvdata05":
Volume group not activated.
lvdisplay: Cannot display logical volume "/dev/vg_ora_data04/lvdata05".
sfc12rc2:/#
----------------------------------------------------------------------
6. import VG mapfile from sfc12rc1 to sfc12rc3:
sfc12rc3:
mkdir /dev/vg_ora_data06
mknod /dev/vg_ora_data06/group c 64 0x090000
vgimport -v -m /tmp/20181001/vg_ora_data06.map vg_ora_data06 /dev/disk/disk118 \
/dev/disk/disk119
sfc12rc3:/#
sfc12rc3:/# mkdir /dev/vg_ora_data04
sfc12rc3:/# mknod /dev/vg_ora_data04/group c 64 0x070000
sfc12rc3:/# vgimport -v -m /tmp/20111231/vg_ora_data04.map vg_ora_data04 /dev/disk/disk99 \
> /dev/disk/disk104
--将vg配置信息导入到该节点
Beginning the import process on Volume Group "vg_ora_data04".
vgimport: Warning: Volume Group belongs to different CPU ID.
Can not determine if Volume Group is in use on another system. Continuing.
Logical volume "/dev/vg_ora_data04/lvdata05" has been successfully created
with lv number 1.
Logical volume "/dev/vg_ora_data04/lvdata06" has been successfully created
with lv number 2.
vgimport: Volume group "/dev/vg_ora_data04" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
sfc12rc3:/#
----------------------------------------------------------------------
7. modify cluster configration file and apply in sfc12rc1:
sfc12rc1:
cd /etc/cmcluster/
备份并且修改 /etc/cmcluster/cluster_sfc12.ascii 文件
在原有的vg下面,加入新的卷組信息
OPS_VOLUME_GROUP /dev/vg_ora_data04
cmcheckconf -v -C /etc/cmcluster/cluster_sfc12.ascii
cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii
rcp -p cluster_sfc12.ascii sfc12rc2:/etc/cmcluster/
rcp -p cluster_sfc12.ascii sfc12rc3:/etc/cmcluster/
cd pkgSFC12DB1
修改pkgSFC12DB1配置
备份并且在pkgSFC12DB1.cntl中加入
VG[5]=vg_ora_data04
cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii -P \
/etc/cmcluster/pkgSFC12DB1/pkgSFC12DB1.conf
sfc12rc1:/# cd /etc/cmcluster/
sfc12rc1:/etc/cmcluster# ls -lrt
total 208
-r-------- 1 bin bin 118 Mar 16 2007 cmknowncmds
drwxr-xr-x 2 bin bin 8192 Oct 22 2008 cfs
dr-xr-xr-x 2 bin bin 96 Oct 22 2008 examples
dr-xr-xr-x 4 root root 96 Oct 22 2008 modules
dr-xr-xr-x 5 bin bin 96 Jan 7 2009 scripts
dr-xr-xr-x 2 bin bin 8192 Jan 7 2009 lib
-rw-r--r-- 1 root sys 11 Jan 15 2009 mapfile
---------- 1 root root 0 Jan 15 2009 config.lck
drwxr-xr-x 2 root sys 96 Jan 15 2009 pkgSFC12IP1
drwxr-xr-x 2 root sys 96 Feb 9 2009 pkgSFC12IP3
drwxr-xr-x 2 root sys 96 Feb 20 2009 pkgSFC12IP2
-rw-r--r-- 1 root sys 10458 Jun 29 2009 cluster_sfc12.ascii20100921
drwx------ 2 root sys 8192 Sep 21 2010 pkgSFC12DB1
-rw-r--r-- 1 root sys 10495 Oct 2 2010 cluster_sfc12.ascii
-rw------- 1 root root 30916 Dec 31 08:45 cmclconfig
-rw------- 1 root root 0 Dec 31 08:45 cmclconfig.tmp
sfc12rc1:/etc/cmcluster# cp cluster_sfc12.ascii cluster_sfc12.ascii20111231
-- –修改系统文件前 先备份
sfc12rc1:/etc/cmcluster# vi /etc/cmcluster/cluster_sfc12.ascii
--在文件最后加入新的卷组信息OPS_VOLUME_GROUP /dev/vg_ora_data04
sfc12rc1:/etc/cmcluster#
sfc12rc1:/etc/cmcluster# cmcheckconf -v -C /etc/cmcluster/cluster_sfc12.ascii
---检查修改后的文件是否有错误
Begin cluster verification...
Checking cluster file: /etc/cmcluster/cluster_sfc12.ascii
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 20 devices on node sfc12rc1
Found 20 devices on node sfc12rc2
Found 20 devices on node sfc12rc3
Analysis of 60 devices should take approximately 5 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 8 volume groups on node sfc12rc1
Found 8 volume groups on node sfc12rc2
Found 8 volume groups on node sfc12rc3
Analysis of 24 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
Cluster clu_RACSFC12 is an existing cluster
Cluster clu_RACSFC12 is an existing cluster
Checking for inconsistencies
Maximum configured packages parameter is 150.
Configuring 6 package(s).
144 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
Modifying configuration on node sfc12rc1
Modifying configuration on node sfc12rc2
Modifying configuration on node sfc12rc3
Modifying the cluster configuration for cluster clu_RACSFC12
Modifying node sfc12rc1 in cluster clu_RACSFC12
Modifying node sfc12rc2 in cluster clu_RACSFC12
Modifying node sfc12rc3 in cluster clu_RACSFC12
cmcheckconf: Verification completed with no errors found.
Use the cmapplyconf command to apply the configuration.
sfc12rc1:/etc/cmcluster#
sfc12rc1:/etc/cmcluster# cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii
--使修改生效
Begin cluster verification...
Checking cluster file: /etc/cmcluster/cluster_sfc12.ascii
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 20 devices on node sfc12rc1
Found 20 devices on node sfc12rc2
Found 20 devices on node sfc12rc3
Analysis of 60 devices should take approximately 5 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 8 volume groups on node sfc12rc1
Found 8 volume groups on node sfc12rc2
Found 8 volume groups on node sfc12rc3
Analysis of 24 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
Cluster clu_RACSFC12 is an existing cluster
Cluster clu_RACSFC12 is an existing cluster
Checking for inconsistencies
Maximum configured packages parameter is 150.
Configuring 6 package(s).
144 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
Modifying configuration on node sfc12rc1
Modifying configuration on node sfc12rc2
Modifying configuration on node sfc12rc3
Modifying the cluster configuration for cluster clu_RACSFC12
Modifying node sfc12rc1 in cluster clu_RACSFC12
Modifying node sfc12rc2 in cluster clu_RACSFC12
Modifying node sfc12rc3 in cluster clu_RACSFC12
Modify the cluster configuration ([y]/n)? y
Marking/unmarking volume groups for use in the cluster
Completed the cluster creation
sfc12rc1:/etc/cmcluster#
sfc12rc1:/etc/cmcluster# rcp -p cluster_sfc12.ascii sfc12rc2:/etc/cmcluster/
sfc12rc1:/etc/cmcluster# rcp -p cluster_sfc12.ascii sfc12rc3:/etc/cmcluster/
--将修改OK的cluster_sfc12.ascii文件copy到另外两个节点
sfc12rc1:/etc/cmcluster#
sfc12rc1:/etc/cmcluster# cd pkgSFC12DB1
sfc12rc1:/etc/cmcluster/pkgSFC12DB1# ls -lrt
total 464
-rwx------ 1 root sys 26764 Jan 15 2009 pkgSFC12DB1.conf
-rwx------ 1 root sys 64281 Jun 29 2009 pkgSFC12DB1.cntl20100921
-rwx------ 1 root sys 64301 Oct 2 2010 pkgSFC12DB1.cntl
-rw-r--r-- 1 root root 67729 Dec 31 08:47 pkgSFC12DB1.cntl.log
sfc12rc1:/etc/cmcluster/pkgSFC12DB1# cp pkgSFC12DB1.cntl pkgSFC12DB1.cntl20111231
sfc12rc1:/etc/cmcluster/pkgSFC12DB1# vi pkgSFC12DB1.cntl
#VG[0]=""
VG[0]=vg_ora_vote
VG[1]=vg_ora_data01
VG[2]=vg_ora_arch01
VG[3]=vg_ora_data02
VG[4]=vg_ora_data03
VG[5]=vg_ora_data04 --新加
sfc12rc1:/etc/cmcluster/pkgSFC12DB1#
sfc12rc1:/etc/cmcluster/pkgSFC12DB1# cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii -P \
> /etc/cmcluster/pkgSFC12DB1/pkgSFC12DB1.conf
Begin cluster verification...
Checking cluster file: /etc/cmcluster/cluster_sfc12.ascii
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 20 devices on node sfc12rc1
Found 20 devices on node sfc12rc2
Found 20 devices on node sfc12rc3
Analysis of 60 devices should take approximately 5 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 8 volume groups on node sfc12rc1
Found 8 volume groups on node sfc12rc2
Found 8 volume groups on node sfc12rc3
Analysis of 24 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
Cluster clu_RACSFC12 is an existing cluster
Parsing package file: /etc/cmcluster/pkgSFC12DB1/pkgSFC12DB1.conf.
/etc/cmcluster/pkgSFC12DB1/pkgSFC12DB1.conf: A legacy package is being used.
Package pkgSFC12DB1 already exists. It will be modified.
Cluster clu_RACSFC12 is an existing cluster
Checking for inconsistencies
Maximum configured packages parameter is 150.
Configuring 6 package(s).
144 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
Modifying configuration on node sfc12rc1
Modifying configuration on node sfc12rc2
Modifying configuration on node sfc12rc3
Modifying the cluster configuration for cluster clu_RACSFC12
Modifying node sfc12rc1 in cluster clu_RACSFC12
Modifying node sfc12rc2 in cluster clu_RACSFC12
Modifying node sfc12rc3 in cluster clu_RACSFC12
Modifying the package configuration for package pkgSFC12DB1.
Modify the cluster configuration ([y]/n)? y
Marking/unmarking volume groups for use in the cluster
Completed the cluster creation
sfc12rc1:/etc/cmcluster/pkgSFC12DB1#
---------------------------------------------------------------------
8. modify cluster configration file and apply in sfc12rc2:
sfc12rc2:
cd /etc/cmcluster/pkgSFC12DB2
修改pkgSFC12DB2配置
备份并在pkgSFC12DB2.cntl中加入
VG[5]=vg_ora_data04
cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii -P \
/etc/cmcluster/pkgSFC12DB2/pkgSFC12DB2.conf
sfc12rc2:/# cd /etc/cmcluster/pkgSFC12DB2
sfc12rc2:/etc/cmcluster/pkgSFC12DB2# ls -lrt
total 448
-rwx------ 1 root sys 26764 Jan 15 2009 pkgSFC12DB2.conf
-rwx------ 1 root sys 64281 Jun 29 2009 pkgSFC12DB2.cntl20100921
-rwx------ 1 root sys 64301 Oct 2 2010 pkgSFC12DB2.cntl
-rw-r--r-- 1 root root 65051 Dec 31 08:47 pkgSFC12DB2.cntl.log
sfc12rc2:/etc/cmcluster/pkgSFC12DB2# vi pkgSFC12DB2.cntl
#VG[0]=""
VG[0]=vg_ora_vote
VG[1]=vg_ora_data01
VG[2]=vg_ora_arch01
VG[3]=vg_ora_data02
VG[4]=vg_ora_data03
VG[5]=vg_ora_data04 --新加
sfc12rc2:/etc/cmcluster/pkgSFC12DB2#
sfc12rc2:/etc/cmcluster/pkgSFC12DB2# cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii -P \
> /etc/cmcluster/pkgSFC12DB2/pkgSFC12DB2.conf
Begin cluster verification...
Checking cluster file: /etc/cmcluster/cluster_sfc12.ascii
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 20 devices on node sfc12rc1
Found 20 devices on node sfc12rc2
Found 20 devices on node sfc12rc3
Analysis of 60 devices should take approximately 5 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 8 volume groups on node sfc12rc1
Found 8 volume groups on node sfc12rc2
Found 8 volume groups on node sfc12rc3
Analysis of 24 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
Cluster clu_RACSFC12 is an existing cluster
Parsing package file: /etc/cmcluster/pkgSFC12DB2/pkgSFC12DB2.conf.
/etc/cmcluster/pkgSFC12DB2/pkgSFC12DB2.conf: A legacy package is being used.
Package pkgSFC12DB2 already exists. It will be modified.
Cluster clu_RACSFC12 is an existing cluster
Checking for inconsistencies
Maximum configured packages parameter is 150.
Configuring 6 package(s).
144 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
Modifying configuration on node sfc12rc1
Modifying configuration on node sfc12rc2
Modifying configuration on node sfc12rc3
Modifying the cluster configuration for cluster clu_RACSFC12
Modifying node sfc12rc1 in cluster clu_RACSFC12
Modifying node sfc12rc2 in cluster clu_RACSFC12
Modifying node sfc12rc3 in cluster clu_RACSFC12
Modifying the package configuration for package pkgSFC12DB2.
Modify the cluster configuration ([y]/n)? y
Marking/unmarking volume groups for use in the cluster
Completed the cluster creation
sfc12rc2:/etc/cmcluster/pkgSFC12DB2#
---------------------------------------------------------------------
9. modify cluster configration file and apply in sfc12rc3:
sfc12rc3:
cd /etc/cmcluster/pkgSFC12DB3
修改pkgSFC12DB3配置
备份并在pkgSFC12DB3.cntl中加入
VG[5]=vg_ora_data04
cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii -P \
/etc/cmcluster/pkgSFC12DB3/pkgSFC12DB3.conf
sfc12rc3:/# cd /etc/cmcluster/pkgSFC12DB3
sfc12rc3:/etc/cmcluster/pkgSFC12DB3# ls -lrt
total 448
-rwx------ 1 root sys 26764 Jan 15 2009 pkgSFC12DB3.conf
-rwx------ 1 root sys 64281 Jun 29 2009 pkgSFC12DB3.cntl20100921
-rwx------ 1 root sys 64301 Oct 2 2010 pkgSFC12DB3.cntl
-rw-r--r-- 1 root root 62722 Dec 31 08:47 pkgSFC12DB3.cntl.log
sfc12rc3:/etc/cmcluster/pkgSFC12DB3# cp pkgSFC12DB3.cntl pkgSFC12DB3.cntl20111231
sfc12rc3:/etc/cmcluster/pkgSFC12DB3# vi pkgSFC12DB3.cntl
#VG[0]=""
VG[0]=vg_ora_vote
VG[1]=vg_ora_data01
VG[2]=vg_ora_arch01
VG[3]=vg_ora_data02
VG[4]=vg_ora_data03
VG[5]=vg_ora_data04 --新加
sfc12rc3:/etc/cmcluster/pkgSFC12DB3# cmapplyconf -v -C /etc/cmcluster/cluster_sfc12.ascii -P \
> /etc/cmcluster/pkgSFC12DB3/pkgSFC12DB3.conf
Begin cluster verification...
Checking cluster file: /etc/cmcluster/cluster_sfc12.ascii
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 20 devices on node sfc12rc1
Found 20 devices on node sfc12rc2
Found 20 devices on node sfc12rc3
Analysis of 60 devices should take approximately 5 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 8 volume groups on node sfc12rc1
Found 8 volume groups on node sfc12rc2
Found 8 volume groups on node sfc12rc3
Analysis of 24 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
Cluster clu_RACSFC12 is an existing cluster
Parsing package file: /etc/cmcluster/pkgSFC12DB3/pkgSFC12DB3.conf.
/etc/cmcluster/pkgSFC12DB3/pkgSFC12DB3.conf: A legacy package is being used.
Package pkgSFC12DB3 already exists. It will be modified.
Cluster clu_RACSFC12 is an existing cluster
Checking for inconsistencies
Maximum configured packages parameter is 150.
Configuring 6 package(s).
144 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
Modifying configuration on node sfc12rc1
Modifying configuration on node sfc12rc2
Modifying configuration on node sfc12rc3
Modifying the cluster configuration for cluster clu_RACSFC12
Modifying node sfc12rc1 in cluster clu_RACSFC12
Modifying node sfc12rc2 in cluster clu_RACSFC12
Modifying node sfc12rc3 in cluster clu_RACSFC12
Modifying the package configuration for package pkgSFC12DB3.
Modify the cluster configuration ([y]/n)? y
Marking/unmarking volume groups for use in the cluster
Completed the cluster creation
sfc12rc3:/etc/cmcluster/pkgSFC12DB3#
--------------------------------------------------------------------
10. start OS cluster in sfc12rc1:
vgchange -a n vg_ora_data04
cmruncl
cmviewcl
cmrunpkg -n sfc12rc1 pkgSFC12DB1
cmrunpkg -n sfc12rc2 pkgSFC12DB2
cmrunpkg -n sfc12rc3 pkgSFC12DB3
cmviewcl
sfc12rc1:/#
sfc12rc1:/# vgchange -a n vg_ora_data04
Volume group "vg_ora_data04" has been successfully changed.
sfc12rc1:/# vgdisplay /dev/vg_ora_data04
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg_ora_data04".
sfc12rc1:/# cmruncl --启动cluster
cmruncl: Validating network configuration...
cmruncl: Network validation complete
cmruncl: Validating cluster lock disk .... Done
Waiting for cluster to form ....... done
Cluster successfully formed.
Check the syslog files on all nodes in the cluster to verify that no warnings occurred during startup.
sfc12rc1:/# cmviewcl --查看状态
CLUSTER STATUS
clu_RACSFC12 up
NODE STATUS STATE
sfc12rc1 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP1 up running enabled sfc12rc1
NODE STATUS STATE
sfc12rc2 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP2 up running enabled sfc12rc2
NODE STATUS STATE
sfc12rc3 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP3 up running enabled sfc12rc3
UNOWNED_PACKAGES
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12DB1 down halted disabled unowned
pkgSFC12DB2 down halted disabled unowned
pkgSFC12DB3 down halted disabled unowned
sfc12rc1:/# cmrunpkg -n sfc12rc1 pkgSFC12DB1 -PKG不会自动启动 需要手动启动
Running package pkgSFC12DB1 on node sfc12rc1
Successfully started package pkgSFC12DB1 on node sfc12rc1
cmrunpkg: All specified packages are running
sfc12rc1:/# cmrunpkg -n sfc12rc2 pkgSFC12DB2
Running package pkgSFC12DB2 on node sfc12rc2
Successfully started package pkgSFC12DB2 on node sfc12rc2
cmrunpkg: All specified packages are running
sfc12rc1:/# cmrunpkg -n sfc12rc3 pkgSFC12DB3
Running package pkgSFC12DB3 on node sfc12rc3
Successfully started package pkgSFC12DB3 on node sfc12rc3
cmrunpkg: All specified packages are running
sfc12rc1:/# cmviewcl --show cluster status
CLUSTER STATUS
clu_RACSFC12 up
NODE STATUS STATE
sfc12rc1 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP1 up running enabled sfc12rc1
pkgSFC12DB1 up running disabled sfc12rc1
NODE STATUS STATE
sfc12rc2 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP2 up running enabled sfc12rc2
pkgSFC12DB2 up running disabled sfc12rc2
NODE STATUS STATE
sfc12rc3 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkgSFC12IP3 up running enabled sfc12rc3
pkgSFC12DB3 up running disabled sfc12rc3
sfc12rc1:/#
-------------------------------------------------------------------------------
11. chdange rlv properties and start oracle cluster from sfc12rc1 to sfc12rc3:
chown oracle:dba /dev/vg_ora_data06/rlvdata08
chmod 660 /dev/vg_ora_data06/rlvdata08
chown oracle:dba /dev/vg_ora_data06/rlvdata09
chmod 660 /dev/vg_ora_data06/rlvdata09
ls -lrt /dev/vg_ora_data06/rlvdata*
vi /apps/oracle/admin/+ASM/pfile/init.ora
append ",'/dev/vg_ora_data06/rlvdata08','/dev/vg_ora_data06/rlvdata09'" to asm_diskstring
crsctl start crs
sfc12rc1:/#
sfc12rc1:/# chown oracle:dba /dev/vg_ora_data04/rlvdata05 --change owner
sfc12rc1:/# chmod 660 /dev/vg_ora_data04/rlvdata05 --change mode
sfc12rc1:/# chown oracle:dba /dev/vg_ora_data04/rlvdata06
sfc12rc1:/# chmod 660 /dev/vg_ora_data04/rlvdata06
sfc12rc1:/# ls -lrt /dev/vg_ora_data04/rlvdata*
crw-rw---- 1 oracle dba 64 0x070001 Dec 31 08:57 /dev/vg_ora_data04/rlvdata05
crw-rw---- 1 oracle dba 64 0x070002 Dec 31 08:57 /dev/vg_ora_data04/rlvdata06
sfc12rc1:/#
sfc12rc1:/# crsctl start crs --start crs
Attempting to start CRS stack
The CRS stack will be started shortly
sfc12rc1:/# crsctl check crs --check crs status
CSS appears healthy
CRS appears healthy
EVM appears healthy
sfc12rc1:/#
--------------------------------------------------------------------------------
12. check all node find new disks,then add 2 disks to DGDATA diskgroup:
column name format a20
select name,state,type,total_mb,free_mb,unbalanced from v$asm_diskgroup;
select name,path,total_mb,free_mb,MOUNT_STATUS,HEADER_STATUS,MODE_STATUS from v$asm_disk order by 1,2;
alter diskgroup dgdata add disk '/dev/vg_ora_data04/rlvdata05';
alter diskgroup dgdata add disk '/dev/vg_ora_data04/rlvdata06';
--
alter diskgroup dgdata rebalance power 11;
select * from v$asm_operation;
select name,total_mb,free_mb,unbalanced from v$asm_diskgroup;
select group_number,name,path,total_mb,free_mb,header_status from v$asm_disk order by 1,2;
idle> column name format a20
idle> select name,state,type,total_mb,free_mb,unbalanced from v$asm_diskgroup;
NAME STATE TYPE TOTAL_MB FREE_MB UN
-------------------- ---------------------- ------------ ---------- ---------- --
DGARCH MOUNTED EXTERN 307104 304314 N
DGDATA MOUNTED EXTERN 1228416 168358 N
idle> select name,path,total_mb,free_mb,MOUNT_STATUS,HEADER_STATUS,MODE_STATUS from v$asm_disk order by 1,2;
NAME PATH TOTAL_MB FREE_MB MOUNT_STATUS HEADER_STATUS MODE_STATUS
-------------------- ------------------------------ ---------- ---------- -------------- ------------------------ --------------
DGARCH_0000 /dev/vg_ora_arch01/rlvarch01 307104 304314 CACHED MEMBER ONLINE
DGDATA_0000 /dev/vg_ora_data01/rlvdata01 307104 42084 CACHED MEMBER ONLINE
DGDATA_0001 /dev/vg_ora_data02/rlvdata02 307104 42090 CACHED MEMBER ONLINE
DGDATA_0002 /dev/vg_ora_data03/rlvdata04 307104 42096 CACHED MEMBER ONLINE
DGDATA_0003 /dev/vg_ora_data03/rlvdata03 307104 42088 CACHED MEMBER ONLINE
/dev/vg_ora_data04/rlvdata05 307104 0 CLOSED CANDIDATE ONLINE
/dev/vg_ora_data04/rlvdata06 307104 0 CLOSED CANDIDATE ONLINE
7 rows selected.
idle>
idle> alter diskgroup dgdata add disk '/dev/vg_ora_data06/rlvdata08';
--add disk to diskgroup
Diskgroup altered.
idle> alter diskgroup dgdata add disk '/dev/vg_ora_data06/rlvdata09';
--add disk to diskgroup
Diskgroup altered.
idle> alter diskgroup dgdata rebalance power 11; --rebalance diskgroup
Diskgroup altered.
idle>
idle>
idle> select * from v$asm_operation;
select name,total_mb,free_mb,unbalanced from v$asm_diskgroup;
GROUP_NUMBER OPERATION STATE POWER ACTUAL SOFAR EST_WORK EST_RATE EST_MINUTES
------------ ---------- -------- ---------- ---------- ---------- ---------- ---------- -----------
2 REBAL RUN 11 11 35 353309 6160 57
idle>
select group_number,name,path,total_mb,free_mb,header_status from v$asm_disk order by 1,2;
NAME TOTAL_MB FREE_MB UN
-------------------- ---------- ---------- --
DGARCH 307104 304314 N
DGDATA 1842624 782558 N
idle> idle>
GROUP_NUMBER NAME PATH TOTAL_MB FREE_MB HEADER_STATUS
------------ -------------------- ------------------------------ ---------- ---------- ------------------------
1 DGARCH_0000 /dev/vg_ora_arch01/rlvarch01 307104 304314 MEMBER
2 DGDATA_0000 /dev/vg_ora_data01/rlvdata01 307104 42095 MEMBER
2 DGDATA_0001 /dev/vg_ora_data02/rlvdata02 307104 42102 MEMBER
2 DGDATA_0002 /dev/vg_ora_data03/rlvdata04 307104 42107 MEMBER
2 DGDATA_0003 /dev/vg_ora_data03/rlvdata03 307104 42098 MEMBER
2 DGDATA_0004 /dev/vg_ora_data04/rlvdata05 307104 307078 MEMBER
2 DGDATA_0005 /dev/vg_ora_data04/rlvdata06 307104 307078 MEMBER
7 rows selected.
idle>
-------------------------------------------------------------------------------------------------------------
--do from sfc12rc1 to sfc12rc3 if necessary, check init file is right:
alter system set asm_diskstring='/dev/vg_ora_arch01/rlvarch01','/dev/vg_ora_data01/rlvdata01','/dev/vg_ora_data02/rlvdata02','/dev/vg_ora_data03/rlvdata03','/dev/vg_ora_data03/rlvdata04','/dev/vg_ora_data04/rlvdata05','/dev/vg_ora_data04/rlvdata06';
相关文章:
HPUX系统Oracle RAC如何添加ASM磁盘
前言 HPUX简介 HP-UX (Hewlett-Packard Unix) 是惠普公司开发的类 Unix 操作系统。自 1980 年代问世以来,HP-UX 在技术和功能上不断发展,适应了多种硬件平台和企业计算需求。以下是 HP-UX 的发展历史概述: 1980 年代:起源与早期…...
Jmeter 压力测测试的简单入门
下载安装 官方网站:Apache JMeter - Download Apache JMeter 下载完成解压即可。 配置 1. 找到 bin 目录下的 ApacheJMeter.jar 包,直接打开 如果向图片这样不能直接打开,就在此路径运行 CMD,然后输入下面的命令即可启动。 ja…...
N叉树的层序遍历-力扣
本题同样是二叉树的层序遍历的扩展,只不过二叉树每个节点的子节点只有左右节点,而N叉树的子节点是一个数组,层序遍历到一个节点时,需要将这个节点的子节点数组的每个节点都入队。 代码如下: /* // Definition for a N…...
解决阿里云的端口添加安全组仍然无法扫描到
发现用线上的网站扫不到这个端口,这个端口关了,但是没有更详细信息了 我用nmap扫了一下我的这个端口,发现主机是活跃的,但是有防火墙,我们列出云服务器上面的这个防火墙list,发现确实没有5566端口 参考&a…...
【因果推断python】26_双重稳健估计1
目录 不要把所有的鸡蛋放在一个篮子里 双重稳健估计 关键思想 不要把所有的鸡蛋放在一个篮子里 我们已经学会了如何使用线性回归和倾向得分加权来估计 。但是我们应该在什么时候使用哪一个呢?在不明确的情况下,请同时使用两者!双重稳健估计…...
C语言 图形化界面方式连接MySQL【C/C++】【图形化界面组件分享】
博客主页:花果山~程序猿-CSDN博客 文章分栏:MySQL之旅_花果山~程序猿的博客-CSDN博客 关注我一起学习,一起进步,一起探索编程的无限可能吧!让我们一起努力,一起成长! 目录 一.配置开发环境 二…...
Unity DOTS技术(十五) 物理系统
要解决性能的瓶颈问题,在DOTS中我们将不再使用Unity自带的物理组件. 下面来分享一下在DOTS中当如何使用物理插件. 一.导入插件 在使用DOTS系创建的实体我们会发现,游戏物体无法受物理系统影响进行运动.于是我们需要添加物理系统插件. 1.打开Package Manager > 搜索插件Uni…...
Java线程安全
线程安全 线程安全:线程安全:synchronized同步代码块:同步方法:成员同步方法:静态同步方法: Lock:应用: 单例模式:懒汉式:饿汉式:枚举饿汉式:双重检验锁: 线程…...
Solidity选择使用 require 语句还是条件语句结合手动触发 revert 操作?回滚交易和抛出异常如何选择?
文章目录 Solidity选择使用 require 语句还是条件语句结合手动触发 revert 操作?场景举例:回滚交易和抛出异常如何选择? Solidity选择使用 require 语句还是条件语句结合手动触发 revert 操作? IERC721 nft IERC721(nftAddress)…...
SpringCloud 网关配置websocket
一、nginx https://域名.com location /websocket/ { proxy_pass http://172.1.1.173:8181/; #内网网关IP proxy_http_version 1.1; proxy_read_timeout 360s; proxy_redirect off; proxy_set_header Upgrade $http_upgrade; …...
基于JavaScript 实现近邻算法以及优化方案
前言 近邻算法(K-Nearest Neighbors,简称 KNN)是一种简单的、广泛使用的分类和回归算法。它的基本思想是:给定一个待分类的样本,找到这个样本在特征空间中距离最近的 k 个样本,这 k 个样本的多数类别作为待…...
移动端适配和响应式页面中的常用单位
在移动端适配和响应式页面中,一般采用以下几种单位: 百分比(%):百分比单位是相对于父元素的大小计算的。它可以用于设置宽度、高度、字体大小等属性,使得元素能够随着父元素的大小自动调整。百分比单位在响…...
麒麟v10系统arm64架构openssh9.7p1的rpm包
制作openssh 说明 理论上制作的多个rpm在arm64架构(aarch64)都适用 系统信息:4.19.90-17.ky10.aarch64 GNU/Linux 升级前备份好文件/etc/ssh、/etc/pam.d等以及开启telnet 升级后确认正常后关闭telnet 在之前制作过openssh-9.5p1基础上继续…...
刚刚❗️德勤2025校招暑期实习测评笔试SHL测评题库已发(答案)
📣德勤 2024暑期实习测评已发,正在申请的小伙伴看过来哦👀 ㊙️本次暑期实习优先考虑2025年本科及以上学历的毕业生,此次只有“审计及鉴定”“税务与商务咨询”两个部门开放了岗位~ ⚠️测评注意事项: ὄ…...
python对视频进行帧处理以及裁减部分区域
视频截取帧 废话不多说直接上代码: from cv2 import VideoCapture from cv2 import imwrite# 定义保存图片函数 # image:要保存的图片名字 # addr;图片地址与相片名字的前部分 # num: 相片,名字的后缀。int 类型 def save_image(image, add…...
Python栈的编程题目
你好,我是悦创。 下面是三道关于栈的编程题目,适合不同难度级别的练习: 1. 有效的括号(简单) 题目描述: 给定一个只包括 (,),{,},[ 和 ] 的字符串…...
ROS云课三分钟外传之CoppeliaSim_Edu_V4_1_0_Ubuntu16_04
三分钟热度试一试吧,走过路过不要错过。 参考之前: 从云课五分钟到一分钟之v-rep_pro_edu_v3_6_2-CSDN博客 git clone https://gitcode.net/ZhangRelay/v-rep_pro_edu_v3_6_2_ubuntu16_04.gittar -xf v-rep_pro_edu_v3_6_2_ubuntu16_04/V-REP_PRO_EDU…...
day28回溯算法part04| 93.复原IP地址 78.子集 90.子集II
**93.复原IP地址 ** 本期本来是很有难度的,不过 大家做完 分割回文串 之后,本题就容易很多了 题目链接/文章讲解 | 视频讲解 class Solution { public:vector<string> result;// pointNum记录加入的点的数量,其等于3的时候停止void b…...
SpringBoot项目启动时“jar中没有主清单属性”异常
资料参考 Spring Boot 启动时 “jar中没有主清单属性” 异常 - spring 中文网 (springdoc.cn) 实际解决 更详细的参考以上,我这边的话只需要在 pom文件 中加上 spring-boot-maven-plugin 插件就能解决该异常,具体如下: <build><p…...
vAttention:用于在没有Paged Attention的情况下Serving LLM
文章目录 0x0. 前言(太长不看版)0x1. 摘要0x2. 介绍&背景0x3. 使用PagedAttention模型的问题0x3.1 需要重写注意力kernel0x3.2 在服务框架中增加冗余0x3.3 性能开销0x3.3.1 GPU上的运行时开销0x3.3.2 CPU上的运行时开销 0x4. 对LLM服务系统的洞察0x5…...
Python实现Stack
你好,我是悦创。 Python 中的栈结构是一种后进先出(LIFO, Last In, First Out)的数据结构,这意味着最后添加到栈中的元素将是第一个被移除的。栈通常用于解决涉及到反转、历史记录和撤销操作等问题。在 Python 中,你可…...
Helm在线部署Longhorn(1.6.0版本)分布式存储
环境依赖: k8s (版本大于等于v1.21版本)、helm工具 安装前准备 k8s worker 节点都需要执行 yum -y --setopttsflagsnoscripts install iscsi-initiator-utils echo "InitiatorName$(/sbin/iscsi-iname)" > /etc/iscsi/initiatorname.iscsi systemctl …...
算法题目学习汇总
1、二叉树前中后序遍历:https://blog.csdn.net/cm15835106905/article/details/124699173 2、输入一棵二叉搜索树,将该二叉搜索树转换成一个排序的双向链表。要求不能创建任何新的结点,只能调整树中结点指针的指向。 public class Solution {private Tr…...
DockerCompose中部署Jenkins(Docker Desktop在windows上数据卷映射)
场景 DockerJenkinsGiteeMaven项目配置jdk、maven、gitee等拉取代码并自动构建以及遇到的那些坑: DockerJenkinsGiteeMaven项目配置jdk、maven、gitee等拉取代码并自动构建以及遇到的那些坑_jenkins的安装以及集成jdkgitmaven 提示警告-CSDN博客 Windows10(家庭版…...
吊车报警的工作原理和使用场景_鼎跃安全
在现代建筑施工过程中,经常使用大型机械设备,如挖掘机、吊车、打桩机等,这些设备在施工过程中发挥着越来越重要的作用;同时,这些设备的作业频繁进行作业,对于接触到高压电线的风险也随之增加。大型机械设备…...
Spring5
文章目录 1. Spring 是什么?2. IoC3. Spring Demo4. IoC 创建对象的方式 / DI 方式注入的默认参数在哪里设定? 5. Spring 配置tx:annotation-driven 用于启用基于注解的事务管理 6. Bean的作用域7. 在Spring中有三种自动装配的方式1. 在xml中显式的配置2. 在java中…...
vue面试题二
一、请解释Vue中的双向数据绑定是什么? Vue中的双向数据绑定是一种机制,它使得数据的变化能够自动反映在用户界面上,同时用户界面中的输入也能够自动更新数据。这种机制实现了数据层(Model)和视图层(View&…...
软件设计师笔记-程序语言基础知识
编程语言之间的翻译形式 编程语言之间的翻译形式主要有三种:汇编、解释和编译。这三种方式在将源代码转换为机器可执行的代码时,有着各自的特点和流程。 汇编: 定义:汇编是低级语言(如汇编语言)到机器语言的一种翻译方式。汇编语言是为特定计算机或计算机系列设计的一种…...
在Windows上安装VMWare Pro 16.2(虚拟机)并从零安装CentOS 7.6镜像过程记录
本文详细记录了在Windows的VMWare Workstation Pro 16.2中安装CentOS 7.6 的过程,非常适合新手从零开始一步步安装。 文章目录 一、安装VMWare Workstation Pro 16.2并激活二、安装CentOS 7.62.1 下载CentOS7.6镜像文件2.2 创建新的虚拟机2.3 安装CentOS镜像一、安装VMWare Wo…...
NGINX之location和rewrite
一.NGINX常用的正则表达式 二.Location location作用:对访问的路径做访问控制或者代理转发 1.location 常用的匹配规则: 进行普通字符精确匹配,也就是完全匹配^~ / 表示普通字符匹配。使用前缀匹配。如果匹配成功,则不再匹配其它 …...
wordpress主题 missoften/如何被百度收录
【CF932E】Team Work 题意:求$\sum\limits_{i1}^nC_n^ii^k$,答案模$10^97$。$n\le 10^9,k\le 5000$。 【BZOJ5093】图的价值 题意:“简单无向图”是指无重边、无自环的无向图(不一定连通)。一个带标号的图的价值定义为…...
技术网站推广范例/前端培训哪个机构靠谱
LabVIEW开发150瓦射频发生器 150瓦射频发生器的原型可以在手动模式下独立运行,也可以通过外部数据进行编程采集系统,如NI紧凑型RIO FPGA系统或类似产品,具有更高的灵活性和易用性操作。 独立模式:在150/380KHz(固定&a…...
中国建设银行重庆网站首页/上海百度提升优化
简介 这里我想说的是,程序本身不需要关心表的结构,只需要按照视图定义来取数据或更新数据。 什么是视图 说起视图呢,就是说它相当于一个虚拟的表,你看不到它,但是你可以根据它来更新和操作表,视图中的wi…...
优秀的国外网站/西安抖音seo
需求:客户端界面需要一个软键盘进行操作 做了一个简易的例子进行展示。 html代码: <div id"container"> <div class"print-right"><div id"right-top" class"right-top"><div class&quo…...
廊坊市网站建设/百度关键词优化工具
Python标准库os的使用方法os.path.abspath(path) #返回绝对路径os.path.basename(path) #返回文件名os.path.commonprefix(list) #返回list(多个路径)中,所有path共有的最长的路径。os.path.dirname(path) #返回文件路径os.path.exists(path) #路径存在则返回True,…...
石狮网站建设报价/石嘴山网站seo
1.查出占用端口的进程: 比如我要查找的8080,1099端口: netstat -ano|findstr 8080 netstat -ano|findstr 1099 12424就是我们所查进程的id,然后干掉它 taskkill -f -pid 12424...