nerdexam
IBM

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.

Storage Management

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

000-221 question #150 exhibit

Options

  • Acrfs -vjfs2 -m /fs01 -d /dev/fs01lv
  • Bmklv-tjfs2-yfs01lvrootvg5
  • Cchdev-lfs01lv-atype=jfs2
  • Dchlv-tjfs2fs01lv

How the community answered

(17 responses)
  • B
    12% (2)
  • C
    6% (1)
  • D
    82% (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.

Acrfs -vjfs2 -m /fs01 -d /dev/fs01lv

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.

Bmklv-tjfs2-yfs01lvrootvg5

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.

Cchdev-lfs01lv-atype=jfs2

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.

Dchlv-tjfs2fs01lvCorrect

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

#logical volume#JFS2#chlv#filesystem creation

Community Discussion

No community discussion yet for this question.

Full 000-221 Practice