000-221 · Question #73
A new naming guideline requires the existing volume group, db2vg on hdisk1, be renamed to db2logsvg01. Which command sequence will accomplish this with the least downtime?
The correct answer is A. varyoffvg db2vg exportvg db2vg importvg -y db2logsvg01 hdisk1. Renaming an AIX volume group is accomplished with the least downtime by varying it off, exporting it to remove the ODM definition, then reimporting it under the new name.
Question
A new naming guideline requires the existing volume group, db2vg on hdisk1, be renamed to db2logsvg01. Which command sequence will accomplish this with the least downtime?
Options
- Avaryoffvg db2vg exportvg db2vg importvg -y db2logsvg01 hdisk1
- Bodmupdate -q VGNAME db2vg db2logsvg01 sync db2vg db2logsvg01 varyonvg db2logsvg01 hdisk1
- Cvaryoffvg db2vg chvg -a name db2vg db2logsvg01 varyonvg db2vg hdisk1
- Dsavevg db2vg rmvg db2vg mkvg -y db2logsvg0l hdisk1 restvg hdisk1
How the community answered
(50 responses)- A78% (39)
- B2% (1)
- C8% (4)
- D12% (6)
Why each option
Renaming an AIX volume group is accomplished with the least downtime by varying it off, exporting it to remove the ODM definition, then reimporting it under the new name.
The sequence varyoffvg takes the VG offline while preserving all data on disk, exportvg removes the VG's ODM entries without touching the VGDA stored on the physical volume, and importvg -y db2logsvg01 hdisk1 re-reads the VGDA and registers the VG under the new name. This is the IBM-supported rename procedure and requires only the brief vary-off period as downtime. No data is moved, reformatted, or recreated, making it the fastest and safest approach.
odmupdate is not a valid AIX command for renaming volume groups, and this sequence does not represent a supported administrative procedure.
The chvg command does not support a name-change option in the syntax shown, so this sequence would fail to rename the volume group.
Using savevg, rmvg, mkvg, and restvg destroys and recreates the volume group, which causes significantly more downtime and risks data loss compared to the export/import method.
Concept tested: AIX volume group rename using exportvg and importvg
Source: https://www.ibm.com/docs/en/aix/7.1?topic=i-importvg-command
Topics
Community Discussion
No community discussion yet for this question.