RedHat Related Exams
RH202 Exam

Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.
Answer and Explanation: 1. vi /etc/resolv.conf
Write : nameserver 192.168.0.254
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 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.
There are three Disk Partitions /dev/hda8, /dev/hda9, /dev/hda10 having size 100MB of each partition. Create a Logical Volume named testvolume1 and testvolume2 having a size 250MB. Mount each Logical Volume on lvmtest1, lvmtest2 directory.
Answer and Explanation:
Steps of Creating LVM:
1.pvcreate /dev/hda8 /dev/hda9 /dev/hda10
pvdisplay command is used to display the information of physical volume.
2.vgceate test0 /dev/hda8 /dev/hda9 /dev/hda10
vgdisplay command is used to display the information of Volume Group.
3.lvcreate –L 250M –n testvolume1 test0
lvdisplay command is used to display the information of Logical Volume.
4.lvcreate –L 250M –n testvolume2 test0
5.mkfs –t ext3 /dev/test0/testvolume1
6.mkfs –t ext3 /dev/test0/testvolume2
7.mkdir /lvtest1
8.mkdir /lvtest2
9.mount /dev/test0/testvolume1 /lvtest1
10.mount /dev/test0/testvolume2 /lvtest2
11.vi /etc/fstab
/dev/test0/testvolume2/lvtest2ext3defaults0 0
/dev/test0/testvolume1/lvtest1ext3defaults0 0
To create the LVM( Logical Volume Manager) we required the disks having ‘8e’ Linux LVM type. First we should create the physical Volume, then we can create the Volume group from disks belongs to physical Volume. lvcreate command is used to create the logical volume on volume group. We can specify the size of logical volume with –L option and name with -n option.