Role-specific Red Hat Certification Interview Questions & Answers:
Warning: Trying to access array offset on value of type null in /home/u313694809/domains/interviewquestionsanswers.org/public_html/subcategoryLive-amp.php on line 153
A. When using Linear RAID, data is not striped across drives.
A. domain-name-servers
1. First check the size of Logical Volume: lvdisplay /dev/vo/myvol
2. Increase the Size of Logical Volume: lvextend -L+121M /dev/vo/myvol
3. Make Available the size on online: resize2fs /dev/vo/myvol
4. Verify the Size of Logical Volume: lvdisplay /dev/vo/myvol
5. Verify that the size comes in online or not: df -h
We can extend the size of logical Volume using the lvextend command. As well as to
decrease the size of Logical Volume, use the lvresize command. In LVM v2 we can
extend the size of Logical Volume without unmount as well as we can bring the actual
size of Logical Volume on online using ext2online command.
By Default system accept the logs only generated from local host. To accept the Logfrom other host configure:
1. vi /etc/sysconfig/syslog
SYSLOGD_OPTIONS="-m 0 -r"
Where
-m 0 disables 'MARK' messages.
-r enables logging from remote machines
-x disables DNS lookups on messages recieved with -r
2. service syslog restart
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
Quotas are used to limit a user's or a group of users' ability to consume disk space. This
prevents a small group of users from monopolizing disk capacity and potentially
interfering 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 ensure
continued availability of their systems.
Without quotas, one or more users can upload files on an FTP server to the point of
filling a filesystem. Once the affected partition is full, other users are effectively denied
upload access to the disk. This is also a reason to mount different filesystem directories
on different partitions. For example, if you only had partitions for your root (/) directory
and swap space, someone uploading to your computer could fill up all of the space in
your root directory (/). Without at least a little free space in the root directory (/), your
system could become unstable or even crash.
You have two ways to set quotas for users. You can limit users by inodes or by kilobytesized
disk blocks. Every Linux file requires an inode. Therefore, you can limit users by
the number of files or by absolute space. You can set up different quotas for different
filesystems. For example, you can set different quotas for users on the /home and /tmp
directories 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 to
configure quotas. As of this writing, Red Hat no longer has a graphical quota
configuration tool. Today, you can configure quotas on RHEL only through the command
line interface.
1. vi /etc/fstab
/dev/hda11 /data ext3 defaults,usrquota 1 2
2. Either Reboot the System or remount the partition.
Mount -o remount /dev/hda11 /data
3. touch /data/aquota.user
4. quotacheck -ufm /data
5. quotaon -u /data
6. edquota -u user1 /data
and Specified the Soft limit and hard limit on opened file.
We can control the services for current session and for next boot time also. For current
Session, we use service servicename start or restart or stop or status. For automatically on
next reboot time:
1. chkconfig servicename on or off
eg: chkconfig nfs on
chkconfig portmap on
or
ntsysv
Select the nfs and portmap services.
2. Reboot the system and identify whether services are running or not.
https://InterviewQuestionsAnswers.ORG.