如何正确地将PVID从ASM磁盘头部除去

本文介绍了解决ASMDISK上存在PVID的问题的方法,包括两种去除PVID的步骤,一种是在不停机的情况下逐个移除并清理PVID,另一种则需要停机进行操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ASM磁盘元数据存放于磁盘头部,主要包含以下重要内容:

    The disks that belong to a disk group
    The amount of space that is available in a disk group
    The filenames of the files in a disk group
    The location of disk group data file extents
    A redo log that records information about atomically changing metadata blocks
    Oracle ADVM volume information

PVID也存放于磁盘头部,如果对ASMDISK生成PVID,将覆盖元数据,启动时候会报错:

ORA-15063 "diskgroup \"%s\" lacks quorum of %s PST disks; %s found"
or
ORA-15063: ASM discovered an insufficient number of disks for diskgroup s%
ORA-15040: diskgroup is incomplete
ORA-15042: ASM disk "%" is missing

 

ASM磁盘不需要PVID。如果你的ASMDISK已经有PVID了,怎么将PVID安全地从磁盘头部除去呢?看以下文章:

 

In this Document

 Goal
 Solution
 References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.2 [Release 10.1 to 11.2]
IBM AIX on POWER Systems (64-bit)
IBM AIX Based Systems (64-bit)


GOAL

You have created a diskgroup with disks having PVID and the diskgroup is in use. There is no diskgroup metadata corruption reported yet. You now know that ASM Disk should not have PVID as alerted in MetaLink Note 353761.1 

This note will give the steps to clear the PVID of these ASM Disks.

SOLUTION

When the PVID is set to a disk in a volume group, the PVID is stored in two locations. In Physical disk header ( within first 4K )and in AIX's system object database, called ODM ( Object Data Manager ). 

PVID记录于两个位置1)磁盘头部4K;2)ODM库中

When the diskgroup is created, the disk header information of PVID is overwritten. However, with reboot the OS, from ODM, AIX might try to restore the PVID information onto the disk header, 
there by destroying the ASM metadata. 
创建asmdisk的时候会将PV磁盘头部的4K覆盖,但ODM库中依然保留着PVID信息,如果系统重启,AIX很可能会将PVID重新写入磁盘头部,致使ASM元数据损坏,导致数据库无法启动。

可以通过以下两种方法将已有ASMDISK的PVID去除:


If the ASM disk header Metadata has not been over written by PVID from ODM ( before a reboot ), then you can follow the following steps to update the ODM not to have PVID for the disks:

1] Do not reboot any node.

1.1] Drop one disk at a time from the diskgroup.

1.2] Clear the PVID of the dropped disk

# chdev -l hdisk5 -a pv=clear

Run this on ALL the nodes in case of RAC.

1.3] Check the disk does not have the PVID from ALL the nodes

# lspv

1.4] Add the disk back to the diskgroup

1.5] Do this for all the disks having PVID in the diskgroup, one by one. Take care that the rebalance is complete from the drop/add disk command before going for the next disk.

OR

2] This needs downtime:

2.1] Take 'dd' backup of the disk headers

# dd if=/dev/hdisk5 of=/tmp/d5.txt bs=1024 count=1024

2.2] Shutdown ASM instance ( on ALL the nodes in RAC setup ).

2.3] Clear the PVID

# chdev -l hdisk5 -a pv=clear

Run this on ALL the nodes in case of RAC.

2.4] Check the disk does not have the PVID from ALL the nodes

# lspv

2.5] Start the ASM Instance(s) and mount the diskgroup on ALL the nodes


WARNING:
Point-2 commands overrides the content of the disk header and so could be destructive if not correctly used. If you have any doubt, raise an SR with Oracle Support before any action. 

<think>好的,我现在需要回答用户关于PVID在IT领域中的含义和用途的问题。首先,我得确认PVID在不同上下文中可能代表的不同术语。 首先想到的是,在计算机网络中,PVID可能指的是Port VLAN ID,这是交换机端口的一个属性,用于指定默认的VLAN ID。当未标记的帧进入端口时,会被分配到PVID指定的VLAN。这在VLAN配置中很常见,用来管理网络流量和隔离。这点我记得比较楚,可能来自之前的网络课程或者资料。 然后,考虑到虚拟化技术,比如IBM的虚拟化解决方案,PVID可能代表Physical Volume Identifier,用于存储管理,特别是在AIX系统中识别物理卷。这个需要查证,但记得IBM的文档中提到过动态分区迁移可能会涉及存储卷的标识,所以PVID在这里的作用是确保正确识别和迁移物理存储资源。引用中提到的动态分区迁移技术可能与此相关[^1]。 另外,可能还有其他领域的PVID,比如项目或产品编号,但用户明确询问IT领域,所以这些可能性较低,但需要简要提及以避免遗漏。 接下来要组织回答结构,先给出PVID的主要含义,再分点详细说明每个应用场景,最后总结用途。需要确保使用正确的中文术语,并按照用户要求使用LaTeX格式的数学表达式,不过这个问题可能不涉及数学公式,但如果有相关例子,比如网络中的VLAN ID分配,可能需要用行内公式表示,例如端口号为$port_1$,但可能不需要。检查是否需要数学表达式,如果没有的话,可以忽略,但根据用户示例,可能需要在适当的地方加入。 同时,用户要求生成相关问题,需要围绕PVID的不同含义和应用设计问题,比如网络配置、虚拟化应用、存储管理等方向。 最后,要确保引用正确,用户提供的引用是关于IBM动态分区迁移的,所以在提到虚拟化中的PVID时需要添加引用标识[^1]。 现在需要验证各点是否正确: 1. Port VLAN ID:确认交换机端口的PVID确实是默认VLAN ID,用于未标记帧的处理。正确。 2. Physical Volume Identifier:在AIX系统中确实存在,用于唯一标识物理卷。正确,相关引用[^1]适用于虚拟化环境中的存储管理。 3. 其他可能性:如项目编号,可以提及但说明在IT领域不常见。 总结后,回答结构如下: - 含义分点:网络中的Port VLAN ID和虚拟化中的Physical Volume Identifier。 - 每个点详细说明用途。 - 相关问题涉及网络配置、虚拟化应用、存储管理等。 确保语言简洁,结构晰,符合用户要求的格式,不使用Markdown,用自然的中文段落,并在适当位置添加引用。</think>在IT领域中,PVID主要有以下两种含义及用途: ### 一、Port VLAN ID(端口虚拟局域网标识) 在网络交换设备中,PVID指**交换机端口的默认VLAN标识**。当未标记(untagged)的数据帧通过端口时,交换机会根据PVID为其分配对应的VLAN成员身份。例如,若端口$port_1$的PVID设为$VLAN_{10}$,则所有未标记的流量将归属$VLAN_{10}$。 **用途**: - 实现基于端口的VLAN划分,简化网络流量管理 - 支持混合模式(同时处理标记与未标记流量)的网络设备互联 ### 二、Physical Volume Identifier(物理卷标识符) 在存储管理领域(如IBM AIX系统),PVID是**物理磁盘的唯一标识符**。通过`chdev`命令可为磁盘分配PVID,例如: ```bash chdev -l hdisk0 -a pvid=00f65d8a4e3d1c00 ``` **用途**: - 确保存储资源在虚拟化环境中被唯一识别 - 支持动态分区迁移(Live Partition Mobility)时准确映射物理存储设备 ### 三、其他场景 在特定系统中,PVID可能表示项目版本ID(Project Version ID)或产品验证标识(Product Validation ID),但这类用法在通用IT领域较少见。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值