000-221 · Question #150
An administrator created logical volume fs01l to contain a JFS2 file system. When trying to create the filesystem the crfs command gives an error. Given the following logical volume definition…
The correct answer is D. chlv-tjfs2fs01lv. The crfs command requires the target logical volume to have its type attribute set to jfs2 before it can create a JFS2 filesystem on it. The chlv -t command corrects that attribute on the existing logical volume.
Question
An administrator created logical volume fs01l to contain a JFS2 file system. When trying to create the filesystem the crfs command gives an error. Given the following logical volume definition, which action will correct the error?
Exhibit
Options
- Acrfs -vjfs2 -m /fs01 -d /dev/fs01lv
- Bmklv-tjfs2-yfs01lvrootvg5
- Cchdev-lfs01lv-atype=jfs2
- Dchlv-tjfs2fs01lv
How the community answered
(17 responses)- B12% (2)
- C6% (1)
- D82% (14)
Why each option
The crfs command requires the target logical volume to have its type attribute set to jfs2 before it can create a JFS2 filesystem on it. The chlv -t command corrects that attribute on the existing logical volume.
The crfs syntax shown would still fail because it does not address the underlying misconfigured LV type attribute; the LV must first be typed as jfs2 before crfs will succeed.
mklv creates a brand-new logical volume and would produce a duplicate-name error since fs01lv already exists; it does not correct the type attribute of the existing volume.
chdev modifies device driver attributes in the ODM but type=jfs2 is not a valid chdev attribute for a logical volume; logical volume type is managed through chlv, not chdev.
The chlv -t jfs2 fs01lv command sets the logical volume type attribute in the ODM to jfs2, which is a prerequisite for crfs to recognize the LV as a valid JFS2 container. Without this type assignment the crfs command fails because it checks the LV type before attempting filesystem creation.
Concept tested: Setting JFS2 type on an AIX logical volume with chlv
Source: https://www.ibm.com/docs/en/aix/7.3?topic=c-chlv-command
Topics
Community Discussion
No community discussion yet for this question.
