데이터 베이스 MySQL 튜토리얼 如何重命名asm中的磁盘组

如何重命名asm中的磁盘组

Jun 07, 2016 pm 03:54 PM
asm 어떻게 디스크 이름 바꾸기

今天是2014-03-24,介绍一个重命名oracle asm 磁盘组的工具renamedg The renamedg tool enables you to change the name of a cloned disk group. The disk group must be dismounted on all nodes in the cluster before running renamedg on the disk grou

今天是2014-03-24,介绍一个重命名oracle asm 磁盘组的工具renamedg

The renamedg tool enables you to change the name of a cloned disk group. The disk group must be dismounted on all nodes in the cluster before running renamedg on the disk group.

renamedg renames a disk group using a two-step process:

Phase one

This phase generates a configuration file to be used in phase two.

Phase two

This phase uses the configuration file to perform the renaming of the disk group.

The syntax is:


renamedg {-help | help=true}

renamedg
[phase={ one|two |both } ] dgname=diskgroup
newdgname=newdiskgroup [config=configfile]
[ asm_diskstring=discoverystring, discoverystring ... ]
[ clean={true|false} ] [ check={true|false} ]
[ confirm={true|false}] [ verbose={ true|false} ]
[ keep_voting_files={true|false}]

  1. phase={one|two|both}

    注意:

     

    Applies to:
    Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.0
    Information in this document applies to any platform.

    Goal
    The purpose of this document is to provide information about rename diskgroup in 10g and 11gR1 release

    Solution
    rename diskgroup option is a new feature of 11gR2 .

    You can use this tool to rename your 10g or 11gR1 ASM diskgroup

    you need to just install 11gR2 SIHA Grid Infrastructure software only installation.

    cd /bin
    renamedg

    use renamedg tool to rename 10g or 11gR1 diskgroup.

    Diskgroup cannot be renamed under following conditions :

    - the Diskgroup is mounted
    - the Diskgroup is being used by CSS
    - Diskgroup contains offline disks

    eg:

    -bash-4.1$ sqlplus / as sysasm
    
    SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 24 15:33:16 2014
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Automatic Storage Management option
    
    SQL> alter diskgroup new_datagroup2 dismount;
    
    Diskgroup altered.
    
    SQL> 
    SQL> 
    SQL> exit
    
    -bash-4.1$ 
    -bash-4.1$ renamedg -help
    NOTE: No asm libraries found in the system
    
    Parsing parameters..
    phase                           Phase to execute, 
                                    (phase=ONE|TWO|BOTH), default BOTH
    
    dgname                          Diskgroup to be renamed
    
    newdgname                       New name for the diskgroup
    
    config                          intermediate config file
    
    check                           just check-do not perform actual operation,
                                    (check=TRUE/FALSE), default FALSE
    
    confirm                         confirm before committing changes to disks,
                                    (confirm=TRUE/FALSE), default FALSE
    
    clean                           ignore errors,
                                    (clean=TRUE/FALSE), default TRUE
    
    asm_diskstring                  ASM Diskstring (asm_diskstring='discoverystring',
                                    'discoverystring1' ...)
    
    verbose                         verbose execution, 
                                    (verbose=TRUE|FALSE), default FALSE
    
    keep_voting_files               Voting file attribute, 
                                    (keep_voting_files=TRUE|FALSE), default FALSE
    
    -bash-4.1$ renamedg dgname=NEW_DATAGROUP2 newdgname=datagroup2 asm_diskstring='/dev/oracleasm/disks/*' verbose=true
    NOTE: No asm libraries found in the system
    
    Parsing parameters..
    
    Parameters in effect:
    
             Old DG name       : NEW_DATAGROUP2 
             New DG name          : DATAGROUP2 
             Phases               :
                     Phase 1
                     Phase 2
             Discovery str        : /dev/oracleasm/disks/* 
             Clean              : TRUE
             Raw only           : TRUE
    renamedg operation: dgname=NEW_DATAGROUP2 newdgname=datagroup2 asm_diskstring=/dev/oracleasm/disks/* verbose=true
    Executing phase 1
    Discovering the group
    Performing discovery with string:/dev/oracleasm/disks/*
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK5 with disk number:0 and timestamp (33001227 75905024)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK6 with disk number:1 and timestamp (33001227 75905024)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK7 with disk number:2 and timestamp (33001227 75905024)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK8 with disk number:5 and timestamp (33001229 -598404096)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK9 with disk number:3 and timestamp (33001229 -678575104)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK10 with disk number:4 and timestamp (33001229 -678575104)
    Checking for hearbeat...
    Re-discovering the group
    Performing discovery with string:/dev/oracleasm/disks/*
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK5 with disk number:0 and timestamp (33001227 75905024)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK6 with disk number:1 and timestamp (33001227 75905024)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK7 with disk number:2 and timestamp (33001227 75905024)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK8 with disk number:5 and timestamp (33001229 -598404096)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK9 with disk number:3 and timestamp (33001229 -678575104)
    Identified disk UFS:/dev/oracleasm/disks/ASMDISK10 with disk number:4 and timestamp (33001229 -678575104)
    Checking if the diskgroup is mounted or used by CSS 
    Checking disk number:0
    Checking disk number:1
    Checking disk number:2
    Checking disk number:5
    Checking disk number:3
    Checking disk number:4
    Generating configuration file..
    Completed phase 1
    Executing phase 2
    Looking for /dev/oracleasm/disks/ASMDISK5
    Modifying the header
    Looking for /dev/oracleasm/disks/ASMDISK6
    Modifying the header
    Looking for /dev/oracleasm/disks/ASMDISK7
    Modifying the header
    Looking for /dev/oracleasm/disks/ASMDISK8
    Modifying the header
    Looking for /dev/oracleasm/disks/ASMDISK9
    Modifying the header
    Looking for /dev/oracleasm/disks/ASMDISK10
    Modifying the header
    Completed phase 2
    Terminating kgfd context 0x7f57a379b0a0
    -bash-4.1$ sqlplus / as sysasm
    
    SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 24 15:35:04 2014
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Automatic Storage Management option
    
    SQL> select name,state from v$asm_diskgroup;
    
    NAME                           STATE
    ------------------------------ -----------
    DATAGROUP1                     MOUNTED
    DATAGROUP2                     DISMOUNTED
    
    SQL> alter diskgroup datagroup2 mount;
    
    Diskgroup altered.
    
    SQL> select name,state from v$asm_diskgroup;
    
    NAME                           STATE
    ------------------------------ -----------
    DATAGROUP1                     MOUNTED
    DATAGROUP2                     MOUNTED
    
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Automatic Storage Management option
    -bash-4.1$ crsctl stat res -t
    --------------------------------------------------------------------------------
    NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
    --------------------------------------------------------------------------------
    Local Resources
    --------------------------------------------------------------------------------
    ora.DATAGROUP1.dg
                   ONLINE  ONLINE       oracle-one                                   
    ora.DATAGROUP2.dg
                   ONLINE  ONLINE       oracle-one                                   
    ora.LISTENER.lsnr
                   ONLINE  ONLINE       oracle-one                                   
    ora.NEW_DATAGROUP2.dg
                   OFFLINE OFFLINE      oracle-one                                   
    ora.asm
                   ONLINE  ONLINE       oracle-one               Started             
    ora.ons
                   OFFLINE OFFLINE      oracle-one                                   
    --------------------------------------------------------------------------------
    Cluster Resources
    --------------------------------------------------------------------------------
    ora.cssd
          1        ONLINE  ONLINE       oracle-one                                   
    ora.diskmon
          1        OFFLINE OFFLINE                                                   
    ora.evmd
          1        ONLINE  ONLINE       oracle-one                                   
    ora.rhys.db
          1        OFFLINE OFFLINE                               Instance Shutdown   
    -bash-4.1$ srvctl remove diskgroup -g new_datagroup2
    -bash-4.1$ crsctl status res -t
    --------------------------------------------------------------------------------
    NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
    --------------------------------------------------------------------------------
    Local Resources
    --------------------------------------------------------------------------------
    ora.DATAGROUP1.dg
                   ONLINE  ONLINE       oracle-one                                   
    ora.DATAGROUP2.dg
                   ONLINE  ONLINE       oracle-one                                   
    ora.LISTENER.lsnr
                   ONLINE  ONLINE       oracle-one                                   
    ora.asm
                   ONLINE  ONLINE       oracle-one               Started             
    ora.ons
                   OFFLINE OFFLINE      oracle-one                                   
    --------------------------------------------------------------------------------
    Cluster Resources
    --------------------------------------------------------------------------------
    ora.cssd
          1        ONLINE  ONLINE       oracle-one                                   
    ora.diskmon
          1        OFFLINE OFFLINE                                                   
    ora.evmd
          1        ONLINE  ONLINE       oracle-one                                   
    ora.rhys.db
          1        OFFLINE OFFLINE                               Instance Shutdown   
    
    로그인 후 복사

     

    본 웹사이트의 성명
    본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

    핫 AI 도구

    Undresser.AI Undress

    Undresser.AI Undress

    사실적인 누드 사진을 만들기 위한 AI 기반 앱

    AI Clothes Remover

    AI Clothes Remover

    사진에서 옷을 제거하는 온라인 AI 도구입니다.

    Undress AI Tool

    Undress AI Tool

    무료로 이미지를 벗다

    Clothoff.io

    Clothoff.io

    AI 옷 제거제

    AI Hentai Generator

    AI Hentai Generator

    AI Hentai를 무료로 생성하십시오.

    인기 기사

    R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
    3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O. 최고의 그래픽 설정
    3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
    3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌

    뜨거운 도구

    메모장++7.3.1

    메모장++7.3.1

    사용하기 쉬운 무료 코드 편집기

    SublimeText3 중국어 버전

    SublimeText3 중국어 버전

    중국어 버전, 사용하기 매우 쉽습니다.

    스튜디오 13.0.1 보내기

    스튜디오 13.0.1 보내기

    강력한 PHP 통합 개발 환경

    드림위버 CS6

    드림위버 CS6

    시각적 웹 개발 도구

    SublimeText3 Mac 버전

    SublimeText3 Mac 버전

    신 수준의 코드 편집 소프트웨어(SublimeText3)

    Windows 11에서는 드라이버가 이 장치에 ene.sys를 로드할 수 없습니다. Windows 11에서는 드라이버가 이 장치에 ene.sys를 로드할 수 없습니다. May 05, 2023 am 09:13 AM

    많은 Windows 11 사용자는 드라이버가 시스템에 로드되지 못하게 하고 취약한 것으로 표시되는 "이 장치(ene.sys)에 드라이버를 로드할 수 없습니다"라는 오류 메시지를 경험했습니다. 그러나 이 문제는 주로 PC를 Windows 11로 업그레이드한 사용자가 보고합니다. 이 오류는 시스템 운영 체제 업데이트 문제로 인해 손상된 드라이버 및 파일과 밀접한 관련이 있습니다. 업데이트 후 Windows 11 컴퓨터를 켤 때마다 이 "ene.sys" 오류가 발생하는 경우 이 문서를 계속 읽으세요. 여기에서는 PC에서 이 오류가 나타날 경우 사용할 수 있는 몇 가지 문제 해결 방법을 찾을 수 있습니다. 수정 1 - 선택적 업데이트 1단계를 설치합니다. Windows+R 그룹 사용

    Windows 11에서 RAID 1을 구성하는 단계 Windows 11에서 RAID 1을 구성하는 단계 Sep 22, 2023 pm 03:05 PM

    Windows 11에는 엄격한 요구 사항이 있으므로 해당 저장소를 확보하는 데 어려움을 겪은 후에 하드 드라이브와 데이터를 잃는 것은 부끄러운 일입니다. 하드 드라이브 오류에 대비하는 데 도움이 될 수 있는 좋은 소식이 있습니다. 내장된 Windows 도구를 사용하면 한 드라이브에서 다른 드라이브로 모든 데이터를 복사할 수 있습니다. 이렇게 하면 드라이브 하나에 오류가 발생하면 교체 드라이브에 원본 ​​데이터를 미러링하고 재구축할 수 있습니다. Windows 11에서 RAID를 사용할 수 있나요? Windows 저장소 공간 기능을 사용하면 Windows 11에서 RAID를 수행할 수 있습니다. 이 기능을 사용하면 성능 저하 없이 컴퓨터에 직접 연결된 하드 드라이브를 사용하여 여러 개의 가상 디스크를 생성할 수 있습니다. Raid의 장점: 디스크 비용 절감

    Windows 11에서 프린터 이름을 빠르게 바꾸는 4가지 방법 Windows 11에서 프린터 이름을 빠르게 바꾸는 4가지 방법 Sep 11, 2023 pm 03:26 PM

    사무실에 프린터가 많으면 프린터 목록이 길어져 작업을 지루하게 만들 수 있습니다. 게다가 여러 프린터는 일반적으로 유사한 이름을 의미하므로 다소 혼란스러울 수 있습니다. 끝없이 이어지는 목록을 스크롤하다가도 인쇄 작업을 잘못된 프린터로 보내는 일은 절대 원하지 않습니다. 다행히도 아래에서 보여드릴 간단한 이름 변경 방법으로 이러한 모든 문제를 해결할 수 있습니다. Windows 11에서 프린터 이름을 어떻게 바꾸나요? 1. 설정 앱을 사용하여 키를 탭하고 설정을 클릭합니다. Windows에서는 Bluetooth 및 장치를 클릭하고 프린터 및 스캐너를 선택합니다. 이름을 바꾸려는 프린터를 선택합니다. 프린터 속성을 클릭합니다. 일반 탭으로 이동하여 키

    VirtualBox 고정 디스크를 동적 디스크로 또는 그 반대로 변환 VirtualBox 고정 디스크를 동적 디스크로 또는 그 반대로 변환 Mar 25, 2024 am 09:36 AM

    가상 머신을 생성할 때 디스크 유형을 선택하라는 메시지가 표시되며 고정 디스크 또는 동적 디스크를 선택할 수 있습니다. 고정 디스크를 선택했지만 나중에 동적 디스크가 필요하다는 사실을 깨닫게 된다면 어떻게 될까요? 아니면 그 반대의 경우도 가능합니다. 이번 포스팅에서는 VirtualBox 고정 디스크를 동적 디스크로 또는 그 반대로 변환하는 방법을 살펴보겠습니다. 동적 디스크는 처음에는 크기가 작다가 가상 머신에 데이터를 저장함에 따라 크기가 커지는 가상 하드 디스크입니다. 동적 디스크는 필요한 만큼만 호스트 저장 공간을 차지하므로 저장 공간을 절약하는 데 매우 효율적입니다. 그러나 디스크 용량이 늘어나면 컴퓨터 성능이 약간 영향을 받을 수 있습니다. 고정 디스크와 동적 디스크는 일반적으로 가상 머신에서 사용됩니다.

    Windows 11에서 외장 하드 드라이브를 RAID하는 방법 Windows 11에서 외장 하드 드라이브를 RAID하는 방법 Sep 16, 2023 pm 10:05 PM

    RAID(Redundant Array of Independent Disks)는 여러 외부 드라이브를 하나로 결합하는 데이터 저장 기술입니다. 대용량 하드 드라이브의 가격이 비쌀 때 널리 사용되었지만 여전히 많은 사람들이 RAID 외장 드라이브 방식을 선호합니다. RAID에는 여러 수준이 있으며 각 수준은 특정 목적을 수행합니다. 일반 사용자는 복잡함을 깊이 파고들 필요가 없으며 RAID0 또는 RAID1의 간단한 설정만으로도 제대로 작동한다는 점을 명심하십시오. 외장 드라이브 RAID를 고려해야 하는 이유: 향상된 PC 성능 구성이 쉽고 기존 대안보다 저렴함 더 빠른 데이터 읽기 및 쓰기 미러링을 통한 효율적인 백업 솔루션 Windows 11에서 외장 드라이브를 RAID하는 방법은 무엇입니까? RAID 외장 하드 드라이브를 사용하기 전에 먼저 다음 사항에 주의해야 합니다.

    Windows 11에서 동적 디스크를 기본 디스크로 변환하는 방법 Windows 11에서 동적 디스크를 기본 디스크로 변환하는 방법 Sep 23, 2023 pm 11:33 PM

    Windows 11에서 동적 디스크를 기본 디스크로 변환하려면 먼저 백업을 생성해야 합니다. 프로세스에서 해당 디스크의 모든 데이터가 지워지기 때문입니다. Windows 11에서 동적 디스크를 기본 디스크로 변환해야 하는 이유는 무엇입니까? Microsoft에 따르면 동적 디스크는 Windows에서 더 이상 사용되지 않으며 더 이상 사용이 권장되지 않습니다. 또한 Windows Home Edition은 동적 디스크를 지원하지 않으므로 이러한 논리 드라이브에 액세스할 수 없습니다. 더 많은 디스크를 더 큰 볼륨으로 결합하려면 기본 디스크 또는 저장소 공간을 사용하는 것이 좋습니다. 이 기사에서는 Windows 11에서 동적 디스크를 기본 디스크로 변환하는 방법을 설명합니다. Windows 11에서 동적 디스크를 기본 디스크로 변환하는 방법은 무엇입니까? 처음에는

    Explorer.exe가 시스템 시작 시 시작되지 않음 [수정] Explorer.exe가 시스템 시작 시 시작되지 않음 [수정] Jun 03, 2023 am 08:31 AM

    요즘 많은 Windows 사용자는 심각한 Windows 시스템 문제에 직면하기 시작합니다. 문제는 시스템이 로드된 후 Explorer.exe를 시작할 수 없고 사용자가 파일이나 폴더를 열 수 없다는 것입니다. 그러나 Windows 사용자는 경우에 따라 명령 프롬프트를 사용하여 Windows 탐색기를 수동으로 열 수 있으며 시스템을 다시 시작할 때마다 또는 시스템 시작 후에 그렇게 해야 합니다. 이는 문제가 될 수 있으며 아래에 언급된 다음 요인으로 인해 발생합니다. 시스템 파일이 손상되었습니다. 빠른 시작 설정을 활성화합니다. 오래되었거나 문제가 있는 디스플레이 드라이버. 시스템의 일부 서비스가 변경되었습니다. 수정된 레지스트리 파일. 위의 모든 요소를 ​​염두에 두고 사용자에게 확실히 도움이 될 몇 가지 요소를 생각해냈습니다.

    win10에서 파일 접미사 이름을 일괄 바꾸는 방법 win10에서 파일 접미사 이름을 일괄 바꾸는 방법 Jul 06, 2023 pm 07:37 PM

    win10에서 파일 접미사 이름을 일괄 바꾸는 방법은 무엇입니까? 요즘에는 많은 사용자들이 Win10 시스템을 사용하고 있으며, 평소 컴퓨터를 사용할 때 단축키를 사용하면 작업이 더욱 편리해지기 때문에 단축키를 많이 사용하는 경우가 많은데 파일 이름을 일괄적으로 바꾸는 방법은 무엇일까요? 아래에서 편집기는 Win10에서 파일 이름을 일괄적으로 바꾸는 작업을 소개합니다. Win10에서 파일 이름을 일괄적으로 바꾸는 방법 1. 이름을 바꾸려는 파일을 모두 선택합니다. 2. 선택한 파일을 마우스 오른쪽 버튼으로 클릭하고 이름 바꾸기를 선택합니다. 3. 파일 이름을 변경한 후에는 다른 파일에도 차례로 일련번호가 표시됩니다. 방법은 매우 간단하지만, 수정 시 파일의 순서와 수정된 샘플 파일의 정렬 위치에 주의해야 합니다. 일련번호는 수정된 샘플 파일에서 시작됩니다.

    See all articles