000-221 · Question #74
Based on the following output, what must be done if loglv1 name is changed to db2loglv?
The correct answer is A. Run the chfs command to update /exportfs/db01 logging logical volume to db2loglv. After renaming a JFS2 logging logical volume, the filesystem that references it must be updated using chfs to point to the new log device name.
Question
Based on the following output, what must be done if loglv1 name is changed to db2loglv?
Exhibit
Options
- ARun the chfs command to update /exportfs/db01 logging logical volume to db2loglv.
- BRun the logform command to update the log format of db2loglv.
- CRun the chlv command to update dblv01 logging logical volume to db2loglv.
- DRun the chvg command to update volume group default logging logical volume to db2loglv.
How the community answered
(30 responses)- A80% (24)
- B10% (3)
- C7% (2)
- D3% (1)
Why each option
After renaming a JFS2 logging logical volume, the filesystem that references it must be updated using chfs to point to the new log device name.
A JFS2 filesystem stores the name of its logging logical volume as a filesystem attribute, so renaming loglv1 to db2loglv causes the /exportfs/db01 filesystem to reference a device that no longer exists by that name. The chfs command is used to modify filesystem attributes, including the log device, updating the reference to db2loglv so the filesystem can locate its log at mount time. Without this update, the filesystem will fail to mount because it cannot find its log device.
The logform command initializes or formats a log logical volume but does not update a filesystem's stored reference to its log device.
The chlv command modifies logical volume attributes such as name or size but cannot update the log device pointer stored in the filesystem's superblock.
The chvg command modifies volume group attributes including the VG-level default log LV, but does not update the log reference for an individual filesystem like /exportfs/db01.
Concept tested: Updating JFS2 filesystem log device reference with chfs
Source: https://www.ibm.com/docs/en/aix/7.1?topic=c-chfs-command
Topics
Community Discussion
No community discussion yet for this question.
