♥♥ 2021 NEW RECOMMEND ♥♥
Free VCE & PDF File for Red Hat RH302 Real Exam (Full Version!)
★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions
Free Instant Download NEW RH302 Exam Dumps (PDF & VCE):
Available on:
http://www.surepassexam.com/RH302-exam-dumps.html
Q91. CORRECT TEXT
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. resize2fs /dev/vg0/lv1 à to bring extended size online.
5. Again Verify using lvdisplay and df -h command.
Q92. CORRECT TEXT
Who ever creates the files/directories on /archive group owner should be automatically should be the same group owner of /archive.
Answer and Explanation:
1. chmod g+s /archive
2. Verify using: ls -ld /archive
Permission should be like:
drwxrws--- 2 root sysuser 4096 Mar 16 18:08 /archive
If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.
To set the SGID bit: chmod g+s directory
To Remove the SGID bit: chmod g-s directory
Q93. CORRECT TEXT
Raw printer named printerx where x is your station number is installed and shared on server1.example.com. Install the shared printer on your PC to connect shared printer using IPP Protocols. Your server is 192.168.0.254.
Answer and Explanation:
1. Open the Browser either firefox or links
2. Type : http://localhost:631
3. Click on Manage Printer
4. Click on Add Printer
5. Type Queue name like stationx and click on continue
6. Type Device type or printing Protocol: i.e Internet printing Protocol
7. Click on Continue
8. Type Device URL: ipp://server1.example.com/printers/printerx
9. Click on Continue
10. Select RAW Model printer
11. Click on Continue
12. Test by sending the printing job
Q94. CORRECT TEXT
Add a cron schedule to take full backup of /home on every day at 5:30 pm to /dev/st0 device.
Answer and Explanation:
1. vi /var/schedule
30 17 * * * /sbin/dump -0u /dev/st0 /dev/hda7
2. crontab /var/schedule
3. service crond restart
We can add the cron schedule either by specifying the scripts path on /etc/crontab file or by creating on text file on crontab pattern.
cron helps to schedule on recurring events. Pattern of cron is:
Minute Hour Day of Month Month Day of Week Commands
0-59 0-23 1-31 1-12 0-7 where 0 and 7 means Sunday.
Note * means every. To execute the command on every two minutes */2.
Q95. CORRECT TEXT
You are administrator of Certkiller network. First time you are going to take the full backup of all user's home directory. Take the full backup of /home on /tmp/back file.
Answer and Explanation:
1. dump -0u -f /tmp/back /dev/hda4
dump is the standard backup utility. According to the questions, fullback should take. -0 means fullback, -u means update the /etc/dumpdates which maintains the backup record and -f means filename. If you are directly taking backup into other device, you can specify the device name.
i.e dump -0u -f /dev/st0 /dev/hda4. Where hda4 is a separate partition mounted on /home.
Q96. CORRECT TEXT
neo user tried by:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
files created successfully. Again neo tried to create file having 70K using following command:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
But he is unable to create the file. Make the user can create the file less then 70K.
Answer and Explanation:
Very Tricky question from redhat. Actually question is giving scenario to you to implement quota to neo user. You should apply the quota to neo user on /home that neo user 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 user quota 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 mount command.
4. quotacheck -u /home àInitialization the quota on /home
5. edquota -u neo /home àQuota Policy editor
See 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 0
Can you set the hard limit 70 and soft limit as you think like 30.
Q97. CORRECT TEXT
You have a directory /local. You want to make available that directory to all the members of example.com and trusted.cracker.org. But directory should available in read and write to all the members of example.com domain and read only to cracker.org domain.
Answer and Explanation:
1. vi /etc/exports
/local *.example.com(rw,sync) trusted.cracker.org(ro,sync)
Check the SELinux Context, should be like this:
-rw-r--r-- root root system_u:object_r:exports_t /etc/exports
Use the restorecon -R /etc command to restore the selinux context of the file.
2. service nfs start | restart
3. service portmap start | restart
4. chkconfig nfs on
5. chkconfig portmap on
In Linux to share the data we use the /etc/exports file. Pattern is:
Path client(permission)
Shared Directory Path, Client can be single host or domain name or ip address. Permission should specify without space with client lists in parentheses. NFS is RPC service so portmapper service should restart after starting the nfs service. We can specify multiple clients' list separating by space with different shared option.
Q98. CORRECT TEXT
Create the user named jeff, marion, harold
Answer and Explanation:
1. useradd jeff
2. useradd marion
3. useradd harold
useradd command is used to create the user. All user's information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.
Q99. CORRECT TEXT
Create one partitions having size 100MB and mount it on /data.
Answer and Explanation:
Use fdisk /dev/hda àTo create new partition.Type n àFor New partitionsIt 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? /data ext3 defaults 0 0
11. Verify by mounting on current Sessions also:
mount /dev/hda? /data
Q100. CORRECT TEXT
Create the group named training
Answer and Explanation:
1. groupadd training
To create a group we use the groupadd command.
Verify from: cat /etc/group whether group added or not?