- 论坛徽章:
- 0
|
1. cfgmgr 命令什么情况下会为硬盘生成PVID?分以下几种情况:
a. 新加入的硬盘,本身没有PVID。
b. 新加入的硬盘,但是已经有PVID。
c. 已经识别过的硬盘,但是已使用pv=clear清除PVID。
d. 已经识别过的硬盘,并且已经分配了PVID。
都不会。
a,cfgmgr对于pvid什么都不做,lspv会看到none
b,一半正确,cfgmgr会读出pvid,放到odm里,lspv可以看到读出的pvid但是不会“生成”新的pvid
c,等同a,none
d,什么都不做,但由于已经有了pvid,所以看到的还是旧的pvid
2. 以下是关于PVID的一段描述:
To make a disk into a physical volume, the PVID is placed onto the disk. ThePVID is an combination of the machine's serial number (from the systems EPROMs) and the date the PVID was generated. This combination ensures the extremely low chance of PVIDs being duplicated. When the system is booted, the disk configurator looks at the PVID residing on the disk and compares it with an entry in the ODM. If an entry is found, then the disk is given the hdiskx number in the ODM that is associated with the PVID. If there is no matching entry, then the next name in the pool of 'free' hdisk names is allocated to the physical volume.
问题:
a. 对于没有PVID的硬盘(或者使用pv=clear清除了PVID),如果硬盘在ODM中已经有了定义,但是系统重启后由于无法根据PVID在ODM中找到匹配的记录,是不是会导致系统重新分配新的名字给硬盘呢?
不会。这时候的磁盘对应不是根据pvid,是根据scsi id,lun id和vpd信息。
b. 对于没有PVID的硬盘(或者使用pv=clear清除了PVID),如果硬盘在ODM中已经有了定义,重启时会执行cfgmgr,那么cfgmgr会对硬盘重新分配PVID吗?如果会的话那之前清除PVID的操作不就白费力气了?
不会。
c. 没有PVID的情况下系统怎么将硬盘设备和ODM中的定义联系起来呢?
chdev .... pv=yes
3. 下面是 Oracle ASM 的一段描述:
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 ). 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. So we need to run the following commands to update the ODM
意思是如果disk header的PVID被清除了,但是ODM中还存在PVID的话,那系统重启时会将PVID从ODM中还原到disk header,我的疑问是disk header的PVID都没了,系统是根据什么信息将硬盘设备和ODM中的定义联系起来的呢?
不会,aix没有从odm回写磁盘的动作。但由于也没有更新odm中pvid的动作,所以如果不是通过aix chdev清的pvid,lspv看到的还是旧的pvid,虽然磁盘上的pvid已经没了。
4. mkdev和cfgmgr都会对设备进行定义和配置,那么mkdev会和cfgmgr一样为硬盘设备生成PVID吗?
都不会,只有chdev .... pv=yes会新写pvid,同时同步odm中的pvid信息 |
|