Review Questions and Answers

1. 

You are the Solaris administrator for your company. You are planning on creating a PCFS file system on a local device named c0t0d0s4. Which of the following commands should you execute?

  1. newfs -F pcfs /dev/dsk/c0t0d0s4

  2. newfs -F pcfs /dev/rdsk/c0t0d0s4

  3. mkfs -F pcfs /dev/dsk/c0t0d0s4

  4. mkfs -F pcfs /dev/rdsk/c0t0d0s4

d. if you wish to create a file system that's anything other than ufs, you must use the mkfs -f command. also, when using mkfs , like newfs , you must supply the raw disk name. raw device names are located in the /dev/rdsk directory.

2. 

You are the Solaris administrator for your network. One of your servers is not mounting a file system automatically at boot, even though it should. Which file do you check to see whether this is configured properly?

  1. /etc/mnttab

  2. /etc/inittab

  3. /etc/ufstab

  4. /etc/vfstab

  5. /etc/fstab

d. the /etc/vfstab (virtual file system table) file maintains a list of known file systems that are to be mounted during the boot process, or if the mountall command is issued.

3. 

You are the Solaris administrator for your company. You will be formatting a new hard disk and creating a file system on it. If you use the default options when creating the file system, which file system will be used?

  1. UDF

  2. UFS

  3. PCFS

  4. HSFS

  5. NFS

b. the default file system for hard disks in solaris 9 is the unix file system (ufs). udf is used for dvd-roms, pcfs for floppy disks, hsfs for cd-roms, and nfs for distributed file systems.

4. 

You are the Solaris instructor for your company. When describing file structure to a group of students, which of the following items do you tell them stores a file's name?

  1. Superblock

  2. Inode

  3. Data block

  4. Directory

d. the directory stores filenames. inodes store critical information about files but do not store filenames. the superblock contains critical file system information, not data about individual files. data blocks store data belonging to files, but not filenames.

5. 

You are the Solaris server administrator for your company. You want to create a UFS file system on a device named c0t0d0s5. Which of the following commands should you use?

  1. newfs /dev/rdsk/c0t0d0s5

  2. newfs /dev/dsk/c0t0d0s5

  3. newfs /dev/c0t0d0s5

  4. newfs /c0t0d0s5

a. the newfs command is used to create file systems. when using the newfs command, you need to supply the raw device name. raw device names are located in the /dev/rdsk directory.

6. 

Which of the following are valid types of file systems supported in Solaris 9? (Choose all that apply.)

  1. UFS

  2. VFS

  3. NFS

  4. DFS

  5. UDF

  6. FAT

a, c, e. the ufs, nfs, and udf file systems are all supported in solaris 9. vfs and dfs are not valid file systems. fat is technically supported in solaris, but it's implemented as pcfs.

7. 

You are the Solaris administrator for your company. One of your users has inserted a floppy disk into his machine, but he cannot seem to access the files on the disk. What do you tell the user to do in order to mount the floppy disk?

  1. Wait a few more seconds, and volume manager will mount it automatically.

  2. The disk is already mounted. The user needs to look in the /floppy directory for his files.

  3. Type vold at the command prompt to make volume manager mount the floppy disk.

  4. Type volcheck at the command prompt to make volume manager mount the floppy disk.

d. the volcheck command makes volume manager scan removable disk drives (floppy disk drives and/or jaz and zip drives) for new disks. after volcheck is run, the user's files should be in the /floppy directory.

8. 

You are the Solaris server administrator on your network. You have just created a new file system on a local hard disk. Which of the following commands can you use to verify the creation of the local file system?

  1. newfs

  2. mkfs

  3. fsck

  4. fsdb

c. the fsck command can be used to verify file system creation, as well as check the file system's consistency. the newfs and mkfs commands are for creating file systems. the fsdb command will debug an existing file system.

9. 

You are the Solaris administrator for your network. You are going to mount a new local file system on one of your servers. The file system is a UFS file system, will have logging enabled, and will be able to store files larger than 2GB in size. The mount point for the /dev/dsk/c0t3d0s2 device will be /trainers. Which of the following commands should you execute to mount this file system?

  1. mount -F ufs -o logging,largefiles /dev/dsk/c0t3d0s2 /trainers

  2. mount -F ufs -r -o logging,largefiles /dev/dsk/c0t3d0s2 /trainers

  3. mount -F ufs -o logging,largefiles /trainers /dev/dsk/c0t3d0s2

  4. mount -F ufs -r -o logging,largefiles /trainers /dev/dsk/c0t3d0s2

a. the -o option allows you to specify ufs-specific options such as logging and enabling large file storage. the -r option is not called for, because this would make the file system read-only. when mounting a file system, the device is listed before the mount point. therefore, the first answer is the correct choice.

10. 

You are the Solaris administrator for your network. On all your servers, you have specified a logical block size of 8KB and the default block fragment size. You are going to store a file that is 9KB in length. Which of the following accurately describes how the file is stored?

  1. The file uses one 8KB block, and the remaining 1KB is stored in block fragments.

  2. The file uses two 8KB blocks, but the remainder of the second block is usable by another file.

  3. The file uses two 8KB blocks, and the remainder of the second block is unusable by other files.

  4. The file uses one 8KB block and 1KB of a second block. After the 1KB is allocated, the remainder of the block (7KB) is divided into logical block fragments usable by other files.

a. the file system will attempt to optimize space as much as possible. therefore, one entire block will be used, and the rest of the file will be stored in a logical block fragment. as nice as it would be, block fragments are not allocated dynamically by the file system. they are created when the file system is created. therefore, the last answer is incorrect.

11. 

You are the Solaris administrator for your company. Because one of your workstations is constantly running low on physical memory, it's required to use virtual memory. Which file system is being used when the computer accesses virtual memory?

  1. SWAPFS

  2. TMPFS

  3. VMFS

  4. Virtual memory is not associated with one specific file system.

a. when a computer uses virtual memory, the process of moving information into and out of virtual memory is called swapping. in solaris, the swap space is part of the swapfs file system. tmpfs is another valid file system, but it's used for temporary file storage, not as additional memory. vmfs does not exist.

12. 

You are the Solaris administrator for your network. You are presented with the following information from an /etc/vfstab file, taken from one of your workstations:

 # cat /etc/vfstab #device           device             mount    FS   fsck mount   mount #to mount         to fsck            point    type pass at boot options # fd                -                  /dev/fd  fd    -   no      - /proc             -                  /proc    proc  -   no      - /dev/dsk/c0t0d0s1 -                  -        swap  -   no      - /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 /        ufs   1   no      - /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /files   ufs   2   yes     - swap              -                  /tmp     tmpfs -   yes     - 

Based on the information presented, which of the following statements are true? (Choose all that apply.)

  1. The device /dev/dsk/c0t0d0s0 will not be mounted automatically at boot.

  2. The device /dev/dsk/c0t0d0s7 will be mounted automatically at boot into the /files mount point.

  3. The /dev/rdsk/c0t0d0s0 and /dev/rdsk/c0t0d0s7 file systems will be checked by fsck automatically at boot.

  4. The /dev/rdsk/c0t0d0s0 file system will be checked by fsck automatically at boot, and the /dev/rdsk/c0t0d0s7 file system will be checked by fsck only if a previous problem with the file system is reported.

b, c. the root file system is always automatically mounted during the boot process. it has a no value for mount at boot only because the kernel mounts the file system before mountall is run to mount all other file systems. the device /dev/dsk/c0t0d0s7 has the mount point of /files . because the fsck pass value is higher than 0 for /dev/rdsk/c0t0d0s0 and /dev/dsk/ rc0t0d0s7 , they will both be automatically checked by fsck at boot.

13. 

You are the Solaris administrator for your network. You need to find a list of all currently mounted file systems on one of your servers. Which file holds this information?

  1. /etc/inittab

  2. /etc/mnttab

  3. /etc/vfstab

  4. /etc/mount

b. the /etc/mnttab file contains information on all mounted file systems. the /etc/inittab file defines the initial boot state for the system. the /etc/vfstab file lists file systems that are to be mounted at boot. the /etc/mount file does not exist by default.

14. 

You are the Solaris administrator for your company. Your root file system has a directory named /acctdocs, which contains three files and one subdirectory. You execute the following command:

 # mount /dev/rdsk/c0t0d0s4 /acctdocs 

Which of the following statements is true?

  1. The three files and one subdirectory located in /acctdocs are destroyed.

  2. The three files located in /acctdocs will be available, but the subdirectory will be not be available until /dev/rdsk/c0t0d0s4 is unmounted.

  3. The three files located in /acctdocs will not be available until /dev/rdsk/c0t0d0s4 is unmounted, but the subdirectory will be available.

  4. The three files and one subdirectory located in /acctdocs will not be available until /dev/rdsk/c0t0d0s4 is unmounted.

d. if you mount a file system into a directory that contains files and/or subdirectories, those files and subdirectories will not be available until the file system is unmounted. there is no permanent damage done to the existing files or subdirectories.

15. 

You are the Solaris administrator for your company. For security reasons, your company wants to disable the use of SetUID on the /app02 directory, which is the mount point for the /dev/dsk/c0t1d0s5. The file system is currently unmounted. Which command should you execute to mount the device with the required option?

  1. mount -F ufs -o suid /dev/dsk/c0t1d0s5 /app02

  2. mount -F ufs -o suid /app02 /dev/dsk/c0t1d0s5

  3. mount -F ufs -o nosuid /dev/dsk/c0t1d0s5 /app02

  4. mount -F ufs -o nosuid /app02 /dev/dsk/c0t1d0s5

c. the -o option enables you to specify ufs-specific options such as disabling the use of setuid. when mounting a file system, the device is listed before the mount point. therefore, the third answer is the correct choice.

16. 

You are the Solaris network manager for your company. One of your developers has just had a second CD-ROM drive installed into her workstation. She is attempting to access files located on a CD-ROM in the second drive but cannot seem to locate them. Where should you tell her to look?

  1. /cdrom/cdrom0

  2. /cdrom/cdrom1

  3. /cdrom/cdrom2

  4. If there is a CD-ROM in the first CD-ROM drive, its being mounted will override the mounting of the second CD-ROM drive, making files on the second CD-ROM drive inaccessible.

b. the second cd-rom drive has the device name /cdrom/cdrom1 . she could also access the second cd-rom as /cdrom/ volname if she knew the volume name of the disc in the second cd-rom.

17. 

You are the network administrator for your company. You are going to create a file system on a CD-ROM and you want that CD-ROM to work in Windows-based PCs. Which file system should you create on that CD-ROM?

  1. UFS

  2. PCFS

  3. HSFS

  4. UDF

c. the high sierra file system (hsfs) is an industry-standard file system for cd-rom disks. cd-roms can also have ufs file systems, but ufs is not recognizable to windows-based pcs. pcfs is for floppy disks, and udf is for dvd-roms.

18. 

You are a Solaris administrator for your company. You recently unmounted two file systems to perform complete backups. Now you want to mount them as easily as possible. Another administrator suggests using the mountall command. Which of the following statements accurately describes the function of the mountall command?

  1. mountall mounts all file systems known to the Solaris computer.

  2. mountall mounts all local file systems on the Solaris computer.

  3. mountall mounts all file systems listed in the /etc/inittab file.

  4. mountall mounts all file systems listed in the /etc/mnttab file.

  5. mountall mounts all file systems listed in the /etc/vfstab file.

e. the mountall command mounts all file systems located in the /etc/vfstab file. although it's true that mountall might happen to mount all local file systems, or even all known file systems, that doesn't have to be the case. the /etc/inittab file contains information on booting solaris, including the default run level. the /etc/mnttab file contains a list of all currently mounted file systems. after running mountall , you could check /etc/mnttab to see whether all appropriate file systems are mounted.

19. 

Which of the following types of blocks contains the size of the file system, the disk's VTOC, and the file system state flag?

  1. Boot block

  2. Superblock

  3. Inode

  4. Data block

b. the superblock contains the size of the file system, the disk label (volume table of contents), cylinder group size, number of data blocks present, the summary data block, file system state (state flag), and the pathname of the last mount point.

20. 

You are the Solaris administrator for your company. One of your network users has recently had an Iomega Zip drive installed in her machine so she can back up critical project files personally. She has inserted the Zip disk, copied the necessary files to the disk, and now needs to remove the disk from the drive. She knows that Zip drives do not have a manual eject button. Based on a default device configuration, what command do you tell her to type to eject the Zip disk?

  1. eject /rmdisk/zip0

  2. eject /rmdisk/zip1

  3. eject /rdisk/zip0

  4. eject /rdisk/zip1

  5. eject /rmdisk/iomega0

  6. eject /rmdisk/iomega1

a. the eject command is used to eject media from devices that do not have a manual eject button. the default device name for the first zip drive in a computer is /rmdisk/zip0 .

Answers

1. 

D. If you wish to create a file system that's anything other than UFS, you must use the mkfs -F command. Also, when using mkfs, like newfs, you must supply the raw disk name. Raw device names are located in the /dev/rdsk directory.

2. 

D. The /etc/vfstab (virtual file system table) file maintains a list of known file systems that are to be mounted during the boot process, or if the mountall command is issued.

3. 

B. The default file system for hard disks in Solaris 9 is the UNIX File System (UFS). UDF is used for DVD-ROMs, PCFS for floppy disks, HSFS for CD-ROMs, and NFS for distributed file systems.

4. 

D. The directory stores filenames. Inodes store critical information about files but do not store filenames. The superblock contains critical file system information, not data about individual files. Data blocks store data belonging to files, but not filenames.

5. 

A. The newfs command is used to create file systems. When using the newfs command, you need to supply the raw device name. Raw device names are located in the /dev/rdsk directory.

6. 

A, C, E. The UFS, NFS, and UDF file systems are all supported in Solaris 9. VFS and DFS are not valid file systems. FAT is technically supported in Solaris, but it's implemented as PCFS.

7. 

D. The volcheck command makes volume manager scan removable disk drives (floppy disk drives and/or Jaz and Zip drives) for new disks. After volcheck is run, the user's files should be in the /floppy directory.

8. 

C. The fsck command can be used to verify file system creation, as well as check the file system's consistency. The newfs and mkfs commands are for creating file systems. The fsdb command will debug an existing file system.

9. 

A. The -o option allows you to specify UFS-specific options such as logging and enabling large file storage. The -r option is not called for, because this would make the file system read-only. When mounting a file system, the device is listed before the mount point. Therefore, the first answer is the correct choice.

10. 

A. The file system will attempt to optimize space as much as possible. Therefore, one entire block will be used, and the rest of the file will be stored in a logical block fragment. As nice as it would be, block fragments are not allocated dynamically by the file system. They are created when the file system is created. Therefore, the last answer is incorrect.

11. 

A. When a computer uses virtual memory, the process of moving information into and out of virtual memory is called swapping. In Solaris, the swap space is part of the SWAPFS file system. TMPFS is another valid file system, but it's used for temporary file storage, not as additional memory. VMFS does not exist.

12. 

B, C. The root file system is always automatically mounted during the boot process. It has a no value for mount at boot only because the kernel mounts the file system before mountall is run to mount all other file systems. The device /dev/dsk/c0t0d0s7 has the mount point of /files. Because the fsck pass value is higher than 0 for /dev/rdsk/c0t0d0s0 and /dev/dsk/ rc0t0d0s7, they will both be automatically checked by fsck at boot.

13. 

B. The /etc/mnttab file contains information on all mounted file systems. The /etc/inittab file defines the initial boot state for the system. The /etc/vfstab file lists file systems that are to be mounted at boot. The /etc/mount file does not exist by default.

14. 

D. If you mount a file system into a directory that contains files and/or subdirectories, those files and subdirectories will not be available until the file system is unmounted. There is no permanent damage done to the existing files or subdirectories.

15. 

C. The -o option enables you to specify UFS-specific options such as disabling the use of SetUID. When mounting a file system, the device is listed before the mount point. Therefore, the third answer is the correct choice.

16. 

B. The second CD-ROM drive has the device name /cdrom/cdrom1. She could also access the second CD-ROM as /cdrom/volname if she knew the volume name of the disc in the second CD-ROM.

17. 

C. The High Sierra File System (HSFS) is an industry-standard file system for CD-ROM disks. CD-ROMs can also have UFS file systems, but UFS is not recognizable to Windows-based PCs. PCFS is for floppy disks, and UDF is for DVD-ROMs.

18. 

E. The mountall command mounts all file systems located in the /etc/vfstab file. Although it's true that mountall might happen to mount all local file systems, or even all known file systems, that doesn't have to be the case. The /etc/inittab file contains information on booting Solaris, including the default run level. The /etc/mnttab file contains a list of all currently mounted file systems. After running mountall, you could check /etc/mnttab to see whether all appropriate file systems are mounted.

19. 

B. The superblock contains the size of the file system, the disk label (Volume Table of Contents), cylinder group size, number of data blocks present, the summary data block, file system state (state flag), and the pathname of the last mount point.

20. 

A. The eject command is used to eject media from devices that do not have a manual eject button. The default device name for the first Zip drive in a computer is /rmdisk/zip0.




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