Review Questions and Answers

1. 

Which of the following file systems is managed by the Process File System? (Choose all that apply).

  1. /tmp

  2. /var

  3. /proc

  4. /process

c. the process file system (procfs) manages the /proc file system. it does not manage the /tmp or /var file systems. the /process file system does not exist by default.

2. 

You are mounting a remote file system to which you will have Read and Write access. Which of the following options are recommended when you mount this file system locally? (Choose all that apply.)

  1. soft

  2. hard

  3. intr

  4. nointr

b, c. when mounting a file system to which you'll have read and write access, you should always mount the file system hard and intr . this allows you more control over the mounting process, reduces the chance of file corruption on the nfs server, and enables you to kill hung processes with keyboard interrupts.

3. 

You are configuring an NFS server for your network. When you share the /docs file system, you use the following command:

 # share -F nfs -o anon=-1 sec=none /docs 

When users attempt to mount the file system, they are unable to. What is the cause of the problem?

  1. Users attempting to mount the file system need to use the ID of - 1 when mounting the shared file system.

  2. Users attempting to mount the file system need to ensure that their computers are configured to use no security authentication.

  3. When you shared the file system, you failed to include the computers that are allowed to mount the file system.

  4. When you shared the file system and set sec=none, you forced users to use no authentication. Because you set anon=-1, anonymous access is disabled.

d. this is an example of using options that cause problems when used together. the anon=-1 option sets the user id for anonymous users to - 1, which is an invalid uid. therefore, anonymous access is prohibited. at the same time, you set sec=none , which means that no security is enforced, and the system classifies the user as an anonymous user.

4. 

You have just added additional swap space to your Solaris server. Which of the following can you do to ensure that the swap space is automatically available upon subsequent reboots?

  1. Use the swapadd -a command to ensure that the swap space is available upon reboot.

  2. Use the swap -a command to ensure that the swap space is available upon reboot.

  3. Add an entry for the new swap space into the /etc/vfstab file.

  4. Swap space must be added to the original swap file. Therefore, no additional action is necessary to make the new swap space available upon subsequent reboots.

c. to make additional swap space available, you can add an entry in the /etc/vfstab file. the swap -a command is used to activate a file as swap space. the swapadd command does not exist.

5. 

Which of the following statements best describe front and back file systems? (Choose all that apply.)

  1. A front file system is located on the local computer, and a back file system is located on a remote computer.

  2. A front file system is located on a remote computer, and a back file system is located on the local computer.

  3. A front file system contains cached copies of files, and a back file system contains the original files.

  4. A front file system contains the original files, and a back file system contains cached copies of files.

a, c. front file systems and back file systems are terms used with the cachefs file system. the front file system is on the local computer and contains cached copies of files. the back file system is located on a remote computer (or it can be a slow local device, such as a cd-rom) and contains the original files.

6. 

You are the Solaris administrator for your company. Your Solaris server crashed during the evening and has rebooted automatically. Which of the following commands can you use to manage the file created (the output of system memory) when the server crashed?

  1. crashadm

  2. dumpadm

  3. coreadm

  4. dumpmem

b. the dumpadm command is used to manage crash dump files. the coreadm command is used to manage core files, but core files are generated when an application crashes, not when the system experiences a critical error and solaris crashes. the crashadm and dumpmem commands do not exist.

7. 

What is the full path and filename of the NFS server's logging daemon?

  1. /etc/nfs/nfslog.conf

  2. /etc/default/nfslogd

  3. /usr/lib/nfs/nfslogd

  4. /etc/nfs/nfslogtab

c. the /usr/lib/nfs/nfslogd file is the nfs logging daemon. the nfslog.conf and /etc/default/nfslogd files are for configuring nfs logging behavior. the /etc/nfs/ nfslogtab file is a table containing information for analyzing nfs logs by the nfslogd daemon.

8. 

You are using AutoFS on your client computers. Which of the following files no longer needs to be checked to mount file systems, because its functionality is replaced by the automounter?

  1. /etc/mnttab

  2. /etc/vfstab

  3. /etc/inittab

  4. /etc/autotab

b. if you are using the automounter, the computer does not need to read the /etc/vfstab file to mount virtual file systems. the /etc/inittab file is still needed for system initialization, and the /etc/mnttab file is still required to mount local file systems. the /etc/autotab file does not exist.

9. 

You are configuring the automounter on your client computer. Which of the following types of maps provides mapping of a mount point to a specific directory?

  1. AutoFS

  2. Direct

  3. Indirect

  4. Master

b. a direct map configures a specific map point to a directory on a server.

10. 

You have just created an additional Cache File System on your Solaris workstation named /fastcache. When you run the cachefsstat command, you receive the following message:

 cachefsstat: /fastcache: not a cachefs mountpoint 

What is the most likely cause of the problem?

  1. The file system was not mounted in the cache.

  2. The file system was mounted in the cache but was not activated. Run the cache command to activate it.

  3. The file system was mounted in the cache but was not activated. Reboot your computer to activate it.

  4. The cachefsstat command recognizes only the default cache created during system installation and will not recognize additional Cache File Systems.

a. the cachefsstat command displays statistics about cache file systems. if the command tells you that the mount point you entered is not a cache mount point, it's likely that the file system was not properly mounted as a cache file system. if this file system is supposed to be cache, unmount it, and remount it by using the mount command.

11. 

You are configuring the automounter for your Solaris computer. Which of the following is the name of the default direct automount map?

  1. /etc/auto_direct

  2. /etc/auto_master

  3. /etc/master_auto

  4. /etc/direct_auto

  5. /etc/direct

a. the default direct automount map is named /etc/auto_direct . the master map is named /etc/auto_master .

12. 

Which of the following commands do you use to create a new file to be used as swap space?

  1. swap

  2. swapadd

  3. mkfs

  4. newfs

  5. touch

  6. mkfile

f. the mkfile command is used to create the file you want to use as swap space. after the file is created, you use the swap -a command to activate the file as swap space.

13. 

One of your applications has been crashing intermittently, and you want to examine the perprocess core files generated. The application is installed in the /app1 directory. Which of the following directories should you go to examine the per-process core files?

  1. /app1

  2. /var/tmp

  3. /corepath

  4. The current working directory

d. per-process core files are created in the current working directory.

14. 

You have shared your /docs file system manually by using the share command. Now you want to stop sharing the file system. Which of the following commands is explicitly used to stop the sharing of file systems?

  1. share -d /docs

  2. ushare /docs

  3. unshare /docs

  4. umount /docs

c. the unshare command is used to stop the sharing of shared file systems. the share command shares file systems, umount unmounts file systems, and the ushare command does not exist.

15. 

You are configuring the automounter on your Solaris workstation. Which of the following commands would you use to adjust to 10 minutes the amount of time an idle file system remains mounted?

  1. automount -t 600

  2. automount -t 10

  3. automountd -t 600

  4. automountd -t 10

  5. You cannot adjust the time that an idle file system will remain mounted.

a. the automount command is used to adjust this time. the -t option is used, and the time must be specified in seconds.

16. 

You are the Solaris administrator for your company. You are presented with the following information from an /etc/dfstab file:

 share -F nfs /export share -F nfs -o ro log -d "phone lists" /data/phlist 

Provided you are using NFS logging with default settings, which of the following directories will contain the log file for the /data/phlist file system? (Choose all that apply.)

  1. The default local log file as specified in the /etc/nfs/nfslog.conf file.

  2. The default global log file as specified in the /etc/nfs/nfslog.conf file.

  3. The default global log file as specified in the /etc/default/nfslogd file.

  4. /var/log

  5. /var/nfs

  6. It's impossible to determine the log file location based on the provided information.

b, e. in the share command for the /data/phlist command, the log option does not have a tag; therefore, it uses the default global log file as specified in the /etc/nfs/nfslog.conf file. by default, this file is located in /var/nfs and is named nfslog .

17. 

You are planning on adding additional swap space to your Solaris workstation. Which of the following is a valid reason for logging in as the superuser to create the swap space?

  1. Only the superuser can create additional swap space.

  2. Creating additional swap space as the superuser prevents accidental overwrite and deletion of the swap file.

  3. Swap space must be created in the swap partition, and only the superuser has access to the swap partition.

  4. There is no valid reason to log in as superuser to create additional swap space.

b. regular `non-superuser` users can create swap space. however, to prevent accidental overwriting of the new swap space, sun recommends that you create the new swap space while logged in as the superuser.

18. 

You are the Solaris administrator for your network. On a client machine, you have just made changes to the master automount map. What do you need to do to effect the changes you just made?

  1. autofs

  2. automount

  3. automountd

  4. /etc/init.d/autofs stop

    /etc/init.d/autofs start

d. after you make changes to a master or direct automount map, you must stop and restart the autofs service for the changes to take effect. this is done with the autofs stop and autofs start commands from the /etc/init.d directory.

19. 

You are the Solaris server administrator for your company. On your server, you notice multiple unix.X and vmcore.X files. Which of the following events cause the creation of these two types of files?

  1. Crash dumps

  2. Core file generation

  3. Creating additional virtual memory

  4. Failed attempts to mount shared file systems

a. the unix. x and vmcore. x files are the two files that make up a crash dump and therefore are generated during crash dumps. core file generation creates core files. creating additional virtual memory and failed mount attempts do not create additional error or log files.

20. 

You are configuring the automounter for your Solaris computer. Where is the mount point for an indirect automount map located?

  1. In the indirect map.

  2. In the direct map.

  3. In the master map.

  4. Indirect automount maps do not specify mount points.

c. the mount point for an indirect automount map is referenced by the master map.

Answers

1. 

C. The Process File System (PROCFS) manages the /proc file system. It does not manage the /tmp or /var file systems. The /process file system does not exist by default.

2. 

B, C. When mounting a file system to which you'll have Read and Write access, you should always mount the file system hard and intr. This allows you more control over the mounting process, reduces the chance of file corruption on the NFS server, and enables you to kill hung processes with keyboard interrupts.

3. 

D. This is an example of using options that cause problems when used together. The anon=-1 option sets the User ID for anonymous users to - 1, which is an invalid UID. Therefore, anonymous access is prohibited. At the same time, you set sec=none, which means that no security is enforced, and the system classifies the user as an anonymous user.

4. 

C. To make additional swap space available, you can add an entry in the /etc/vfstab file. The swap -a command is used to activate a file as swap space. The swapadd command does not exist.

5. 

A, C. Front file systems and back file systems are terms used with the CacheFS file system. The front file system is on the local computer and contains cached copies of files. The back file system is located on a remote computer (or it can be a slow local device, such as a CD-ROM) and contains the original files.

6. 

B. The dumpadm command is used to manage crash dump files. The coreadm command is used to manage core files, but core files are generated when an application crashes, not when the system experiences a critical error and Solaris crashes. The crashadm and dumpmem commands do not exist.

7. 

C. The /usr/lib/nfs/nfslogd file is the NFS logging daemon. The nfslog.conf and /etc/default/nfslogd files are for configuring NFS logging behavior. The /etc/nfs/ nfslogtab file is a table containing information for analyzing NFS logs by the nfslogd daemon.

8. 

B. If you are using the automounter, the computer does not need to read the /etc/vfstab file to mount virtual file systems. The /etc/inittab file is still needed for system initialization, and the /etc/mnttab file is still required to mount local file systems. The /etc/autotab file does not exist.

9. 

B. A direct map configures a specific map point to a directory on a server.

10. 

A. The cachefsstat command displays statistics about Cache File Systems. If the command tells you that the mount point you entered is not a cache mount point, it's likely that the file system was not properly mounted as a Cache File System. If this file system is supposed to be cache, unmount it, and remount it by using the mount command.

11. 

A. The default direct automount map is named /etc/auto_direct. The master map is named /etc/auto_master.

12. 

F. The mkfile command is used to create the file you want to use as swap space. After the file is created, you use the swap -a command to activate the file as swap space.

13. 

D. Per-process core files are created in the current working directory.

14. 

C. The unshare command is used to stop the sharing of shared file systems. The share command shares file systems, umount unmounts file systems, and the ushare command does not exist.

15. 

A. The automount command is used to adjust this time. The -t option is used, and the time must be specified in seconds.

16. 

B, E. In the share command for the /data/phlist command, the log option does not have a tag; therefore, it uses the default global log file as specified in the /etc/nfs/nfslog.conf file. By default, this file is located in /var/nfs and is named nfslog.

17. 

B. Regular "non-superuser" users can create swap space. However, to prevent accidental overwriting of the new swap space, Sun recommends that you create the new swap space while logged in as the superuser.

18. 

D. After you make changes to a master or direct automount map, you must stop and restart the AutoFS service for the changes to take effect. This is done with the autofs stop and autofs start commands from the /etc/init.d directory.

19. 

A. The unix.X and vmcore.X files are the two files that make up a crash dump and therefore are generated during crash dumps. Core file generation creates core files. Creating additional virtual memory and failed mount attempts do not create additional error or log files.

20. 

C. The mount point for an indirect automount map is referenced by the master map.




Solaris 9. Sun Certified System Administrator Study Guide
Solaris 9 Sun Certified System Administrator Study Guide
ISBN: 0782141811
EAN: 2147483647
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net