Sekedar coretan seorang nyubi
RedHat RH202 Braindumps
Article by Testkingworld.net
Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs) RH202 Test
RH202
QUESTION 1Change the root Password to redtophat
Answer andExplanation: 1. Boot the system in Single user mode 2. Use the passwd command
QUESTION 2Dig Server1.example.com, Resolve to successfully through DNS Where DNS serveris 172.24.254.254
Answer andExplanation:#vi /etc/resolv.confnameserver 172.24.254.254# dig server1.example.com#host server1.example.comDNS is the Domain Name System, which maintains a database that can help yourcomputer translate domain names such as {a target=”_new” rel=”nofollow”.DNS is based on the named daemon, which is built on the BIND (Berkeley InternetName Domain) package developed through the Internet Software ConsortiumUsers wants to access by name so DNS will interpret the name into ip address. You needto specify the Address if DNS server in each and every client machine. In RedhatEnterprise 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 nslookupcommands.
QUESTION 3Create the partition having 100MB size and mount it on /mnt/neo
Answer andExplanation:1. Use fdisk /dev/hda To create new partition.2. Type n For New partitions3. It will ask for Logical or Primary Partitions. Press l for logical.4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.5. Type the Size: +100M You can Specify either Last cylinder of Size here.6. Press P to verify the partitions lists and remember the partitions name.7. Press w to write on partitions table.8. Either Reboot or use partprobe command.9. Use mkfs -t ext3 /dev/hda? -}Where ? is your partition number10. Or RH202
11. mke2fs -j /dev/hda? To create ext3 filesystem.12. mkdir /mnt/neo13. vi /etc/fstab14. Write:15. /dev/hda? /mnt/neo ext3 defaults 1 216. Verify by mounting on current Sessions also:17. mount /dev/hda? /mnt/neo
QUESTION 4Your System is going use as a router for 172.24.0.0/16 and 172.25.0.0/16. Enable theIP Forwarding.
Answer andExplanation:1. echo “1″ >/proc/sys/net/ipv4/ip_forward2. vi /etc/sysctl.confnet.ipv4.ip_forward=1/proc is the virtual filesystem, containing the information about the running kernel. Tochange the parameter of running kernel you should modify on /proc. From Next rebootthe system, kernel will take the value from /etc/sysctl.conf.
QUESTION 5Some users home directory is shared from your system. Using showmount -elocalhost command, the shared directory is not shown. Make access the shared usershome directory.
Answer andExplanation:1. Verify the File whether Shared or not ? : cat /etc/exports2. Start the nfs service: service nfs start3. Start the portmap service: service portmap start4. Make automatically start the nfs service on next reboot: chkconfig nfs on5. Make automatically start the portmap service on next reboot: chkconfig portmapon6. Verify either sharing or not: showmount -e localhost7. Check that default firewall is running on system ? if running flush the iptablesusing iptables -F and stop the iptables service.
QUESTION 6neo user tried by:dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70files created successfully. Again neo tried to create file having 70K using followingcommand:dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70But he is unable to create the file. Make the user can create the file less then 70K. RH202
Answer andExplanation:Very Tricky question from redhat. Actually question is giving scenario to you toimplement quota to neo user. You should apply the quota to neo user on /home that neouser shouldn’t occupied space more than 70K.1. vi /etc/fstab LABEL=/home /home ext3 defaults,usrquota 0 0 ->To enable the quota on filesystem you should mount the filesystem with usrquota for userquota and grpquota for group quota.2. touch /home/aquota.user-> Creating blank quota database file.3. mount -o remount /home ->Remounting the /home with updated mount options.You can verify that /home is mounted with usrquota options or not using mountcommand.4. quotacheck -u /home ->Initialization the quota on /home5. edquota -u neo /home-> Quota Policy editorSee the snapshot 1 Disk quotas for user neo (uid 500): 2 Filesystem blocks soft hard inodes soft hard 4 /dev/mapper/vo-myvol 2 30 70 1 0 0Can you set the hard limit 70 and soft limit as you think like 30.Verify using the repquota /home command.
QUESTION 7One Logical Volume is created named as myvol under vo volume group and ismounted. The Initial Size of that Logical Volume is 124MB. Make successfully thatthe size of Logical Volume 245MB without losing any data. The size of logicalvolume 240MB to 255MB will be acceptable.
Answer andExplanation:1. First check the size of Logical Volume: lvdisplay /dev/vo/myvol2. Increase the Size of Logical Volume: lvextend -L+121M /dev/vo/myvol3. Make Available the size on online: resize2fs /dev/vo/myvol4. Verify the Size of Logical Volume: lvdisplay /dev/vo/myvol5. Verify that the size comes in online or not: df -hWe can extend the size of logical Volume using the lvextend command. As well as todecrease the size of Logical Volume, use the lvresize command. In LVM v2 we canextend the size of Logical Volume without unmount as well as we can bring the actualsize of Logical Volume on online using ext2online command.
QUESTION 8Quota is implemented on /data but not working properly. Find out theProblem and implement the quota to user1 to have a soft limit 60 inodes(files) and hard limit of 70 inodes (files).
Answer and RH202
Explanation:Quotas are used to limit a user’s or a group of users’ ability to consume disk space. Thisprevents a small group of users from monopolizing disk capacity and potentiallyinterfering with other users or the entire system. Disk quotas are commonly used by ISPs,by Web hosting companies, on FTP sites, and on corporate file servers to ensurecontinued availability of their systems.Without quotas, one or more users can upload files on an FTP server to the point offilling a filesystem. Once the affected partition is full, other users are effectively deniedupload access to the disk. This is also a reason to mount different filesystem directorieson different partitions. For example, if you only had partitions for your root (/) directoryand swap space, someone uploading to your computer could fill up all of the space inyour root directory (/). Without at least a little free space in the root directory (/), yoursystem could become unstable or even crash.You have two ways to set quotas for users. You can limit users by inodes or by kilobytesizeddisk blocks. Every Linux file requires an inode. Therefore, you can limit users bythe number of files or by absolute space. You can set up different quotas for differentfilesystems. For example, you can set different quotas for users on the /home and /tmpdirectories if they are mounted on their own partitions.Limits on disk blocks restrict the amount of disk space available to a user on your system.Older versions of Red Hat Linux included LinuxConf, which included a graphical tool toconfigure quotas. As of this writing, Red Hat no longer has a graphical quotaconfiguration tool. Today, you can configure quotas on RHEL only through the commandline interface.1. vi /etc/fstab/dev/hda 11 /data ext3 defaults,usrquota 122. Either Reboot the System or remount the partition.Mount -o remount /dev/hda11 /data3. touch /data/aquota.user4. quotacheck -ufm /data5. quotaon -u /data6. edquota -u user1 /dataand Specified the Soft limit and hard limit on opened file.To verify either quota is working or not:Soft limit specify the limit to generate warnings to users and hard limit can’t cross by theuser. Use the quota command or repquota command to monitor the quota information.
QUESTION 9One Logical Volume named lv1 is created under vg0. The Initial Size of that LogicalVolume is 100MB. Now you required the size 500MB. Make successfully the size ofthat Logical Volume 500M without losing any data. As well as size should beincreased online.
Answer andExplanation: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 equalsized RH202
chunks known as Physical Extents (PE). As there are several other conceptsassociated 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/lv12. Verify the Size on mounted directory: df -h or df -h mounted directory name3. Use : lvextend -L+400M /dev/vg0/lv14. resize2fs /dev/vg0/lv1 to bring extended size online.5. Again Verify using lvdisplay and df -h command.
QUESTION 10Create one partitions having size 100MB and mount it on /data.
Answer andExplanation:1. Use fdisk /dev/hda-> To create new partition.2. Type n-> For New partitions3. It will ask for Logical or Primary Partitions. Press l for logical.4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.5. Type the Size: +100M-> You can Specify either Last cylinder of Size here.6. Press P to verify the partitions lists and remember the partitions name.7. Press w to write on partitions table.8. Either Reboot or use partprobe command.9. Use mkfs -t ext3 /dev/hda?Ormke2fs -j /dev/hda?-> To create ext3 filesystem.10. vi /etc/fstabWrite:/dev/hda? /data ext3 defaults 1211. Verify by mounting on current Sessions also:mount /dev/hda? /data
QUESTION 11You are new System Administrator and from now you are going to handle thesystem and your main task is Network monitoring, Backup and Restore. But youdon’t know the root password. Change the root password to redhat and login in
Original Resource : http://www.testkingworld.net
Visit RH202 Link : RH202 Download PDF Link : RH202
Original Resource : http://www.testkingworld.net
Visit RH202 Link : RH202
RedHat RH202 Real QuestionsRedHat RH302 Real Questions
Tags: Braindumps, Redhat, Rh202
Recent Comments