Review Questions and Answers

1. 

You are the Solaris administrator for your network. You have just configured a new server. One of your other administrators asks why slice 2 is larger than the other slices on the server's system disk. What do you tell him?

  1. Slice 2 represents the whole hard disk.

  2. Slice 2 holds the root file system and therefore needs the most space.

  3. Slice 2 is empty space, and you have not created a file system on it yet.

  4. Slice 2 holds user-created files, and because this is a file server, it needed to be the largest slice.

a. by convention, slice 2 represents the whole hard disk.

2. 

You are the Solaris administrator for your network. Recently, you installed a new network adapter in one of your Solaris servers. The system is not recognizing the card. What is the best course of action to take?

  1. Run the cfgadm command to detect the network adapter.

  2. Run the devfsadm command to detect the network adapter.

  3. Contact Sun for a device driver for the network adapter.

  4. Contact the manufacturer of the network adapter for a device driver.

d. if hardware is not being recognized by solaris, it's likely that the proper device driver is not installed. drivers should be obtained from the hardware manufacturer. the cfgadm command manages hot-swappable parts, and devfsadm manages the /devices and /dev directories, but neither one detects hardware.

3. 

You are the Solaris administrator for your company. You are presented with the following output:

 * /dev/rdsk/c0t0d0s2 partition map * * Dimensions: *     512 bytes/sector *      63 sectors/track *      16 tracks/cylinder *    1008 sectors/cylinder *   38792 cylinders *   38790 accessible cylinders * * Flags: *    1: unmountable *   10: read-only * * Unallocated space: *       First     Sector      Last *       Sector    Count       Sector *    39098304      2016   39100319 * *                          First    Sector       Last * Partition Tag  Flags    Sector    Count       Sector   Mount Directory       0      2     00   1049328   4162032     5211359     /       1      3     01         0   1049328     1049327       2      5     00         0  39100320    39100319       7      8     00   5211360  33886944    39098303     /export/home 

What is the exact command you typed to retrieve this information?

  1. label /dev/rdsk/c0t0d0s2

  2. prtvtoc /dev/rdsk/c0t0d0s2

  3. partition /dev/rdsk/c0t0d0s2

  4. format /dev/rdsk/c0t0d0s2

b. this is output from the prtvtoc command. the device listed in the first line is /dev/ rdsk/c0t0d0s2 , so the correct answer is prtvtoc /dev/rdsk/c0t0d0s2 .

4. 

You have just installed and configured a new Solaris workstation on your network. After rebooting, you suspect that the system kernel is not being configured properly. Which two files make up the system kernel? (Choose two.)

  1. /platform/`uname -m`/kernel/unix

  2. /kernel/genunix

  3. /etc/system

  4. /etc/kernel

a, b. the two files that compose the kernel are /platform/ ` uname -m ` /kernel/unix and /kernel/genunix . the /etc/system file can be used to modify the loading of kernel modules. the /etc/kernel file does not exist.

5. 

You are the Solaris administrator for your company. You are at the format command menu on one of your servers. You want to see whether the disk has any sector damage. Which command should you type at the format menu?

  1. format

  2. analyze

  3. defect

  4. show

  5. verify

b. to scan the disk for sector damage, you need to analyze the disk for errors. in contrast, format formats a disk, defect shows the manufacturer's defect list, show translates disk addresses, and verify reads and displays disk labels.

6. 

You are the Solaris administrator for your network. You need to see whether a specific hardware device is being recognized by one of your Solaris workstations. Which of the following commands can you use to list the hardware devices? (Choose all that apply.)

  1. dmesg

  2. disphw

  3. prtconf

  4. prtvtoc

  5. sysdef

  6. sysconf

a, c, e. the dmesg , prtconf , and sysdef commands can be used to display system hardware. the prtvtoc command shows a hard disk's label, or volume table of contents. the sysconf command gets a list of configurable system variables. the disphw command does not exist.

7. 

You are working on one of your Solaris servers. You are at the following menu:

 0      - change '0' partition 1      - change '1' partition 2      - change '2' partition 3      - change '3' partition 4      - change '4' partition 5      - change '5' partition 6      - change '6' partition 7      - change '7' partition select - select a predefined table modify - modify a predefined partition table name   - name the current table print  - display the current table label  - write partition map and label to the disk quit 

What is the last command you typed to get to this menu?

  1. format

  2. partition

  3. slice

  4. fdisk

b. this is the partition submenu from the format command. before taking the test, you should recognize this menu.

8. 

Which of the following statements best describes the purpose of the /dev/dsk and /dev/rdsk directories?

  1. /dev/dsk contains physical disk names, and /dev/rdsk contains logical disk names.

  2. /dev/dsk contains logical disk names, and /dev/rdsk contains physical disk names.

  3. /dev/dsk contains logical block disk names, and /dev/rdsk contains logical raw disk names.

  4. /dev/dsk contains logical raw disk names, and /dev/rdsk contains logical block disk names.

c. the /dev/dsk directory contains logical block disk names, and /dev/rdsk contains logical raw disk names. one way to remember this is that the r in rdsk stands for raw .

9. 

You are the Solaris administrator for your company. You are installing a new workstation and will be customizing your hard disk slice configuration. When creating slices, which of the following are true? (Choose all that apply.)

  1. Each disk slice can contain only one file system.

  2. File systems cannot span multiple slices.

  3. Slices cannot span multiple disks.

  4. Multiple swap slices on separate physical disks are allowed.

  5. Created slices can be dynamically resized with the format command.

a, b, c, d. each disk slice can contain only one file system, file systems cannot span multiple slices, and slices cannot span multiple disks. multiple swap slices are allowed. slices cannot be resized dynamically. to resize a slice, you must delete it and re-create it.

10. 

You are the Solaris administrator for your company. You have purchased a new SCSI adapter that supports hot swapping of hard disks. Which Solaris command enables you to manage hot-swappable disks?

  1. dmesg

  2. cfgadm

  3. devfsadm

  4. hswap

b. the cfgadm command is used to manage hot-swappable parts in solaris. the dmesg command displays hardware configuration. the devfsadm command manages the /devices and /dev directories. the hswap command does not exist.

11. 

You are the Solaris server administrator for your company. On one of your server's hard disks, you want to make a slice used to store user-created files larger. What is the best way to accomplish this?

  1. Use the format command to expand the size of the slice.

  2. Back up the existing data. Use the format command to delete the slice and then re-create a larger slice. Restore the data from backup.

  3. Back up the existing data. Use the format command to expand the slice. Restore the data from backup.

  4. Slices cannot be resized in Solaris.

b. to make a slice larger, you must delete the slice and re-create a larger one. if there is no more disk space, then you must delete another slice to free space for your new, larger slice.

12. 

You are at the partition menu of the format command. You just caused the following information to be displayed:

 partition> XXXXXXXXX Current partition table (original): Total disk cylinders available: 38790 + 2 (reserved cylinders) Part    Tag    Flag     Cylinders      Size            Blocks   0       root  wm    1041 -  5169     1.98GB    (4129/0/0)   4162032   1       swap  wu       0 -  1040   512.37MB    (1041/0/0)   1049328   2     backup  wm       0 - 38789    18.64GB    (38790/0/0) 39100320   3 unassigned  wm       0             0         (0/0/0)            0   4 unassigned  wm       0             0         (0/0/0)            0   5 unassigned  wm       0             0         (0/0/0)            0   6 unassigned  wm       0             0         (0/0/0)            0   7       home  wm    5170 - 38787    16.16GB    (33618/0/0) 33886944 partition> 

What command did you type to retrieve the displayed information?

  1. print

  2. label

  3. display

  4. select

  5. name

  6. modify

a. at the partition menu, the print command displays current partition table information.

13. 

Which slice, by default, holds the root file system in Solaris 9?

  1. 0

  2. 2

  3. 4

  4. 7

a. slice 0 is for the root file system. slice 2 represents the whole disk. slice 4 is an optional slice. slice 7 typically contains user home directories.

14. 

You are the Solaris server administrator for your company. You are configuring hot-swappable hard disks on your Solaris server. Which two terms accurately describe the components you are configuring?

  1. Device and port

  2. Drive and bay

  3. Occupant and receptacle

  4. Disk and tray

c. the cfgadm command, which configures hot-swappable devices, refers to the individual parts as the occupant and the receptacle. the receptacle is the bay on the computer, and the occupant is the device that plugs into the receptacle.

15. 

You are the Solaris server administrator for your company. One of your servers has two hard disks. The first disk, disk 0, contains slices 0, 2, and 6. The second disk, disk 1, contains slices 2, 4, and 7. What is another name for disk 0?

  1. The boot disk

  2. The main disk

  3. The system disk

  4. The non-system disk

c. if your computer has multiple hard disks, the disk with slice 0 and the /usr file system (which is generally located on slice 0 or 6) is known as the system disk. the disk is bootable and can be considered the main disk, but its technical term is system disk. disk 1 in this example would be a non-system disk, because it does not contain slice 0 and the /usr file system.

16. 

You are the Solaris administrator for your company. You just received a new workstation and have powered it on. You want to see the parameters of the computer's single hard disk, including the dimensions and allocated partitions. Which command should you type to see this information?

  1. prtvtoc /dev/rdsk/c0t0d0s2

  2. prtconf /dev/rdsk/c0t0d0s2

  3. dispdsk /dev/rdsk/c0t0d0s2

  4. dmesg /dev/rdsk/c0t0d0s2

a. the prtvtoc command displays the disk's label, also known as the disk's volume table of contents (vtoc). the label shows disk dimensions and partitions. the prtconf and dmesg commands show system device configuration information. the dispdsk command does not exist.

17. 

Which of the following commands displays system diagnostic messages, as well as devices that have been added since the last system boot?

  1. cfgadm

  2. dmesg

  3. prtconf

  4. sysdef

b. dmesg displays system diagnostic messages. although prtconf and sysdef do display hardware devices, they do not display diagnostic messages. the cfgadm command is used to manage hot-swappable hardware.

18. 

You are the Solaris administrator for your company. You are presented with the following menu:

 disk       - select a disk type       - select (define) a disk type partition  - select (define) a partition table current    - describe the current disk format     - format and analyze the disk repair     - repair a defective sector show       - translate a disk address label      - write label to the disk analyze    - surface analysis defect     - defect list management backup     - search for backup labels verify     - read and display labels save       - save new disk/partition definitions volname    - set 8-character volume name !<cmd>     - execute <cmd>, then return 

What command (with no arguments) did you type to get to this menu?

  1. fdisk

  2. prtconf

  3. partition

  4. format

  5. disk

  6. hdisk

d. this is the format menu. before taking the test, make sure you recognize this menu and know what each selection does.

19. 

You are the Solaris administrator for your company. You are creating new slices on a hard disk. One of your senior administrators has advised you to choose an option she calls "All Free Hog" when beginning to slice the hard disk. What is the purpose of the free hog?

  1. The free hog is another name for the slice that contains the root file system and is used as a base for the partitioning process.

  2. The free hog is a temporary slice used by the format command to keep track of free space on the disk during the partitioning process.

  3. The free hog refers to the entire hard drive and is used as a base for the partitioning process.

  4. The free hog refers to a newly created slice that does not yet have a file system defined on it. When a file system is created on the slice, the slice is a full hog.

b. when using the format utility, the free disk space is occupied by the free hog. if you delete additional slices, the free hog will `hog` the new free space. if you create additional slices, the free hog will `free` space to use for the new slice. choosing `all free hog` essentially wipes out all existing slices, enabling you to start over and completely customize your hard disk partitioning structure.

20. 

You are a Solaris administrator. You need to find a list of device instance names for your system. In which file will you find instance names of configured devices in Solaris 9?

  1. /etc/path_to_inst

  2. /etc/instance

  3. /etc/inst

  4. /path_to_inst

  5. /instance

  6. /inst

a. the /etc/path_to_inst file maintains mappings of all devices to instance names in solaris 9. none of the other files exist.

Answers

1. 

A. By convention, slice 2 represents the whole hard disk.

2. 

D. If hardware is not being recognized by Solaris, it's likely that the proper device driver is not installed. Drivers should be obtained from the hardware manufacturer. The cfgadm command manages hot-swappable parts, and devfsadm manages the /devices and /dev directories, but neither one detects hardware.

3. 

B. This is output from the prtvtoc command. The device listed in the first line is /dev/ rdsk/c0t0d0s2, so the correct answer is prtvtoc /dev/rdsk/c0t0d0s2.

4. 

A, B. The two files that compose the kernel are /platform/`uname -m`/kernel/unix and /kernel/genunix. The /etc/system file can be used to modify the loading of kernel modules. The /etc/kernel file does not exist.

5. 

B. To scan the disk for sector damage, you need to analyze the disk for errors. In contrast, format formats a disk, defect shows the manufacturer's defect list, show translates disk addresses, and verify reads and displays disk labels.

6. 

A, C, E. The dmesg, prtconf, and sysdef commands can be used to display system hardware. The prtvtoc command shows a hard disk's label, or Volume Table of Contents. The sysconf command gets a list of configurable system variables. The disphw command does not exist.

7. 

B. This is the partition submenu from the format command. Before taking the test, you should recognize this menu.

8. 

C. The /dev/dsk directory contains logical block disk names, and /dev/rdsk contains logical raw disk names. One way to remember this is that the r in rdsk stands for raw.

9. 

A, B, C, D. Each disk slice can contain only one file system, file systems cannot span multiple slices, and slices cannot span multiple disks. Multiple swap slices are allowed. Slices cannot be resized dynamically. To resize a slice, you must delete it and re-create it.

10. 

B. The cfgadm command is used to manage hot-swappable parts in Solaris. The dmesg command displays hardware configuration. The devfsadm command manages the /devices and /dev directories. The hswap command does not exist.

11. 

B. To make a slice larger, you must delete the slice and re-create a larger one. If there is no more disk space, then you must delete another slice to free space for your new, larger slice.

12. 

A. At the partition menu, the print command displays current partition table information.

13. 

A. Slice 0 is for the root file system. Slice 2 represents the whole disk. Slice 4 is an optional slice. Slice 7 typically contains user home directories.

14. 

C. The cfgadm command, which configures hot-swappable devices, refers to the individual parts as the occupant and the receptacle. The receptacle is the bay on the computer, and the occupant is the device that plugs into the receptacle.

15. 

C. If your computer has multiple hard disks, the disk with slice 0 and the /usr file system (which is generally located on slice 0 or 6) is known as the system disk. The disk is bootable and can be considered the main disk, but its technical term is system disk. Disk 1 in this example would be a non-system disk, because it does not contain slice 0 and the /usr file system.

16. 

A. The prtvtoc command displays the disk's label, also known as the disk's Volume Table of Contents (VTOC). The label shows disk dimensions and partitions. The prtconf and dmesg commands show system device configuration information. The dispdsk command does not exist.

17. 

B. dmesg displays system diagnostic messages. Although prtconf and sysdef do display hardware devices, they do not display diagnostic messages. The cfgadm command is used to manage hot-swappable hardware.

18. 

D. This is the format menu. Before taking the test, make sure you recognize this menu and know what each selection does.

19. 

B. When using the format utility, the free disk space is occupied by the free hog. If you delete additional slices, the free hog will "hog" the new free space. If you create additional slices, the free hog will "free" space to use for the new slice. Choosing "All Free Hog" essentially wipes out all existing slices, enabling you to start over and completely customize your hard disk partitioning structure.

20. 

A. The /etc/path_to_inst file maintains mappings of all devices to instance names in Solaris 9. None of the other files exist.




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