Q1. 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.
Answer:
Q2. 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
Disk quotas for user neo (uid 500):
Filesystem blocks soft hard inodes soft hard
/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.
Verify using the repquota /home command.
Answer:
Q3. CORRECT TEXT
Create the group named sysusers.
Answer and Explanation:
1. groupadd sysusers
groupadd command is used to create the group and all group information is stored in /etc/group file.
Answer:
Q4. CORRECT TEXT
Your system is giving error to load X window System. Make successfully boot your system in runlevel5.
Answer and Explanation:
While you load the X Window System, you will get the problem. Problem may caused by different error.
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:
Answer:
Q5. CORRECT TEXT
One Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server 192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NISuser login in your system
automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.
Answer and Explanation:
1. use the authconfig --nisserver=<NIS SERVER> --nisdomain=<NIS DOMAIN> --update
Example: # authconfig --nisserver=192.168.0.254 --nisdomain=RHCE --update
or system-config-authentication
2. Click on Enable NIS
3. Type the NIS Domain: RHCE
4. Type Server 192.168.0.254 then click on next and ok
5. You will get a ok message.
6. Create a Directory /rhome/stationx where x is your station number.
6. vi /etc/auto.master and write at the end of file
/rhome/stationx /etc/auto.home --timeout=60
7. vi /etc/auto.home and write
* -rw,soft,intr 192.168.0.254:/rhome/stationx/&
Note: please specify your station number in the place of x.
8. Service autofs restart
9. Login as the nisuser2001 or nisuser2002 on another terminal will be Success.
According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config-authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.
Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On /etc/auto.master file we specified the mount point the configuration file for mount point.
Answer:
Q6. 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.
Answer:
Q7. CORRECT TEXT
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
Answer:
Q8. CORRECT TEXT
You Completely Install the Redhat Enterprise Linux 5 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 notQuota is already reachedVideo 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 filequota 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.
Answer:
Q9. CORRECT TEXT
Whoever creates the file on /data make automatically owner group should be the group owner of /data directory.
Answer and Explanation:
When user creates the file/directory, user owner will be user itself and group owner will be the primary group of the user.
There is one Special Permission SGID bit, when you set the SGID bit on directory,When users creates the file/directory automatically owner group will be same as a parent directory.
9. chmod g+s /data
10. Verify using: ls -ld /data
You will get: drwxrws---
Answer:
Q10. CORRECT TEXT
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
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?Ormke2fs -j /dev/hda? à To create ext3 filesystem.vi /etc/fstabWrite:/dev/hda? /data
ext3 defaults 0 0Verify by mounting on current Sessions also:mount /dev/hda? /data
Answer: