Beruflich Dokumente
Kultur Dokumente
stepping:3
cpuMHz:797.435
cachesize:256KB
fdiv_bug:no
hlt_bug:no
f00f_bug:no
coma_bug:no
fpu:yes
fpu_exception:yes
cpuidlevel:2
wp:yes
flags:fpuvmedepsetscmsrpaemcecx8apicsepmtrrpgemcacmovpatpse36mmxfxsr
sse
bogomips:1592.52
[root@stationroot]$cat/proc/meminfo
MemTotal:255184kB
MemFree:52280kB
Buffers:24436kB
Cached:90608kB
SwapCached:6532kB
...
SwapTotal:521632kB
SwapFree:504940kB
[root@stationroot]$cat/proc/scsi/scsi
Attacheddevices:
Host:scsi0Channel:00Id:00Lun:00
Vendor:ATAModel:ST9500325ASRev:0005
Type:DirectAccessANSISCSIrevision:05
Host:scsi1Channel:00Id:00Lun:00
Vendor:hpModel:DVDRAMGT30LRev:mP04
Type:CDROMANSISCSIrevision:05
Host:scsi4Channel:00Id:00Lun:00
Vendor:SanDiskModel:CruzerMiniRev:0.2
Type:DirectAccessANSISCSIrevision:02
Questions
1. In what directory are kernel modules found?
a. /lib/modules/kernelversion/
b. /boot/modules/
c. /usr/share/kernelversion/modules/
d. /var/lib/modules/
2. What command is used to request the removal of a module?
a. depmodx
Kernel and Kernel Modules
rha130-6.1-1 22 Copyright 2011, Red Hat Inc.
b. modulesr
c. modprober
d. rm/proc/modules
An administrator attempts to remove a module by running the following command.
[root@stationroot]#modprobercdrom
cdrom:Deviceorresourcebusy
boottime?
a. /etc/sysctl.conf
b. /etc/proc.conf
c. /etc/sysconfig/proc
d. /etc/systab
9. After editing the file mentioned in the previous question, what command can be run to immediately
implement the changes?
a. procctls
b. kernelctli
c. setproc
d. sysctlp
10. Within the configuration file mentioned above, which of the following lines would correctly set
the value of /proc/sys/net/ipv4/ip_forwardto 1?
a. proc.sys.net.ipv4.ip_forward=1
b. net.ipv4.ip_forward=1
c. ip_forward=1
d. sys.net.ipv4.ip_forward=1
Questions
1. Which of the following commands conveniently lists all connected PCI devices?
a. listpci
b. pcidump
c. dmesg
d. kudzu
e. lspci
Use the following transcript to answer the next 2 questions.
[root@stationroot]$cat/proc/interrupts
CPU0
0:29957960XTPICtimer
1:78565XTPICkeyboard
2:0XTPICcascade
5:75302119XTPICeth0
8:1XTPICrtc
9:0XTPICIntelICH82801AA
PCI Devices
rha130-6.1-1 30 Copyright 2011, Red Hat Inc.
11:198578XTPICusbuhci,eth1
14:258317XTPICide0
15:20398XTPICide1
NMI:0
ERR:0
2. About how long has the system been running (since the last boot)?
a. About 30,000 seconds (about 8 hours)
b. About 20,000 seconds (about 5 hours)
c. About 10,000 seconds (about 3 hours)
d. About 10 days
e. Not enough information is provided
3. What about the above output implies a misconfiguration of the machine?
a. There are no NMI interrupts reported.
b. Two device drivers are conflicting over IRQ 11.
c. No device drivers have claimed IRQ's 4-7.
d. Only one CPU has been identified.
e. None of these conditions necessarily imply problems.
9. Which kernel module is the device driver for the network interface card associated with the
interface eth0?
a. Network interface device drivers are always compiled into the static kernel image.
b. usb-uhci
c. i810_audio
d. 8139too
e. Not enough information is provided.
10. file lists modules loaded on the system?
a. /proc/devices
b. /proc/modules/devices
c. /proc/hw
d. /proc/lsmod
e. /proc/hwdevices
Questions
1. What two types of filesystem device nodes exist in Linux?
a. character and block device nodes
b. major and minor device nodes
c. hard and soft device nodes
d. hot and cold device nodes
e. None of the above
Use the following transcript to answer the next 3 questions.
[root@stationroot]$lsl/dev/fd?
brwrw1rootfloppy2,0Jan302003/dev/fd0
brwrw1rootfloppy2,1Jan302003/dev/fd1
brwrw1rootfloppy2,2Jan302003/dev/fd2
brwrw1rootfloppy2,3Jan302003/dev/fd3
brwrw1rootfloppy2,128Jan302003/dev/fd4
brwrw1rootfloppy2,129Jan302003/dev/fd5
brwrw1rootfloppy2,130Jan302003/dev/fd6
brwrw1rootfloppy2,131Jan302003/dev/fd7
Questions
1. What is the name of the utility which displays a dynamically updated list of processes currently
running on the machine, as well as CPU and memory utilization statistics?
a. top
b. monitor
c. vmstat
d. ps
e. None of the above
Use the following transcript to answer the next 2 questions.
[root@stationroot]$uptime
05:06:00up3days,12:25,2users,loadaverage:0.89,3.25,8.87
9. On average, how many processes have been running for the past few minutes?
a. 0
b. 2
c. 5
d. 87
e. Not enough information is provided
10. Which of the following best describes the type of activity on the local machine?
a. The machine is predominantly idle, without many processes running.
b. The machine is predominantly running processes which involve a lot input and output from
the filesystem.
c. The machine is predominantly running processes which involve a lot of numeric computation.
d. None of the above describe the machine's activity.
Linux
Filesystem Management
Questions
Use the output from the following command to answer the next question.
[root@stationroot]$cat/proc/partitions
majorminor#blocksname
nguseaveq
808891650sda
81136521sda1
823502170sda2
832096482sda3
841sda4
852096451sda5
1. Which of the following best explains why the partition sda4 is listed in /proc/partitions
with only a size of 1?
a. The partition has been initialized with a filesystem, but the filesystem is not mounted.
b. The partition is being used as the extended partition, and therefore is not accessed directly.
c. The partition has been initialized as swap space, but there has not yet been a high demand
placed on physical memory.
d. The disk has not yet had a partition sda4 allocated.
e. None of the above
2. Which of the following partitions could be an extended partition?
a. /dev/sda7
b. /dev/sdb5
c. /dev/sdb4
d. /dev/sdc8
e. None of the above
3. Which of the following would be a logical partition?
a. /dev/sda3
b. /dev/sda5
c. /dev/sdb1
d. /dev/sdb4
e. None of the above
4. Which of the following commands would list all known partitions?
a. fdisk --dump
b. dumppart
c. fdisk -cul
d. fdisk --list
e. None of the above
5. Which of the following commands could be used to add the partition /dev/sda8?
a. fdiska/dev/sda8
b. fdiskcu/dev/sda8
c. fdiskl/dev/sda8
d. fdiskadd/dev/sda8
e. None of the above
6. Assuming that the system Id's indicate the true use of the partitions, approximately how much
partition space is allocated to swap space?
a. 128 megabytes
b. 520 megabytes
c. 8.4 gigabytes
d. 5.5 megabytes
e. Not enough information is provided
7. Approximately how much space is left unallocated on the drive /dev/sdb?
a. 0
b. 420 megabytes
c. 8.4 gigabytes
d. 84 megabytes
e. Note enough information is provided
8. The administrator wants to use the space is left unallocated on the drive /dev/sdb. What options
are avaialble?
a. A new ext4 filesystem can be created with the remaining space
b. A new extended partition can be created with the remaining space
c. One or more new logical partitions can be created with the remaining space
d. The remaining space is not available for use
e. Note enough information is provided
9. After editing the partition table with fdisk, what action must (usually) be taken for the kernel to
recognize the new partitions?
a. The machine must be rebooted.
b. The new partition should be added to /proc/partitionswith a text editor.
c. The partprobe command should be run.
d. None of the above
e. Either A or C
10. Which of the following fdisk commands is used to abandon all changes?
a. a
b. q
c. x
d. w
e. z
Questions
1. Which of the following filesystems is usually associated with compact disks?
a. ext3
b. iso9660
c. reiserfs
d. vfat
e. None of the above
2. Which of the following commands could be used to create an ext3 filesystem?
a. mkfs.ext3
b. mkfs -t ext3
c. mke2fs -j
d. mkfs.ext2 -j
e. All of the above
3. Which of the following command lines could be used to create an ext2 filesystem with a blocksize
of 2048 bytes?
a. mke2fsb2048/dev/sda4
b. mke2fs/dev/sda4
c. mke2fsb2k/dev/sda4
d. mke2fsb2/dev/sda4
e. A and B
Use the following transcript to answer the next 2 questions.
[root@stationroot]#dumpe2fs/dev/sdb5
dumpe2fs1.39(29May2006)
Filesystemvolumename:/home
Lastmountedon:<notavailable>
FilesystemUUID:4a26ac4afcd94231bf3ae5e5fb2456b5
Filesystemmagicnumber:0xEF53
Filesystemrevision#:1(dynamic)
Filesystemfeatures:has_journalfiletypeneeds_recoverysparse_super
Defaultmountoptions:(none)
Filesystemstate:clean
Errorsbehavior:Continue
FilesystemOStype:Linux
Inodecount:3842720
Blockcount:7681070
Reservedblockcount:384053
Freeblocks:1150544
Freeinodes:3597708
Firstblock:0
Blocksize:4096
Fragmentsize:4096
Blockspergroup:32768
Fragmentspergroup:32768
Inodespergroup:16352
Inodeblockspergroup:511
Lastmounttime:SunOct513:59:312003
Lastwritetime:SunOct513:59:312003
Mountcount:74
Maximummountcount:1
Lastchecked:FriSep1909:16:202003
Checkinterval:15552000(6months)
Nextcheckafter:WedMar1708:16:202004
Reservedblocksuid:0(userroot)
Reservedblocksgid:0(grouproot)
Firstinode:11
Inodesize:128
JournalUUID:<none>
Journalinode:8
Journaldevice:0x0000
Firstorphaninode:0
4. Which of the following command lines could have created this filesystem? (Assume that the
filesystem has not been modified with tune2fs since it was created.)
a. mke2fsL/homeb2048/dev/sdb5
b. mkfs.ext3b2048/dev/sdb5
c. mkfstext2b4096/dev/sdb5
d. mke2fsjL/homeb4096N3842720/dev/sdb5
e. None of the above
5. When creating this filesystem, which of the following would be the appropriate argument to the -i
command line switch to the mke2fs command to generate the appropriate number of inodes?
a. -i 2
b. -i 4096
c. -i 8192
d. -i 4
e. None of the above
6. When formatting a floppy with the mke2fs command, why might one be tempted to include the
-m 0 command line switch?
a. Because journaling would be too slow on a floppy, this command line switch would disable
journaling.
b. The command line switch would prevent any blocks being reserved for only the root user.
c. The command line switch would set the number of inodes to 0, which is appropriate for
temporary media such as floppies.
d. The command line switch would cause the floppy to be overwritten with binary 0's before the
filesystem is constructed, wiping clean any previous data.
e. None of the above
7. Which of the following command lines would create a filesystem with a volume label of data?
a. mkfse2 -l data /dev/sda1
b. mkfs.ext2 --label=data /dev/sda1
c. mkfs.ext2 -m data /dev/sda1
d. mkfs -t ext2 -L data /dev/sda1
e. None of the above
8. Which of the following command lines would create an ext4 filesystem with a block size of 4096?
a. mke2fs --journal --block=4096 /dev/sda1
b. mkfs.ext4 -b 4k /dev/sda1
c. mkfs -t ext2 -j -b4 /dev/sda1
d. mkfs -t ext4 --block=4k /dev/sda1
e. None of the above
9. Which of the following command line switches causes the mke2fs command to check the disk for
bad blocks before creating a filesystem?
a. -L
b. -c
c. -b
d. -s
e. None of the above
10. Your friend has just run the dumpe2fs command on his /homefilesystem, and noticed that the
flag needs_recovery was set. What advice would you give him?
a. He should reboot his machine immediately.
b. When convenient, he should unmount the partition, and perform filesystem maintenance.
c. He should not be concerned, as the flag is always set on mounted filesystems.
d. He should not be concerned, as the Linux kernel automatically runs a filesystem recovery
algorithm every 10 minutes.
e. You do not believe him, and suspect he ran the dumpe2fs command on a partition that does
not contain an ext2 filesystem.
Questions
1. Which of the following could be a legitimate invocation of the mount command?
a. mountt/dev/sda2/home
b. mount/home/dev/sda2
c. mount/dev/sda2/home
d. mounto/home/dev/sda2
e. None of the above
2. Which of the following command lines would mount the device /dev/sda3, formatted with the
vfat filesystem, to the mount point /dosc?
a. mountovfatd/dev/sda3/dosc
b. mounttvfat/dev/sda3/dosc
c. mounttvfato/dosc/dev/sda3
d. mountovfat/dosc/dev/sda3
e. None of the above
3. Which of the following is not a common Linux mount option?
a. mtime
b. noatime
c. noexec
d. ro
e. All are common mount options
Use the following transcript to answer the next 3 questions.
[root@stationroot]#mount
/dev/sda3on/typeext4(rw)
procon/proctypeproc(rw)
sysfson/systypesysfs(rw)
devptson/dev/ptstypedevpts(rw,gid=5,mode=620)
/dev/sda1on/boottypeext4(rw)
tmpfson/dev/shmtypetmpfs(rw)
noneon/proc/sys/fs/binfmt_misctypebinfmt_misc(rw)
sunrpcon/var/lib/nfs/rpc_pipefstyperpc_pipefs(rw)
[root@stationroot]#mount/dev/sda7/var
[root@stationroot]#mount/dev/sda5/var/www/html
[root@stationfloppy]#umount/mnt/floppy
umount:/mnt/floppy:deviceisbusy
7. Which is the most likely reason the /mnt/floppy device was considered busy?
a. The kernel had not yet finished writing the file september.txt.
b. Although the kernel had finished writing the file september.txt, the writes had not yet
been committed to disk.
c. The filesystem on the /mnt/floppydevice has become corrupted.
d. The bash shell's current working directory is /mnt/floppy.
e. None of the above
8. Which of the following commands would resolve the problem, so that if it were immediately
followed by the same umount command listed above, the unmount would succeed?
a. fuserm/mnt/floppy
b. fsckm/mnt/floppy
c. sync
d. cd
e. None of the above
9. Which of the following command lines would add the noatime option to an already mounted /
homepartition?
a. mountonoatime/dev/sda4/home
b. mountanoatime/dev/sda4/home
c. mountremountonoatime/dev/sda4/home
d. mountoremount,noatime/dev/sda4/home
e. None of the above
Use the following transcript to answer the next question.
[root@stationroot]#mount
/dev/sdb6on/typeext4(rw)
noneon/proctypeproc(rw)
usbdevfson/proc/bus/usbtypeusbdevfs(rw)
/dev/sdb7on/var/ftp/pubtypeext4(rw)
/dev/sdb5on/hometypeext4(rw)
noneon/dev/ptstypedevpts(rw,gid=5,mode=620)
noneon/dev/shmtypetmpfs(rw)
10. Which of the following command lines could be used to unmount the /homepartition?
a. unmount/home
b. umounttext3
c. umount/dev/sdb5
d. unmounta
e. None of the above
Questions
Use the following transcript to answer the next 5 questions.
[root@stationroot]#cat/etc/fstab
LABEL=//ext4defaults11
LABEL=/var/ftp/pub/var/ftp/pubext4defaults12
LABEL=/home/homeext4defaults12
LABEL=/boot/mnt/bootext4defaults,noauto12
/dev/sda5/dosvfatdefaults,noauto,user02
devpts/dev/ptsdevptsgid=5,mode=62000
proc/procprocdefaults00
sysfs/syssysfsdefaults00
tmpfs/dev/shmtmpfsdefaults00
LABEL=SWAPsdb2swapswapdefaults00
/dev/fd0/media/floppyautouser00
1. Which of the following mount points would not be used by a mount -a command?
a. /var/ftp/pub
b. /dev/pts
c. /home
d. /dos
e. All of the above mount points would be used.
2. Which of the following command lines would attempt to mount the /dev/sda5partition?
a. mount/dev/sda5
b. mount/dos
c. mount/dev/sda5/mnt/dos
d. All of the above
e. A and B only
3. Which of the following command lines would attempt to mount a filesystem to the /mnt/boot
directory?
a. mounta
b. mount/boot
c. mountL/boot
d. A and C
e. None of the above
4. What is the most likely reason that the third column of the last line contains the word auto?
a. Because a FAT or ext2 or otherwise formatted floppy could be inserted into the drive, the
filesystem type should be probed for each mount.
b. When a floppy is inserted into the drive, the filesystem should be automatically mounted.
c. Upon bootup, the system should attempt to mount the floppy automatically.
d. The auto filesystem is the most common filesystem used on floppy drives.
e. None of the above adequately explain the configuration.
5. What users would be able to mount the device /dev/fd0?
a. Only root may perform mounts.
b. Any user logged in physically at the console (and root).
c. Any user on the system.
d. The current owner of the directory /mnt/floppy(and root).
e. None of the above.
6. What does the noauto mount option imply?
a. The filesystem should not be managed by an automounting daemon.
b. The filesystem should not be automatically mounted whenever a file within the filsystem is
references.
c. The filesystem should not be mounted as part of the system startup process.
d. The line should not be automatically removed from the configuration file if the underlying
partition is deleted.
e. None of the above
7. What command could be used to create the label referred to by the LABEL=syntax in the /etc/
fstabfile?
a. mke2fs
b. fdisk
c. mount
d. fuser
e. None of the above
Use the following transcript to answer the next 3 questions.
[root@stationroot]$cat/etc/fstab
/dev/sda6/ext4defaults11
/dev/sda2/bootext4defaults12
devpts/dev/ptsdevptsgid=5,mode=62000
proc/procprocdefaults00
sysfs/syssysfsdefaults00
tmpfs/dev/shmtmpfsdefaults00
/dev/sda1tmpext4defaults12
/dev/sda3/varext4defaults12
/dev/sda4/var/dataext4defaults11
8. What is suspicious about the first column of this file, which leads you to believe that there must
be some mistake?
a. A logical partition is being used as the root partition, which is not allowed.
b. A device of type "none" is being mounted to the /procpartition, which makes no sense.
c. All of the partitions are being mounted from a single drive.
d. There is a jump from 4 to 6 in the listed partitions, with no mention of partition number 5.
e. The file implies that all 4 primary partitions contain a filesystem, but a logical partition exists
as well.
9. What is suspicious about the second column of this file, which leads you to believe that there must
be some mistake?
a. Partitions are configured to be mounted to both /var/dataand /var, but partitions may
only be mounted to directories contained by the root partition.
b. The mount point tmpis specified as a relative reference.
c. Filesystems are configured to be mounted to directories in the /devdirectory, but the /dev
directory may only contain device nodes.
d. A partition is configured to be mounted to /, but only the kernel may mount the root partition.
e. A filesystem is configured to be mounted to /proc, but the kernel automatically mounts /
procas part of its bootup process.
10. What is suspicious about the last column of this file, which leads you to believe that there must
be some mistake?
a. The column contains the value 0, when only the values greater than 0 are allowed.
b. The column contains multiple entries for the value "2", which will result in an error when the
fsck command tries to decide which to check first.
c. The column contains the value "2", when only the values 1 and 0 are meaningful.
d. The last column only exists for legacy reasons, so the fact that it contains non-zero values is
suspect.
e. The column contains multiple entries for the value "1", when the value 1 is only supposed to
be used for the root partition.
Questions
1. What is the threshold amount of physical memory, above which allocating swap space is no longer
recommended?
a. 128 megabytes
Managing Swap Space
rha130-6.1-1 59 Copyright 2011, Red Hat Inc.
b. 256 megabytes
c. 512 megabytes
d. 1 gigabyte
e. A swap partition should always be created, no matter how much physical memory is available.
2. Which of the following files lists currently active swap partitions?
a. /proc/swaps
b. /etc/fstab
c. /var/state/swap
d. /etc/swaptab
e. None of the above
3. Which file is used to define swap partitions which should be activated automatically as the system
boots?
a. /etc/swaptab
b. /etc/fstab
c. /proc/swaps
d. /var/state/swap
e. none of the above
4. What command line would be used to initialize a disk partition to be used as swap space?
a. swapinit/dev/sda3
b. mkswap/dev/sda3
c. mkfstswap/dev/sda3
d. fdisk/dev/sda3
e. None of the above
5. What command line would be used to initialize a file to be used as swap space?
a. mkswap/tmp/swapfile
b. mkswapf/tmp/swapfile
c. swapinitf/tmp/swapfile
d. mkswapfile/tmp/swapfile
e. None of the above
6. ext3 is to mount as swap is to ....
Managing Swap Space
rha130-6.1-1 60 Copyright 2011, Red Hat Inc.
a. swapon
b. mkswap
c. swaps
d. swapoff
e. startswap
7. Which of the following lines could be used to define a swap area that should be activated at system
startup in the /etc/fstabfile?
a. /dev/sda4swapswapdefaults00
b. swap/dev/sda4swapdefaults00
c. /tmp/swapfileswapswapnoauto00
d. /tmp/swapfilenonenonedefaults00
e. None of the above
8. Which of the following commands is used to deactivate a swap area?
a. swapstop
b. umount
c. uswap
d. swapoff
e. None of the above
9. Which of the following command lines could be used to activate a swap partition with a priority
of 3?
a. mkswapp3/dev/sda3;swapon/dev/sda3
b. swap/dev/sda33
c. mounttswapopri=3/dev/sda3
d. swaponp3/dev/sda3
e. none of the above
10. Which of the following commands could confirm that a swap partition is active with a priority of 3?
a. cat/proc/swaps
b. cat/proc/meminfo
c. top
d. cat/proc/slabinfo
e. A and B
Questions
1. Which of the following command lines could be used to check and repair an ext2 filesystem?
a. fsck/dev/sda3
b. fscktext2/dev/sda3
c. fsck.ext2/dev/sda3
d. e2fsck/dev/sda3
e. All of the above
2. Which of the following command lines could be used to assign the label /data to an ext2 filesystem?
a. e2label/data/dev/sda3
b. e2labelL/data/dev/sda3
c. e2label/dev/sda3/data
d. labeltext2/dev/sda3/data
e. None of the above
The remaining questions refer to the following scenario.
You have just attached a newly purchased drive to an already existing Red Hat Enterprise Linux
installation. Using only the tools discussed in this Workbook, you would like to create 6 ext4 filesystems,
each mounted to the directories /data1, /data2, ..., /data6, and a 256 megabyte swap partition. You
would like all 6 partitions to be mounted and the swap area to be activated automatically at bootup.
3. Which of the following commands could you get away with not using?
a. e2label
b. mkswap
c. fdisk
d. mount
e. All of the above commands are required.
4. What is the most reasonable ordering for the commands you will use?
a. mke2fs, mkswap, fdisk, mount, swapon
b. fdisk, swapon, mkswap, mke2fs, mount
c. mount, fdisk, mke2fs, mkswap, swapon
d. fdisk, mke2fs, mkswap, mount, swapon
e. mkswap, swapon, mke2fs, mount, fdisk
5. At least how many logical partitions will need to be used?
a. 1
b. 2
c. 3
d. 4
e. 5
6. Which of the following command lines could be used to create an ext4 filesystem on the first logical
partition, and assign it the label /data3?
a. mkfs.ext4L/data3/dev/sdd5
b. mkfs.ext4/dev/sdd5;e2label/dev/sda5/data3
c. mkfs.ext4/dev/sdd5;tune2fsL/dev/sda5/data3
d. All of the above
e. None of the above
7. Once the ext4 filesystems have been created, and are all mounted, you decide that you would like
the filesystem on partition /dev/sdd2 to be an ext3 filesystem instead. Which command line could
be used to convert the filesystem to ext3 (without losing any data already in the filesystem)?
a. tune2fsj/dev/sdd2
b. umount/dev/sdd2&&mkfs.ext3/dev/sdd2
c. umount/dev/sdd2&&tune2fsj/dev/sdd2
d. umount/dev/sdd2&&mke2fsj/dev/sdd2
e. An ext4 filesystem cannot be reverted to an ext2 or ext3 filesystem
8. You decide that you would like to check and repair the filesystem on partition /dev/sdd3. You
unmount the partition. What command could you run next to perform the check?
a. swapoff/dev/sdd3
b. fsck.vfat/dev/sdd3
c. fisk/dev/sdd3
d. fsck/dev/sdd3
e. None of the above
9. The check and repair utility used above mentions that it has restored some file, but could not find
names for. Where should you look for these files?
a. The /lost+founddirectory in your root partition.
b. The lost+founddirectory in the repaired filesystem's root directory.
c. The /proc/lost+founddirectory.
d. The /tmp/lost+founddirectory.
e. None of the above
10. You realize that your previously installed Red Hat Enterprise Linux system had not used the
ext3 filesystem. After successfully converting your new ext2 filesystem to ext3, what additional
command should be run?
a. ext3init
b. kudzu
c. mkinitrd
d. setup
e. mkext3
Questions
1. Which of the following could be an appropriate reference to one of the volume group vg0's physical
volumes?
a. /dev/vg0/lv1
b. /dev/vg0/hda1
c. /dev/lv1/sda3
d. /dev/sdb3
e. None of the above
2. Which of the following would be an appropriate reference to the logical volume lv1?
a. /dev/lvm/lv1
b. /dev/vg0/lv1
c. /dev/lv1
d. /dev/hda1
e. None of the above
3. Which of the following commands is used to initialize an lvm physical volume?
a. mkpv
b. mklvm -p
c. pvmake
d. pvcreate
e. None of the above
4. What is the name of the granular unit which is used to structure the assignments of disk space to
logical volumes within a volume group?
a. sector
b. physical extent
c. block
d. chunk
e. stripe
5. Which command is used to add a physical volume to an already existing volume group?
a. vgextend
b. vggrow
c. vgadmin
d. pvcreate
e. None of the above
Use the output of the following command to answer the next two questions.
[root@station]pvdisplay/dev/sdb1
Physicalvolume
PVName/dev/sdb1
VGNamevg0
PVSize37.16GB[7792848secs]/NOTusable4.1MB[LVM:165KB]
PV#1
PVStatusavailable
Allocatableyes
CurLV6
PESize(KByte)4096
TotalPE9511
FreePE2
AllocatedPE9509
PVUUIDptzILnvnWASmcNfu2mBsjtMUO667tjDT
6. What is the name of the volume group to which this physical volume has been contributed?
a. /dev/sda2
b. ptzILn-vnWA-SmcN-fu2m-Bsjt-MUO6-67tjDT
c. vg0
d. Not enough information is provided.
7. What is the size of the physical extents for the physical volume?
a. 1 kilobyte
b. 4 kilobytes
c. 9511 kilobytes
d. 4 megabytes
e. Not enough information is provided.
Use the output of the following command to answer the next two questions.
[root@station]vgdisplayvg0
Volumegroup
VGNamevg0
VGAccessread/write
VGStatusavailable/resizable
VG#0
MAXLV256
CurLV6
OpenLV5
MAXLVSize255.99GB
MaxPV256
CurPV1
ActPV1
VGSize37.15GB
PESize4MB
TotalPE9511
AllocPE/Size9509/37.14GB
FreePE/Size2/8MB
VGUUIDGonJxdGLBDXFWC2zuUJM8Qisye3B345B
10. Which of the following can be created at install time using the Red Hat Enterprise Linux installer?
a. Physical volumes
b. Volume Groups
c. Logical Volumes
d. A and C
e. A, B and C
Questions
1. Which of the following can be encrypted with LUKS?
a. ext4 filesystems
b. swap partitions
c. msdos filesystems
d. Answers A and B
e. All of the above
2. Which of the following devices can be encrypted with LUKS?
a. Physical partitions
b. NFS mounts
c. Logical volumes
d. Answers A and C
e. All of the above
3. Which is the correct order for preparing an encrypted device?
a. Create the partition, format for encryption, unlock the partition, create a filesystem, mount
the filesystem
b. Create the partition, create a filesystem, encrypt the filesystem, unlock the partition, mount
the filesystem
c. Create the partition, unlock the partion, create the filesystem, mount the filesystem, encrypt
the filesystem
d. Create the partition, create the filesystem, mount the filesystem, unlock the partition, encrypt
the filesystem
e. Create the partition, format for encryption, mount the device, create the filesystem, unlock
the filesystem
4. Which command encrypts the device?
a. cryptsetup formatLuks
b. cryptsetup lockLuks
c. cryptsetup luksFormat
d. cryptsetup isLuks
e. cryptsetup luksClose
5. Which command is used to manually unlock an encrypted device?
a. cryptsetup luksFormat
b. cryptsetup unlockLuks
c. cryptsetup luksUnlock
d. cryptsetup luksOpen
e. cryptsetup isLuks
6. What file holds the mappings for encrypted devices?
a. /etc/crypttab
b. /etc/lukstab
c. /etc/fstab
d. /etc/sysconfig/crypt
e. /etc/sysconfig/luks