Maintain Filesystem Integrity (2) Flashcards

Objective 104.2 Weight 2

1
Q

Which of the following commands are used to tune filesystems?

  1. mke2fs
  2. tune2fs
  3. xfs_admin
  4. xfs_repair
  5. xfs_fsr
  6. btrfstune
A
  1. mke2fs
  2. tune2fs
  3. xfs_admin
  4. xfs_fsr
  5. btrfstune

The tune2fs, xfs_admin, xfs_fsr, and btrfstune utilities all tune a filesystem after it has been formatted. The mke2fs utility can format a filesystem and tune it at the same time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You need to change a partition’s UUID, and the filesystem is an XFS filesystem. What utility should you use to accomplish this task?

  1. xfs_repair
  2. xfs_db
  3. xfs_repair
  4. xfs_repair -n
  5. xfs_admin
  6. xfs_fsr
A
  1. xfs_admin

The xfs_admin utility will allow you to change an XFS filesystem’s UUID through the use of the -U option.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following are filesystem mount points that should be on their own filesystem?

  1. /usr
  2. /etc
  3. /opt
  4. /var
  5. /tmp
  6. /usr/local
A
  1. /usr, 3. /opt, 4. /var, 5. /tmp AND 6. /usr/local

The /var, /tmp, /usr, /home, /opt, /boot, and /usr/local filesystem mount points should be on their own filesystem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following are filesystem mount points that should not be on their own filesystem?

  1. /usr
  2. /etc
  3. /opt
  4. /bin
  5. /sbin
  6. /usr/local
A
  1. /etc, 4. /bin AND 5. /sbin

The /etc, /sbin, /dev, /bin, and /lib filesystem mount points should NOT be on their own filesystem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is true concerning systemd mount unit files?

  1. systemd reads /etc/fstab at boot to creates mount unit files
  2. systemd mounts filesystems at system boot time
  3. View systemd mounted filesystems via systemctl show-units
  4. Customized mount unit files are in /etc/systemd/system/
  5. Mount unit files have the .mnt file extension
A
  1. systemd reads /etc/fstab at boot to creates mount unit files
  2. systemd mounts filesystems at system boot time
  3. Customized mount unit files are in /etc/systemd/system/

systemd reads /etc/fstab at boot to creates mount unit files on-the-fly, and mounts the filesystems. To view systemd mounted filesystems use the systemctl -t mount list-units command. Customized mount unit files are in /etc/systemd/system/ and mount unit files have the .mount file extension.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You need to check and repair an XFS filesystem. What utility should you use to accomplish this task?

  1. xfs_chk
  2. xfs_db
  3. xfs_repair
  4. xfs_repair -n
  5. xfs_admin
  6. xfs_fsr
A
  1. xfs_repair

The xfs_repair utility will allow you to check and repair an XFS filesystem. The xfs_repair -n command only performs checks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly