Difference between revisions of "SYA710-test2"

From CDOT Wiki
Jump to: navigation, search
(New page: == Test #2 == <ol> <li>List the 5 complete commands, in correct order, you would enter to decrease the size of an ext3 file system to 1GB. The file system is inside a logical volum...)
 
(Test #2)
Line 9: Line 9:
 
  and that the current size of the file system is 2GB of which  
 
  and that the current size of the file system is 2GB of which  
 
  less than ¼ is used.
 
  less than ¼ is used.
 +
<pre>
 +
1. umount /mnt
 +
2. fsck -t ext3 /dev/SENECA/LUX
 +
3. resize2fs /dev/SENECA/LUX 1G
 +
4. lvreduce SENECA/LUX -L1G
 +
5. mount /dev/SENECA/LUX /mnt
 +
</pre>
 
</li>
 
</li>
 
<li>A server, named “abcd”, has a startup script called “abc”.
 
<li>A server, named “abcd”, has a startup script called “abc”.

Revision as of 09:33, 27 November 2008

Test #2

  1. List the 5 complete commands, in correct order, you would enter to decrease the size of an ext3 file system to 1GB. The file system is inside a logical volume named LUX. The logical volume is part of a volume group named SENECA. You may assume the logical volume is currently mounted on /mnt and that the current size of the file system is 2GB of which less than ¼ is used.
    1. umount /mnt
    2. fsck -t ext3 /dev/SENECA/LUX
    3. resize2fs /dev/SENECA/LUX 1G
    4. lvreduce SENECA/LUX -L1G
    5. mount /dev/SENECA/LUX /mnt
    
  2. A server, named “abcd”, has a startup script called “abc”. Answer the following questions.
    1. In Fedora 8, where (full path name) would you put abc?
    2. In Fedora 8, where (full path name) would you put abcd?
    3. What command would you enter in order to add this new service for management by chkconfig?
    4. Assume the following comments appeared at the start of abc:
      #!/bin/sh
      # abc
      # description: server starts/stops abcd 
      # chkconfig: 3 72 15
      

      What are the two link files for this service?

    5. What command would you enter to stop this server?
  3. The following questions deal with YUM package management in Fedora 8.
    1. What yum command is used to list all repositories?
    2. Explain, clearly, how you would add a new yum repository to Fedora 8.
    3. What yum command would you use to list all available packages containing the string “spider”?
    4. What yum command would you use to display a list of all installed packages?
    5. What yum command would you use to install a package named “words”?
  4. The following questions deal with building a new kernel on Fedora 8.
    1. Explain, clearly, the difference between “make config” and “make oldconfig”.
    2. After building a kernel with the “make” command, where exactly (give the name and relative path) would you find the new kernel? You may assume you're working with an X86 system.
    3. After running the command “make modules_install” where (give full path name) would you expect to find the new kernel modules?
    4. Name two commands, other than “make config” and “make oldconfig” which can be used to modify/view the current kernel configuration.
    5. If the new kernel version was 2.7.28, what command would you use to build a new INITRD file?