Oracle Linux 6 Implementation Essentials
Question No: 31
View the following GRUBcommand or the output offixingthe GRUB boot problem:
Based on the output, which statement is true?
The GRUB command sequence restores GRUB from the first partition on the second hard disk.
The GRUB command sequence does not restore GRUB.
GRUB command sequence restores GRUB from the second partition on the first hard disk.
The GRUB command sequence verifies the stage1 on the first partition on first hard disk.
Explanation: hd0,1 indicates the first hard drive and the second partition.
*grub – the grub shell
Enter the GRand Unified Bootloader command shell.
*In the following example we assume that the boot partition is located at /dev/hda5 and that GRUB must be installed on the first disk#39;s MBR.
grubgt; root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grubgt; setup (hd0)
Checking if quot;/boot/grub/stage1quot; exists… yes Checking if quot;/boot/grub/stage2quot; exists… yes Checking if quot;/boot/grub/e2fs_stage1_5quot; exists… yes
Running quot;embed /boot/grub/e2fs_stage1_5 (hd0)quot;… 23 sectors are embedded. succeeded
Running quot;install /boot/grub/stage1 (hd0) (hd0)1 23 p (hd0,4)/boot/grub/stage2
/boot/grub/menu.lstquot;… succeeded Done.
The first command includes the location of the boot partition, thus indicating where the boot loader files are located. The second command installs GRUB on the MBR. For this purpose, a file called stage1_5 is used to grant GRUB access to the file system on the boot partition.
Question No: 32
You run the following command as the root user to set properties of a network interface (eth0):
# ifconfig eth0 192.0.2.102 netmask 255.255.255.0 up
Setting network interface properties with the ifconfig utility is not persistent across system reboots. Which file would you edit to make settings and to make them persist across system reboots?
Explanation: Modifytheeth0config file
Opentheconfiguration using a text editor such as vi/vim, and make sure file read as follows for eth0 interface
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Question No: 33
The change that are made by using echo command, like the one shown in the example below, are not persistent and disappear when the system us restarted. Which file should be modified to make configuration changes across reboots?
# echo www.example.com gt; /proc/sys/kernel/hostname
Explanation: A configuration file exists for the purpose of persisting changes, named/etc/sysct1.conf. When booting, your server starts the procps service that reads this configuration file and applies all settings in it.
*If you#39;ve ever needed to change the hostname for Red Hat Linux, CentOS or similar operating systems, you can do so easily with one simple command.
Just use the echo command to replace the contents of /proc/sys/kernel/hostname with your new host name.
# echo hostname.com gt; /proc/sys/kernel/hostname Then restart the network interfaces:
# /etc/init.d/network restart
Shutting down interface venet0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ]
Bringing up interface venet0: RTNETLINK answers: File exists RTNETLINK answers: File exists
[ OK ]
Now you can use the hostname command to verify that it has changed.
Question No: 34
The ASMlib on Linux us designed to .
Make managing ASM volume easier.
Make managing ASM volumes easier and provide a performance improvement over ASM volumes alone.
Provide load balancing across multiple volumes.
Allow the user to list contents of the volume from the OS command line.
Explanation: ASMLib is an optional support library for the Automatic Storage Management feature of the Oracle Database.
ASMLib allows an Oracle Database using ASM more efficient and capable access to the disk groups it is using.
Question No: 35
Which file system is both new and now installed by default inOracle Linux 6withUnbreakable Enterprise Kernel (UEK)?
Explanation: Oracle Linux 6 includes many new features, including:
The ext4 filesystem is installed by default.
Question No: 36
You have to collect data by using the OS Watcher tool to help diagnose a performance issue on your Oracle Linux system. You need to collect data every 30 seconds by using this tool and archive this data for a period of three days. Which is the OS Watcher tool option that can be used to collect this data from your system?
# ./startOSWbb.sh -t 30 -p 3
# ./startOSWbb.sh 30 72
# ./startOSWbb.sh -int = 30 -days = 3
# ./startOSWbb.sh 30 3
Answer: B Explanation: Example:
/startOSWbb.sh 60 24
collect every 1 minute and keep 24 hours of archive files.
Question No: 37
Examine the following snippet from the rsyslog.conffile.
kern.info; kern.!err /var/adm/kernel.log What do these two rules mean?
Direct all kernel messages of the priority crit and higher to machine console. Additionally, log all kernel messages that come with priorities from info and up in the
Direct all kernel messages of the priority crit and higher to machine console.
Additionally, log all kernel messages that come with priorities from info up to warning in the
Direct all kernel messages of the priority crit and higher to machine console. Additionally, log all messages that come with priorities from info and err in the
Direct all kernel messages of the priority crit and higher to machine console. Additionally, log all kernel messages that come with priorities other than info and err into the /var/adm/kernel.log file.
Answer: B Explanation: Example:
kern.crit @finlandia;RFC3164fmt kern.crit /dev/console kern.info;kern.!err /var/adm/kernel-info
The first rule direct any message that has the kernel facility to the file /var/adm/kernel.
The second statement directs all kernel messages of the priority crit and higher to the remote host finlandia. This is useful, because if the host crashes and the disks get irreparable errors you might not be able to read the stored messages. If they#39;re on a remote host, too, you still can try to find out the reason for the crash.
The third rule directs these messages to the actual console, so the person who works on the machine will get them, too.
The fourth line tells rsyslogd to save all kernel messages that come with priorities from info up to warning in the file /var/adm/kernel-info. Everything from err and higher is excluded.
Question No: 38
Which two statements describe Oracle ksplice?
Ksplice actively applies kernel errata updates to the on-disk image and after a subsequent reboot changes take effect.
Ksplice can be used to update Oracle Database software installed on a running Oracle Linux system.
Ksplice actively applies kernel errata updates to the running Oracle Linux kernel image.
Ksplice only works with the Red Hat Compatible Kernel.
Ksplice allows customers to remain current with their OS vulnerability patches while at the same time minimizing downtime.
Explanation: Ksplice is a free softwareextension of the Linux kernel which allows system administrators to apply security patches to a running kernel without having to reboot the operating system(C, not A)(a technique broadly referred to as Dynamic Software Updating). It only supports patches that don#39;t make significant semantic changes to kernel data structures.Ksplice has been implemented for Linux on the x86-32 and x86-64 architectures. It was developed by Ksplice, Inc. until 21 July 2011, when Oracle acquired Ksplice and started offering support for Oracle Linux(not D).Support for Red Hat Enterprise Linux was dropped and turned into a free 30-day trial for RHEL customers as an incentive to migrate to Oracle Linux Premier Support.
Question No: 39
You have to find out the version of bash shell package installed on your Oracle Linux system. Which yum command can help you find the version information?
# yum version bash
# yum showversion bash
# yum info bash
# yum listversion bash
Answer: C Explanation: Example:
[oracle@oraclelinux6 ~]$ yum info bash
Loaded plugins: refresh-packagekit, security Installed Packages
Name : bash Arch : x86_64 Version : 4.1.2 Release : 9.el6_2
Size : 3.0 M Repo : installed
From repo : ol6_u3_base
Summary : The GNU Bourne Again shell URL : http://www.gnu.org/software/bash License : GPLv3
Description : The GNU Bourne Again shell (Bash) is a shell or command language interpreter that is compatible with the Bourne shell (sh). Bash
incorporates useful features from the Korn shell (ksh) and the C shell (csh). Most sh scripts can be run by bash without modification.
Question No: 40
View the output below.
As a root user, yourun the two ulimit commands as shownin the output below.Why does the second ulimitcommand fail as shown in the output?
The ulimit command cannot be run from the bash shell.
The ulimit command syntax is not correct.
The soft limit value of file description cannot be set greater than the hard limit value.
The soft limit of file descriptions’ value should always be less than 1024.
Explanation: Any user can set a soft limit to any value less than or equal to the hard limit. Any user can lower a hard limit. Only a user with appropriate privileges can raise or remove a hard limit.
*limit, ulimit, unlimit- set or get limitations on the system resources available to the current shell and its descendents
ulimit [- [HS] [c | d | f | n | s | t | v]] limit
Displays or sets a hard limit.
Displays or sets a soft limit. Reference: man ulimit
|Lowest Price Guarantee||Yes||No||No|
|Free VCE Simulator||Yes||No||No|