The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might: be more than one correct answer. Choose all correct answers for each question.
1. | Which of the following commands would you use to display the available swap space?
|
|
2. | Which of the following commands would you use to list the current swap area on your system?
|
|
3. | Which of the following files must you modify so that the added swap space will be activated automatically each time the system is booted?
|
|
4. | If you want to share a resource, you would add the share command for that resource into which of the following files?
|
|
5. | Which of the following daemons are used by NFS 4.0?
|
|
6. | Which of the following commands displays the shared resources on the local server?
|
|
7. | Which of the following map files contain all the direct and indirect map names?
|
|
8. | What does the following line in the /etc/auto_master file on a client machine mean?
/share auto_share
|
|
9. | What is the name of the daemon that handles the mounting and unmounting requests from the autofs service?
|
|
10. | Which of the following are true statements about core files and crash dumps.
|
|
11. | Which of the following are the commands to manage core files and crash dump?
|
|
Answers
1. | þ C. The swap -s command displays the reserved swap space, allocated swap space, and available swap space. ý A and B are incorrect because the swap -a command activates the swap file and the swap -l command displays the device name for the swap space and the swap space size but not the available swap space. D is incorrect because the prtconf command displays the total amount of memory and the configuration of system peripherals but not the available swap space. |
2. | þ B. The swap -l command lists the current swap area on your system. ý A is incorrect because swap -a is used to add (activate) the swap area. C is incorrect because the swap -s command displays the reserved swap space, allocated swap space, and available swap space, but not the full path of the swap area. D is incorrect because the prtconf command displays the total amount of memory and configuration, of system peripherals but not the available swap space. |
3. | þ C. Each time the system is booted, the swapadd script reads the list of swap devices in the /etc/vfastab file to activate them. ý A, B, and D are incorrect because there are no files /etc/swapadd, /etc/swap, and /etc/swapconf that you need to change to make the swap area permanent. |
4. | þ B. The file systems listed in the /etc/dfs/dfstab file are automatically shared if the NFS server is running, because an entry in this file for a file system is actually a share command for that file system. ý A is incorrect because the /etc/dfs/sharetab file contains the list of the file systems currently being shared, but for a file system to be shared it must be entered in the /etc/dfs/dfstab file. C is incorrect because the /etc/default/nfs file contains the configuration information for the nfsd daemon, and D is incorrect because /etc/vfstab lists the file systems that are mounted automatically but are not necessarily shared. |
5. | þ A. The nfsd daemon handles the client requests for file systems. ý B, C, and D are incorrect because, unlike previous versions of NFS, NFS version 4 does not use the lockd, mountd, nfslogd, and statd daemons. |
6. | þ D. The dfshares command displays the list of shared resources. ý A is incorrect because the svcs command is used to display the status of the NFS service—that is, whether it's running or not. B is incorrect because there is no such command as nfsshare, and C is incorrect because the share command is used to share a resource and not to display the list of shared resources. |
7. | þ C. The /etc/auto_master file contains the names of all the indirect and direct map file names. ý A is incorrect because the /etc/aut_direct file contains the direct maps that are named in the auto_master file. B is incorrect because there is no such file as auto_indirect, but it could be named in the auto_master file. The same is true of the choices D and E. |
8. | þ A. Each indirect maps file must have its name declared in the auto_master file. ý B and D are incorrect because the auto_master file only defines the names of the direct and indirect maps files; it does not map directories between the clients and the servers. C is incorrect because the given entry is a valid entry for the auto_master file. |
9. | þ C. The automountd daemon on the client handles the mounting and unmounting requests from the autofs service ý A is incorrect because there is no daemon autofsd that handles requests from autofs. B is incorrect because the mountd daemon handles mount requests from remote systems. D is incorrect because autofs is not a daemon but a service managed by SMF. |
10. | þ B and C. When the system crashes it writes a copy of its physical memory to the dump device, reboots, and executes the savecore command, This command retrieves the data from the dump device and saves it in two files: unix.<n> and vmcore.<n>, where <n> specifies the dump sequence number. The files generated when a process terminates abnormally can have expanded names based on patterns involving process file names, node names, and so on. ý A is incorrect because a vmcore.<n> file is generated when the system crashes, not when a process terminates abnormally. D is incorrect because the utility that manages the core files is coreadm and its configuration file is coreadm.conf. |
11. | þ A and C. The coreadm command is used to manage the core files, whereas the dumpadm command is used to manage the crash dump information. ý B and D are incorrect because there are no commands named crashadm and dumpadmin. |