1Z0-460 Oracle Linux 6 Implementation Essentials - Bootcamp Summary
1Z0-460 Oracle Linux 6 Implementation Essentials - Bootcamp Summary
Oracle Linux 6
1Z0-460
Oracle Linux 6 Implementation Essentials
Bootcamp Summary
By:
Ariel Loría
2013
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
Contenido
Oracle Linux Overview.......................................................................................................................3
Oracle Linux 6 installation..................................................................................................................8
Oracle Linux Boot and System Configuration.....................................................................................9
Oracle Linux Package Management and Ksplice Patchibg................................................................14
User and group administration........................................................................................................16
Oracle Linux File System Administration..........................................................................................18
Basic Network and Security Administration.....................................................................................21
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
Network support
o Erradata, updates, bug fixes
o Comprehensive indemnification
o Use of base functionality in EM
o Access to additional software channels on ULN
Basic support
o All benefits of network support
o 24x7 phone and online support
o Comprehensive knowledge base
o Oracle clusterware, OCFS2 software
Premier support
o All benefits of basic support
o Premier backports
o Ksplice Zero downtime updates
o Lifetime sustaining support
Download medias
Software download
o https://edelivery.oracle.com/linux
Oracle Unbreakable Linux Network
o linux.oracle.com
Public yum server
o http://public-yum.oracle.com
Key features
UEK
Ksplice Zero Downtime Patching
BTRFS
DTrace
Control Groups
Oracle RDBMS Pre-Install RPM
Enterprise Management
Oracle Database Smart Flash Cache
Extreme performance
Available for Oracle Linux 5 and Oracle Linux 6
Tested and certified for Oracle products
Latest hardware support and bug fixes
Kernel enhancements
Easy to switch to UEK, and even easier to switch back
Lets you install and apply kernel updates without downtime, disruption or rebooting
All while applications are running
Zero downtime updates (only offered by Oracle)
There is a 30 Day Free Trial
Benefits
o Improved availability /Uptime
o Enhance Security / Lower Risk
o Reduced Operational Cost
o Improved Serviceability
Modes of operation
o Standard: Each system needs network access
o Ksplice Local Server: Local server needs network access
o Offline: Updates distributed as RPMs via local yum repository
DTrace
Dynamic tracing
Troubleshooting and performance analysis
Use Probes to record data
DTrace and UEK packages are available on ULN x86_64
Control groups
Enterprise Management
Anaconda installer
o Runs in text or graphical mode
o Install from CD, DVD USB or images on hard disk drive
o Supports HTTTP, FTP and NFS installation
o Default install uses ext4 file system with UEK kernel
Minimal boot media option (Boot ISO)
o Boot system to install OL over the network
o You can use a kickstart configuration file
o UEK boot ISO images for BTRFS root file system installation
Power on
BIOS
Load stage 1 GRUB from MBR
Load stage 1.5 then stage 2 ofGRUB
GRUB reads menu.lst
Present boot-time menu
GRUB loads kernel image and initial RAM disk
Kernel mounts root file system
Kernel runs init
Init runs scripts to start user-level services
Boot concepts
BIOS: It checks the system and launches the first stage boot loader on the MBR of the
primary hard disk
MBR: It launches the second stage boot loader from /boot partition
GRUB: It just loads and executes kernel and initrd images using /boot/grub/grub.conf
Kernel: It initializes and configures hardware, mounts /root filesystem and executes
/sbin/init
Init: It runs /etc/rc.d/rc.sysinit script, which executes all steps required for system
initialization
Init Runlevel: Depending on init level setting, system will execute programs for one of the
directories /etc/rc.d
Init
Init RunLevels
0: Halt (start)
1: Single user mode
2: Multiuser without NFS
3: Full multi-user text mode
4: Not used
5: Full multi-user graphical mode (GUI)
6: Reboot
Kernels
/etc/sysconfig directory
"ulimit -a" command show all resources and limits configured by shell
o Hard limits cannot be increased by a non-root user. -H and -S options are used to
change hard and soft limits
o You can see soft and hard limits in /etc/security/limits.conf file
"nice" command can be used to change priority than default one
o Values range are from -20 to 20
o -20 is very high priority
o 20 is a very low priority
"renice" can be used to change priority of a running process (nice cannot develop this
operation)
Rsyslog
With "logger" command you can write a message string in log message
(/var/log/message)
/var/log files
Package management
RPM command
o rpm -i: Install package
o rpm -U: Upgrade package
o rpm -e: Erase/remove package
o rpm -F: Freshen package
o rpm -q: Query option
o rpm -V: Verify option
YUM (Yellowdog Updater, Modified) command
o Open-source command-line package-management tool
o Interactive RPM based package manager
o Preferred way of managing resolved dependencies
o Main configuration file: /etc/yum.conf
o Repositories defined in: /etc/yum.repos.d directory
o Channels in repo can be enabled or disabled
o Options
repolist: Produces a list of configured repositories
list: List information about packages
install: Install package
update: Update package
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
Setup
o Get Ksplice Uptrack access key (license key)
o Setup Oracle Ksplice Uptrack account
o Download and install Ksplice software
Ksplice Uptrack Service
o Common yum and rpm updates on disk and require reboot of system. This
because updates are applied in memory
o Uptrack commands: uptrack-upgrade, uptrack-show, uptrack-unme, etc.
o Configuration file: /etc/uptrack.conf
Files
Authentication
o Shadow passwd: x
o UID: 502
o GID: 502
o GECOS information: oracle2
o Home directory: /home/oracle2
o Default shell: /bin/bash
You can use ID command to get information about a user
"/sbin/nologin" user shell can be assigned to avoid login in the system (this can be
changed directly in /etc/passwd)
"usermod" command can be used to change user settings
"groupmod" command can be used to change user settings
When "userdel" command is used, "-r" clause need to be added to remove /home/user
directory
Many users can be configured to have the same rights to specific directory
"chage -l" command can be used know security profile of specific user
With "chage" command you can force a user to change its password next time it login
NIS or LDAP configuration can be made but you need an environment that provides these
services to Linux
Pluggable Authentication Modules (PAM) can be used to integrate multiple low-level
authentication schemes into a high-level API, for programs that rely on authentication to
be written independent of the underlying authentication scheme
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
Steps
o Partition disk -> Create file system -> Mount file system
Disk partitioning
o Divides disk into logical disks known as partitions
o Boot, root and swap are recommended and minimal partitions
Partitioning utilities: fdisk, cfdisk, parted, partx
partprobe command informs OS about partition table changes
File systems
Linux Device Mapper (DM) and LVM2 provides powerful and flexible support for managing
storage
DM servers as generic framework to map one block device onto another and serves as
foundation to LVM2
Linux LVM2 features includes:
o Growing values
o Adding additional Block Devices
Partition Type from LVM2
Block devices are arranged as physical volumes that can be grouped into volume groups.
Logical volumes are created within the volume groups. File system are created on top of
the logical volumes
Volume groups and logical volumes can be named individually for easy
addressing/organizing storage
Associated commands
o Physical volumes (PV): pvcreate, pvdisplay, pvs, pvremove
o Volume groups (VG): vgcreate, vgdisplay, vgs, vgextend, vgremove
o Logical volumes (LV): lvcreate, lvdisplay, lvs, lvextend
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
Swap space
BTRFS
Network bonding
It provides a method for aggregating multiple network interfaces using single logical
"bonded" interface
Provides more bandwidth and redundancy
Bonding policies: 0 (balance-rr), 1 (active-backup) etc.
system-config-services or serviceconf
o Enable / Disable system services
o Functionality to start / stop /restart
o Secure systems by disabling services you don't need
/etc/init.d: Directory containing system V init scripts
Command line: Service to run a service, check, start and stop
chkconfig commands: Let check status of service for various init runlevels
Common service
SELinux Introduction
Firewall
It prevent unauthorized network packets from being accesed the system's network
interface
It examines network traffic and allows or deny based on specific criterias
Firewall configuration tool (system-config-firewall)
o GUI interface
o Creates basic iptables rules for a general-purpose firewall
o Advanced configuration/rules use the "iptables" tool
o Firewall configuration rules are stored in /etc/sysconfig/iptables file
IPTables
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
ethtool: It is used to change settings like speed, duplex mode (half-duplex, full duplex),
auto-negotiation of network speed, etc.
"netstat" and "route" commands can be used to troubleshoot network problems
Use "service network status" to check current state of network interfaces
A bond interface can be configured with many interfaces to provide high availability and
redundancy. To do that, two minimal interfaces are needed
/etc/rc.d/init.d -> SysV services
Easiest way to avoid a service is accessed is turn them off. KISS! Service Configuration tool
can accomplish that. "system-config-services" command can be used
If "chkconfig service on" command is used service is enabled in run levels 2, 3, 4 and 5
(applies to the next reboot)
"ntsysv" command can be used to manage services (activate them or disabled them)
SELinux can be configured with different graphic and command-line tools
Firewall can be configured with different graphic and command-line tools (system-config-
firewall)
With " netstat -tulpn | grep 80" command you can guarantee services that are running in
specified port (in this case, http server)
"iptables" tool is useful for more complex rules
You can use plugins to calculate and install just secure packages based on CVE (Common
Vulnerabilities and Exposures)
Yum can specify to download secured packages and list available
If you want to check that an specific CVE has been applied in a Oracle Linux, you need to
run the following command "rpm -q --changelog rpmpackage | grep CVEnumber"
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
Sosreport Tool
System Tools
strace: Capture system calls and signals of a running process or a process being launched
top: Dynamic real time view of a Linux system processes/tasks
tcpdump: Dumps traffic on a network
Ethereal / Wireshark: Network protocol analyzer tool
netstat, mpstat, dstat...and others
System Monitor
Kdump
DTrace
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6
Additional notes
"netstat -r" and "route -n" commands can be used to find and print routing table and
default gateway information of a network
"installonly_limit" value in /etc/yum.conf represent the maximum number of versions that
can be installed for any single package listed in the "installonlypkgs" value
In "nsswitch.conf" file you can check if users use NIS, local files, DNS or others
Base release of Oracle Linux are contained in the Oracle Public YUM server
"echo 1> /proc/sys/net/ipv4_ip_forward" enables packet without making changes
permanently
Oracle Clusterware Software characteristics
o It is a portable software that allows clustering of single servers and they cooperate
as single system
o In basic and premier level, Oracle Clusterware can be deploy without additional
cost
1Z0-460 Oracle Linux 6 Implementation Essentials
Oracle Linux 6