A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted under /ops/app. Which of the following is the correct list of commands to achieve this goal?
D. lvcreate -L 1G -n app app_vg
mkfs.xfs /dev/app_vg/app
mount /dev/app_vg/app /opt/app
This creates a new logical volume of size 1GB named "app" in the volume group "app_vg", formats it with the XFS filesystem, and mounts it under the /opt/app directory.
Answer B is a correct set of commands to create and mount a new 1GB XFS filesystem under the directory "/opt/app".
The first command parted /dev/sdb --script mkpart primary xfs 1GB creates a new partition on the device "/dev/sdb" with a file system type of XFS and a size of 1GB.
The second command mkfs.xfs /dev/sdb creates a XFS file system on the newly created partition "/dev/sdb".
The third command mount /dev/sdb /opt/app mounts the newly created XFS file system to the directory "/opt/app".
This set of commands will work if "/dev/sdb" is a valid block device and there is enough disk space available to create a new partition of 1GB. It is also important to note that these changes are only temporary and will not persist after a reboot unless they are added to the /etc/fstab file.
B does not work -tested. the mkpart command requires an END block. if you run this command by leaving the --script out, you will get prompts.. I would prefer B as an answer, but it doesn't work. so D it is.
can't be B, after running parted the partprobe command needs to be run to refresh the kernel data
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Nvoid
Highly Voted 11 months, 2 weeks agoNvoid
11 months, 2 weeks agolinux_admin
Highly Voted 8 months, 3 weeks agolinux_admin
Most Recent 8 months, 4 weeks agolinux_admin
8 months, 3 weeks agobjornborg
1 year agoVeteran903
12 months agoTheRealManish
11 months, 3 weeks agoTheRealManish
11 months, 2 weeks ago[Removed]
9 months ago