nerdexam
IBM

000-221 · Question #5

What action does the following command perform for a new AIX hdisk, hdisk1 ? chdev -I hdisk1 -a pv=yes

The correct answer is C. Sets the physical volume identifier. The chdev command with -a pv=yes stamps a unique Physical Volume IDentifier (PVID) onto hdisk1, which is required before the disk can be used in the AIX Logical Volume Manager.

Storage Management

Question

What action does the following command perform for a new AIX hdisk, hdisk1 ? chdev -I hdisk1 -a pv=yes

Options

  • AMakes the disk available for use
  • BChanges the existing pvid on the disk to Yes'
  • CSets the physical volume identifier
  • DClears volume group locks
  • EResets the volume group descriptor area

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    80% (16)
  • E
    10% (2)

Why each option

The chdev command with -a pv=yes stamps a unique Physical Volume IDentifier (PVID) onto hdisk1, which is required before the disk can be used in the AIX Logical Volume Manager.

AMakes the disk available for use

Making a disk available for use involves changing its state attribute (e.g., state=available), not assigning a physical volume identifier.

BChanges the existing pvid on the disk to Yes'

The pv=yes attribute does not change an existing PVID to the string 'Yes'; it stamps a new unique numeric identifier onto the disk if one is not already present.

CSets the physical volume identifierCorrect

Setting pv=yes instructs AIX to write a unique PVID into the reserved sector of hdisk1, formally registering it as a physical volume. This identifier is required by the LVM subsystem before the disk can be added to a volume group with commands like mkvg or extendvg. Without a PVID, the LVM subsystem will not recognize the disk as a valid physical volume candidate.

DClears volume group locks

Clearing volume group descriptor locks requires using pv=clear or dedicated LVM recovery tools, not the pv=yes attribute.

EResets the volume group descriptor area

Resetting the volume group descriptor area is a separate LVM recovery operation unrelated to stamping a PVID on a new disk.

Concept tested: Assigning PVID to an AIX physical volume

Source: https://www.ibm.com/docs/en/aix/7.3?topic=c-chdev-command

Topics

#chdev#PVID#physical volume identifier#hdisk

Community Discussion

No community discussion yet for this question.

Full 000-221 Practice