The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might he more than one correct answer. Choose all correct answers for each question.
1. | Which of the following commands would you issue to list the contents of a tar file specified by the argument <tarFile>?
|
|
2. | Which of the following commands has a built-in capability to perform incremental backups?
|
|
3. | Suppose your backup requires multiple tape volumes. Which of the following commands can you use?
|
|
4. | Suppose while issuing the ufsdump command you do not use the f option to specify the tape drive to which the files will be dumped. Which tape device will the ufsdump utility look for, by default?
|
|
5. | Assume you have the following weekly backup schedule by using the ufsdump command:
Your system crashed on a Wednesday afternoon before starting the Wednesday backup. Which set of tapes would you use to restore the data as fully as possible?
|
|
6. | Assume you have the following weekly backup schedule by using the ufsdump command:
Your system crashed on a Thursday afternoon before starting the Thursday backup. Which set of tapes will you use in order to restore the data as fully as possible?
|
|
7. | You want to make a backup of a file system without putting the system into single-user mode and unmounting the file system. Which of the following options allows you to do that?
|
|
8. | Which of the following files can the ufsdump command use to store or retrieve information?
|
|
9. | Which of the following are the necessary steps in restoring the root file system when your disk crashed and you added a new disk to the system?
|
|
10. | Which of the following files are created by the ufsrestore command?
|
|
11. | You are a system administrator for a marketing firm that is very busy during the day and is closed on Sundays. Which of the following is an appropriate backup strategy?
|
|
Answers
1. | þ D. The t option will display the names of the files in the archive. ý A is incorrect because the c option creates the archive file, and B is incorrect because the u option is used to add the files to the archive. C is incorrect because the x option is used to extract the files from the archive. |
2. | þ A. The ufsdump command has dump levels that you can use to make incremental backups. ý B, C, D, and E are incorrect because the tar, cpio, pax, and dd commands all lack a built-in mechanism for incremental backups. |
3. | þ A, C, and D. The cpio, pax, and ufsdump commands support multiple tape volumes. ý B is incorrect because the tar command does not support multiple tape volumes and can be used to back up files and subtrees to a single tape. |
4. | þ B. The default tape drive for the ufsdump command is the first tape device: /dev/rmt/0. ý A is incorrect because the first tape device is /dev/rmt/0, not /dev/rmt/1. C is incorrect because /dev/mt/0 is not the default backup device, and D is incorrect because there is no such device as /dev/tape/0. |
5. | þ C. You will need the last full backup, which is on tape0, along with all the files that have changed since then and were backed up, which are on tape1 and tape2. ý A and B are incorrect because tape3 and tape4 are from the previous week, before the last backup was taken. D is incorrect because some files may have changed after the last backup, and some of those files would be on tape1 and tape2. |
6. | þ C. You will need the last full backup which is on tape0 along with all the files that have changed since then and were backed up, which will be on tape3. ý A and B are incorrect because you do not need tape1 and tape 2; this is a differential backup. D is incorrect because some files may have changed and would have been backed up after the last backup; and all of those files would be on tape3. |
7. | þ B and C. First you make a snapshot of the file system, and then you can make a backup of the snapshot by using a suitable command, such as tar, cpio, or ufsdump. ý A is incorrect because to back up an active file system by using ufsdump, you need to unmount the file system. D is incorrect because there is no such command as ufssnap shot, and E is incorrect because the fssnap command takes the snapshot and stores it on the same disk. |
8. | þ A and B. The ufsdump command used with the u option updates the dump record by adding an entry to the /etc/dumpdates file, and the ufsdump command used with the w option warns by listing the file systems that have not been backed up within a day. This information is retrieved from the /etc/dumpdates and /etc/vfstab files. ý C and D are incorrect because there are no such files as dumplog or dumpinfo. |
9. | þ A, B, C, and D. Because your disk does not have the root file system, you cannot boot from the disk; you must boot from a CD or the network. You use the installboot command to install the boot blocks, and you issue the fsck command to check the consistency of the file system. You use the init 6 command to reboot the system from the disk. |
10. | þ C. The restoresymtable file is created and used by the ufsrestore command to checkpoint the restore. ý A and B are incorrect because there are no files named ufsrestore.log and ufssymtable created by the ufsrestore command. D is incorrect because the dumpdates file is maintained by the ufsdump command and not by ufsrestore. |
11. | þ D. The full backup on Sunday would allow you to reuse the last week's media for the next week's incremental backups. The nightly incremental backups would not interrupt the busy days and would take less time than full backups. ý A and B are incorrect because they would not provide protection against loss of data during weekdays. C is incorrect because it would disrupt the busy days of the firm, as the system would be down every morning for backup. |