Testking RH302 Questions are updated and all RH302 answers are verified by experts. Once you have completely prepared with our RH302 exam prep kits you will be ready for the real RH302 exam without a problem. We have Latest Red Hat RH302 dumps study guide. PASSED RH302 First attempt! Here What I Did.
Q131. CORRECT TEXT
We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data.
Now you required more space on /data but you already added all disks belong to physical volume.
You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of lvtestvolume by 5GB.
Answer and Explanation:.
1. Create a partition having size 5 GB and change the syste id '8e'.
2. use partprobe command
3. pvcreate /dev/hda9 à Suppose your partition number is hda9.
4. vgextend test0 /dev/hda9 à vgextend command add the physical disk on volume group.
5. lvextend -L+5120M /dev/test0/lvtestvolume
6. verify using lvdisplay /dev/test0/lvtestvolume.
Q132. CORRECT TEXT
Configure the Apache webserver for station?.example.com (associated IP is your host IP address) by downloading the index.html from ftp://server1.example.com.
Answer and Explanation:
1. vi /etc/httpd/conf/httpd.conf
<VirtualHost 192.168.0.?>
ServerName station?.example.com
DocumentRoot /var/www/station?
DirectoryIndex index.html
ServerAdmin webmaster@example.com
</VirtualHost>
2. Create the directory and index page on specified path. (Index page can download from
ftp://server1.example.com at exam time)
Check the SELinux context of index page , should like this:
-rw-r--r-- root root system_u:object_r:httpd_sys_content_t /var/www/html/index.html
If SELinux Context is mismatched, use the restorecon -R /var command
3. service httpd start|restart
4. chkconfig httpd on
Q133. CORRECT TEXT
Install the Redhat Linux RHEL 5 through NFS. Where your Server is server1.example.com having IP 172.24.254.254 and shared /var/ftp/pub. The size of the partitions are listed below:
/ à 1048
/home à 1028
/boot à 512
/var à 1028
/usr à 2048
Swap -> 1.5 of RAM Size
/document à configure the RAID Level 0 of remaining all free space.
After completing the installation through NFS solve the following questions. There are two networks 172.24.0.0/16 and 172.25.0.0/16. As well as there are two domains example.com on 172.24.0.0/16 network and cracker.org on 172.25.0.0/16 network. Your system is based on example.com domain. SELinux Must be on enforcing mode.
Answer and Explanation:
1. Insert the CD on CD-ROM and start the system.
2. In Boot: Prompt type linux askmethod
3. It will display the language, keyboard selection.
4. It will ask you for the installation method.
5. Select the NFS Image from the list
6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use
Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.
7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.
Specify the NFS Server: 172.24.254.254
Directory: /var/ftp/pub
8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.
9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question
10. Create the two RAID partitions having equal size of remaining all free space.
11. Click on RAID button
12. Type mount point /document
13. Select RAID Level 0
14. Click on ok
15. Then select the MBR Options, time zone and go upto package selections.
It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.
X-Window System
GNOME Desktop
(these two packages are generally not required)
Administration Tools.
System Tools
Windows File Server
FTP Servers
Mail Servers
Web Servers
Network Servers
Editors
Text Based Internet
Server Configuration Tools
Printing Supports
When installation will complete, your system will reboot. Jump for another Question.
Q134. CORRECT TEXT
One Package named zsh is dump on ftp://server1.example.com under pub directory. Install the package from ftp server.
Answer and Explanation:
1. rpm -ivh ftp://server1.example.com/pub/zsh-*
2. Package will install
rpm command is used to install, update and remove the package, -i means install, -v means verbose and -h means display the hash mark.
Q135. CORRECT TEXT
You are giving RHCT Exam and in your Exam paper there is a question written, make successfully ping to 192.168.0.254.
Answer and Explanation:
In Network problem thinks to check:
1. IP Configuration: use ifconfig command either IP is assigned to interface or not?
2. Default Gateway is set or not?
3. Hostname is set or not?
4. Routing problem is there?
5. Device Driver Module is loaded or not?
6. Device is activated or not?
Check In this way:
1. use ifconfig command and identify which IP is assigned or not.
2. cat /etc/sysconfig/network à What, What is written here. Actually here are these parameters.
NETWORKING=yes or no
GATEWAY=x.x.x.x
HOSTNAME=?
NISDOMAIN=?
- Correct the file
3. Use vi /etc/sysconfig/network-scirpts/ifcfg-eth0 and check the proper options
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=x.x.x.x
NETMAKS=x.x.x.x
GATEWAY=x.x.x.x
4. Use service network restart or start command
Q136. CORRECT TEXT
Configure the webserver for your local domain. Download a www.html file from
ftp.server1.example.com/pub/rhce and rename it as index.html.
Answer and Explanation:
Your local domain mean example.com domain. Lookup the example.com using host example.com you will get the IP address 192.168.0.254.
1. vi /etc/httpd/conf/httpd.conf
<VirtualHost 192.168.0.254>
ServerName sexample.com
DocumentRoot /var/www/example
DirectoryIndex index.html
ServerAdmin webmaster@example.com
</VirtualHost>
2. mkdir /var/www/example
3. Download the index.html file from the ftp server specified in question
4. Rename the www.html file to index.html
Check the SELinux context of index page , should like this:
-rw-r--r-- root root system_u:object_r:httpd_sys_content_t /var/www/html/index.html
If SELinux Context is mismatched, use the restorecon -R /var command
5. service httpd start|restart
6. chkconfig httpd on
7. check using: links http://example.com
Q137. CORRECT TEXT
Change the Group Owner of /data to training group.
Answer and Explanation:
chown or chgrp command is used to change the ownership.
Syntax of chown: chown [-R] username:groupname file/directory
Syntax of chgrp: chgrp [-R] groupname file/directory
Whenever user creates the file or directory, the owner of that file/directory automatically will be that user and that user's primary group name.
To change group owner ship
6. chgrp training /data àWhich set the Group Ownership to training
or
chown root.training /data àWhich set the user owner to root and group owner to training group.
Verify /data using: ls -ld /data
You will get: drwxr-xr-x 2 root training ..............
Q138. CORRECT TEXT
Create a RAID Device /dev/md0 by creating equal two disks from available free space on your harddisk and mount it on /data.
Answer and Explanation:
Redhat Enterprise Linux 5 Supports the RAID LEVEL 0, RAID LEVEL 1, RAID LEVEL 5 and RAID LEVEL 6 at installation time. You can create it at installation time later no need to type lots of commands for RAID.
At Installation Time:
ii. Create the partitions using diskdruid.
iii. Create the Partitions having File system Type Software RAID.
iv. Click on RAID button
v. Type the Mount Point
vi. Select File system type
vii. Select RAID Level
viii. Select Partitions/disks as a member of RAID.
viii. Click on ok
After Installation: We can create the RAID Device after Installation on command-line.
11. Create the Two partitions having equal size. (Specify the Size using Cylinder, find the
remaining cylinder and divide by 2).
12. Change the Partition ID to fd (Linux raid Autodetect) by typing t.
13. Type w à To write on partitions table.
14. Use partprobe command to synchronic the partition table.
15. Use: mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda? /dev/hda?
16. Verify the RAID: mdadm --detail /dev/md0
17. mkfs -t ext3 /dev/md0
18. mount /dev/md0 /data
19. vi /etc/fstab
/dev/md0 /data ext3 defaults 0 0
20. Verify mounting devices using mount command.
Q139. CORRECT TEXT
Eric user should able to write on Document root directory.
Answer and Explanation:
Document directive is used in apache configuration file to specify the directory where all web site related documents are. According to question eric user should able to write into the Document root directory.
Better set the permission using ACL (Access Control List), to apply the permission using acl needs to mount the filesystem with acl options. Example in above answer documentroot is in /var and /var is mounting separate file system so needs to mount the /var file system with acl option.
1. vi /etc/fstab
LABEL=/var /var ext3 defaults 1 1
2. mount -o remount /var
3. setfacl -m u:eric:rwx /var/www/example
4. getfacl /var/www/example
getfacl and setfacl two commands used to maintain the permission through acl. setfacl is used to set the permission on file/directory, getfacl is used to display the permission of file/directory.
Q140. CORRECT TEXT
Create the directory /storage and group owner should be the sysusers group.
Answer and Explanation:
1. chgrp sysusers /storage
2. Verify using ls -ld /storage command. You should get like
drwxr-x--- 2 root sysusers 4096 Mar 16 17:59 /storage
chgrp command is used to change the group ownership of particular files or directory.
Another way you can use the chown command.
chown root:sysusers /storage