New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Effective Study Techniques for the RedHat RH202 Exam

Questions 31

Add a new logical partition having size 100MB and create the /data which will be the mount point for the new partition.

Answer and Explanation:

  • Use fdisk /dev/hdaTo create new partition.
  • Type nFor New partitions
  • It will ask for Logical or Primary Partitions. Press l for logical.
  • It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
  • Type the Size: +100MYou can Specify either Last cylinder of Size here.
  • Press P to verify the partitions lists and remember the partitions name.
  • Press w to write on partitions table.
  • Either Reboot or use partprobe command.
  • Use mkfs –t ext3 /dev/hda?
  • Or
  • mke2fs –j /dev/hda? To create ext3 filesystem.
  • vi /etc/fstab
  • Write:
  • /dev/hda?/dataext3defaults0 0
  • Verify by mounting on current Sessions also:
  • mount /dev/hda? /data

Options:
RedHat RH202 Premium Access
Questions 32

One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.

Answer and Explanation:

The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal-sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:

  • Physical Volume (PV)is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
  • Physical Extent (PE)is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
  • Logical Extent (LE)is also a chunk of disk space. Every LE is mapped to a specific PE.
  • Logical Volume (LV)is composed of a group of LEs. You can mount a filesystem such as /home and /var on an LV.
  • Volume Group (VG)is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.

1. Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1

2. Verify the Size on mounted directory: df –h or df –h mounted directory name

3. Use : lvextend –L+400M /dev/vg0/lv1

4. ext2online –d /dev/vg0/lv1  to bring extended size online.

5. Again Verify using lvdisplay and df –h command.

Options:
Questions 33

There is one partition /dev/hda14 mounted on /data. The owner of /data is root user and root group. And Permission is full to owner user, read and execute to group member and no permission to others. Now you should give the full permission to user user1 without changing pervious permission.

Answer and Explanation:

We know that every files/directories are owned by certain user and group. And Permissions are defines to owner user, owner group and other.

-rwxr-x--- Full permission to owner user, read and write to owner group and no permission to others.

According to question: We should give the full permission to user user1 without changing the previous permission.

ACL (Access Control List), in ext3 file system we can give permission to certain user and certain group without changing previous permission. But that partition should mount using acl option. Follow the steps

  • vi /etc/fstab

/dev/hda14/dataext3defaults,acl0 1

  • Either Reboot or use: mount –o remount /data
  • setfacl –m u:user1:rwx /data
  • Verify using: getfacl /data

Options:
Questions 34

Your system is giving error while booting on Runlevel 5 . Make successfully boot your system in runlevel 5.

Answer and Explanation: While you load the X Window System, you will get the problem. To troubleshoot follow the following steps:

1.Check the /tmp is full ?

2.Check your quota, hard limit is already crossed ?

3.Check xfs service is running ?

4.Configure the Video card, Resolution, monitor type using: system-config-display (Most Probably in Redhat exam)

5.Edit the /etc/inittab to set default runlevel 5.

id:5:initdefault:

Options:
Questions 35

One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.

Answer and Explanation:

1.rpm –ivh ftp://server1/example.com/pub/updates/zsh-*

or

1.Login to ftp server : ftp ftp://server1.example.com using anonymous user.

2.Change the directory: cd pub and cd updates

3.Download the package: mget zsh-*

4.Quit from the ftp prompt : bye

5.Install the package

6.rpm -ivh zsh-*

7.Verify either package is installed or not : rpm -q zsh

Options:
Questions 36

There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL 4 Installed System is going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on that Server. How will make successfully ping to 192.168.1.0/24 Network’s Host?

Answer and Explanation:

1.vi /etc/sysconfig/network

GATEWAY=192.168.0.254

OR

vi /etc/sysconf/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=static

ONBOOT=yes

IPADDR=192.168.0.?

NETMASK=255.255.255.0

GATEWAY=192.168.0.254

2.service network restart

Options:
Questions 37

You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don’t know the root password. Change the root password to redhat and login in default Runlevel.

Answer and Explanation:

When you Boot the System, it starts on default Runlevel specified in /etc/inittab:

Id:?:initdefault:

When System Successfully boot, it will ask for username and password. But you don’t know the root’s password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.

  • Restart the System.
  • You will get the boot loader GRUB screen.
  • Press a and type 1 or s for single mode

ro root=LABEL=/ rhgb queit s

  • System will boot on Single User mode.
  • Use passwd command to change.
  • Press ctrl+d

Options:
Questions 38

You Completely Install the Redhat Enterprise Linux ES 4 on your System. While start the system, it’s giving error to load X window System. How will you fix that problem and make boot successfully run X Window System.

Answer and Explanation:

Think while Problems occurred on booting System on Runlevel 5 (X Window).

  • /tmp is full or not
  • Quota is already reached
  • Video card or resolution or monitor is misconfigured.
  • xfs service is running or not.

Do These:

1.df –h /tmp /tmp is full remove the unnecessary file

  • quota usernameif quota is already reached remove unnecessary file from home directory.
  • Boot the System in runlevel 3.you can pass the Kernel Argument from boot loader.
  • Use command: system-config-displayIt will display a dialog to configure the monitor, Video card, resolution etc.
  • Set the Default Runlevel 5 in /etc/inittab

id:5:initdefault:

6.Reboot the System you will get the GUI login Screen.

Options:
Questions 39

Change the root Password to redtophat

Answer and Explanation:

  • Boot the system in Single user mode
  • Use the passwd command

Options:
Questions 40

Dig Server1.example.com, Resolve to successfully through DNS Where DNS server is 172.24.254.254

Answer and Explanation:

#vi /etc/resolv.conf

nameserver 172.24.254.254

# dig server1.example.com

#host server1.example.com

DNS is the Domain Name System, which maintains a database that can help your computer translate domain names such as www.redhat.com to IP addresses such as 216.148.218.197. As no individual DNS server is large enough to keep a database for the entire Internet, they can refer requests to other DNS servers.

DNS is based on the named daemon, which is built on the BIND (Berkeley Internet Name Domain) package developed through the Internet Software Consortium

Users wants to access by name so DNS will interpret the name into ip address. You need to specify the Address if DNS server in each and every client machine. In Redhat Enterprise Linux, you need to specify the DNS server into /etc/resolv.conf file.

After Specifying the DNS server address, you can verify using host, dig and nslookup commands.

Options:
Exam Code: RH202
Certification Provider: RedHat
Exam Name: RHCT (Redhat Certified Technician) RH202
Last Update: Jan 19, 2025
Questions: 140