The document provides a survival guide and cheat sheets for working efficiently in a Linux/UNIX environment while doing proof of concept or prototype work, covering topics such as working in the shell, storage and disk management using tools like LVM, text processing utilities, and configuration files that are important to understand. It also includes shortcuts for common tasks like adding a disk without restarting or creating an offline yum package repository for dependency resolution.
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Andrejs Prokopjevs
This presentation covers the idea of logical hostname feature and its possible use case with E-Business Suite, why it is a must-have configuration for DR, how it can improve your test/dev instance cloning and lifecycle processes, especially in a cloud deployment, support overview by 11i/R12.0/R12.1, and why it is a very hot topic right now for R12.2. Additionally, we will describe possible advanced configuration scenarios like container based virtualization. The content is based on real client environment implementation experience.
In this session, we looked at five things you might not know about the Oracle Database or might have forgotten. For each topic, I explained the functionality and demonstrated the benefits using real-world examples. The topics covered apply to anyone running Oracle Database 11g and up, including Standard Edition, with only a few minor exceptions.
Hypervisors are becoming more and more widespread in embedded environments, from automotive to medical and avionics. Their use case is different from traditional server and desktop virtualization, and so are their requirements. This talk will explain why hypervisors are used in embedded, and the unique challenges posed by these environments to virtualization technologies.
Xen, a popular open source hypervisor, was born to virtualize x86 Linux systems for the data center. It is now the leading open source hypervisor for ARM embedded platforms. The presentation will show how the ARM port of Xen differs from its x86 counterpart. It will go through the fundamental design decisions that made Xen a good choice for ARM embedded virtualization. The talk will explain the implementation of key features such as device assignment and interrupt virtualization.
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Andrejs Prokopjevs
This presentation covers the idea of logical hostname feature and its possible use case with E-Business Suite, why it is a must-have configuration for DR, how it can improve your test/dev instance cloning and lifecycle processes, especially in a cloud deployment, support overview by 11i/R12.0/R12.1, and why it is a very hot topic right now for R12.2. Additionally, we will describe possible advanced configuration scenarios like container based virtualization. The content is based on real client environment implementation experience.
In this session, we looked at five things you might not know about the Oracle Database or might have forgotten. For each topic, I explained the functionality and demonstrated the benefits using real-world examples. The topics covered apply to anyone running Oracle Database 11g and up, including Standard Edition, with only a few minor exceptions.
Hypervisors are becoming more and more widespread in embedded environments, from automotive to medical and avionics. Their use case is different from traditional server and desktop virtualization, and so are their requirements. This talk will explain why hypervisors are used in embedded, and the unique challenges posed by these environments to virtualization technologies.
Xen, a popular open source hypervisor, was born to virtualize x86 Linux systems for the data center. It is now the leading open source hypervisor for ARM embedded platforms. The presentation will show how the ARM port of Xen differs from its x86 counterpart. It will go through the fundamental design decisions that made Xen a good choice for ARM embedded virtualization. The talk will explain the implementation of key features such as device assignment and interrupt virtualization.
WebLogic Server Work Managers and Overload ProtectionJames Bayer
A tour of the WebLogic Server work manager and self-tuning thread pool features that automatically adjust to changing workloads and protect the server from overload conditions.
Achieving Continuous Availability for Your Applications with Oracle MAAMarkus Michalewicz
First presented during Oracle Cloud World 2022, this presentation discusses how to "Achieving Continuous Availability for Your Applications with Oracle MAA". You will learn how Application Continuity and related technologies keep your applications available. Get technical insights into how Oracle Database can help protect your application workflows from interruptions caused by planned maintenance or unplanned outages. Hear from customers about which applications benefit the most right away without code changes—and when customization may be required.
VMworld 2017 - Top 10 things to know about vSANDuncan Epping
In this session Cormac Hogan and I go over the top 10 things to know about vSAN. This is based on two years of questions/answers from our field and customers. Useful for any VMware vSAN customer!
#STO1264BU #STO1264BE
Static partitioning is becoming increasingly common in embedded. A static hypervisor, such as Xen dom0less, is employed to split the hardware resources into multiple domains and run a different OS in each domain. For instance, Linux and Zephyr. Only the simplest static partitioning configurations don't involve any data exchanges between the domains. Often, communication and data exchanges between two or more environments are required to complete the data processing pipeline that implements the target application. However, the VM-to-VM communication mechanisms available in static partitioning configurations are typically more limited compared to general-purpose hypervisors. For example, PV drivers are not available to Xen dom0less domains. This presentation will discuss the need for communication in static partitioning setups and it will present the technical challenges involved in getting traditional communication methods to work, including Xen PV drivers and VirtIO. The talk will also provide simpler alternatives based on shared memory and interrupt notifications to set up domain-to-domain data streams: simpler techniques that are easily exploitable both by Linux and by tiny baremetal applications as well.
Linux Performance Analysis: New Tools and Old SecretsBrendan Gregg
Talk for USENIX/LISA2014 by Brendan Gregg, Netflix. At Netflix performance is crucial, and we use many high to low level tools to analyze our stack in different ways. In this talk, I will introduce new system observability tools we are using at Netflix, which I've ported from my DTraceToolkit, and are intended for our Linux 3.2 cloud instances. These show that Linux can do more than you may think, by using creative hacks and workarounds with existing kernel features (ftrace, perf_events). While these are solving issues on current versions of Linux, I'll also briefly summarize the future in this space: eBPF, ktap, SystemTap, sysdig, etc.
A Git tutorial for rookies that covers most aspects of basic Git usage for a medium sized project.
This was originally a semestral lecture given at the TU Wien for the course "Software Engineering and Project Management"
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Sandesh Rao
In this session, I will cover under-the-hood features that power Oracle Real Application Clusters (Oracle RAC) 19c specifically around Cache Fusion and Service management. Improvements in Oracle RAC helps in integration with features such as Multitenant and Data Guard. In fact, these features benefit immensely when used with Oracle RAC. Finally we will talk about changes to the broader Oracle RAC Family of Products stack and the algorithmic changes that helps quickly detect sick/dead nodes/instances and the reconfiguration improvements to ensure that the Oracle RAC Databases continue to function without any disruption
WebLogic Server Work Managers and Overload ProtectionJames Bayer
A tour of the WebLogic Server work manager and self-tuning thread pool features that automatically adjust to changing workloads and protect the server from overload conditions.
Achieving Continuous Availability for Your Applications with Oracle MAAMarkus Michalewicz
First presented during Oracle Cloud World 2022, this presentation discusses how to "Achieving Continuous Availability for Your Applications with Oracle MAA". You will learn how Application Continuity and related technologies keep your applications available. Get technical insights into how Oracle Database can help protect your application workflows from interruptions caused by planned maintenance or unplanned outages. Hear from customers about which applications benefit the most right away without code changes—and when customization may be required.
VMworld 2017 - Top 10 things to know about vSANDuncan Epping
In this session Cormac Hogan and I go over the top 10 things to know about vSAN. This is based on two years of questions/answers from our field and customers. Useful for any VMware vSAN customer!
#STO1264BU #STO1264BE
Static partitioning is becoming increasingly common in embedded. A static hypervisor, such as Xen dom0less, is employed to split the hardware resources into multiple domains and run a different OS in each domain. For instance, Linux and Zephyr. Only the simplest static partitioning configurations don't involve any data exchanges between the domains. Often, communication and data exchanges between two or more environments are required to complete the data processing pipeline that implements the target application. However, the VM-to-VM communication mechanisms available in static partitioning configurations are typically more limited compared to general-purpose hypervisors. For example, PV drivers are not available to Xen dom0less domains. This presentation will discuss the need for communication in static partitioning setups and it will present the technical challenges involved in getting traditional communication methods to work, including Xen PV drivers and VirtIO. The talk will also provide simpler alternatives based on shared memory and interrupt notifications to set up domain-to-domain data streams: simpler techniques that are easily exploitable both by Linux and by tiny baremetal applications as well.
Linux Performance Analysis: New Tools and Old SecretsBrendan Gregg
Talk for USENIX/LISA2014 by Brendan Gregg, Netflix. At Netflix performance is crucial, and we use many high to low level tools to analyze our stack in different ways. In this talk, I will introduce new system observability tools we are using at Netflix, which I've ported from my DTraceToolkit, and are intended for our Linux 3.2 cloud instances. These show that Linux can do more than you may think, by using creative hacks and workarounds with existing kernel features (ftrace, perf_events). While these are solving issues on current versions of Linux, I'll also briefly summarize the future in this space: eBPF, ktap, SystemTap, sysdig, etc.
A Git tutorial for rookies that covers most aspects of basic Git usage for a medium sized project.
This was originally a semestral lecture given at the TU Wien for the course "Software Engineering and Project Management"
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Sandesh Rao
In this session, I will cover under-the-hood features that power Oracle Real Application Clusters (Oracle RAC) 19c specifically around Cache Fusion and Service management. Improvements in Oracle RAC helps in integration with features such as Multitenant and Data Guard. In fact, these features benefit immensely when used with Oracle RAC. Finally we will talk about changes to the broader Oracle RAC Family of Products stack and the algorithmic changes that helps quickly detect sick/dead nodes/instances and the reconfiguration improvements to ensure that the Oracle RAC Databases continue to function without any disruption
Devops for beginners is basically for the developers who really want to jumps towards DevOps processes and tools. Guide will give basic about what is cloud and virtualisation ?
What are different clouds solutions available?
Most useful and used linux commands with detail description about them.
Linux directory structure and usage.
Basically it will cover all the basics of Linux Administration and cloud concepts.
Coming from UNIX System V (IBM AIX & Sun Solaris) System Programmer background, I find Linux has become the defacto choice for many computing workload, from embedded device, mobile phone, mission critical systems, all the way to the largest Super Computer Cluster in the world.
While Linux has tried to maintain its UNIX design philosophy, its foundation has radically changed departing its UNIX root (bye init, hi systemd), towards modern Operating Systems which many of its features have equivalent of its UNIX counterparts - if not better (Linux Container vs AIX WPAR/Solaris Zones, Solaris ZFS vs Stratis, and many more).
This document is not meant to beat Red Hat comprehensive online manual, instead it was written to help me memorize many of advanced RHEL features and to help me pass hands on performance based EX200 exam.
This document is compiled from many sources, and written for anyone who would like to learn Red Hat Enterprise Linux 8, through taking EX200 exam in order to showing off RHCSA title to your friend :D
Happy Learning and may the force be with you!
Mobile Enterprise Application PlatformNugroho Gito
mobile enterprise application, mobile application development, mobile enterprise, hybrid mobile, mobile security, reverse engineer, obfuscation, ibm, mobilefirst platform, bluemix, api management, mobile backend as a service
There's a time when we need to access files within Bluemix runtime container, this document will explain how to gain ssh & sftp access to Bluemix runtime container.
All changes done within the container will be wiped out during next 'cf push'.
This technique can be used for any Cloud Foundry based PaaS
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxrickgrimesss22
Discover the essential features to incorporate in your Winzo clone app to boost business growth, enhance user engagement, and drive revenue. Learn how to create a compelling gaming experience that stands out in the competitive market.
Cyaniclab : Software Development Agency Portfolio.pdfCyanic lab
CyanicLab, an offshore custom software development company based in Sweden,India, Finland, is your go-to partner for startup development and innovative web design solutions. Our expert team specializes in crafting cutting-edge software tailored to meet the unique needs of startups and established enterprises alike. From conceptualization to execution, we offer comprehensive services including web and mobile app development, UI/UX design, and ongoing software maintenance. Ready to elevate your business? Contact CyanicLab today and let us propel your vision to success with our top-notch IT solutions.
Globus Connect Server Deep Dive - GlobusWorld 2024Globus
We explore the Globus Connect Server (GCS) architecture and experiment with advanced configuration options and use cases. This content is targeted at system administrators who are familiar with GCS and currently operate—or are planning to operate—broader deployments at their institution.
Software Engineering, Software Consulting, Tech Lead, Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Transaction, Spring MVC, OpenShift Cloud Platform, Kafka, REST, SOAP, LLD & HLD.
May Marketo Masterclass, London MUG May 22 2024.pdfAdele Miller
Can't make Adobe Summit in Vegas? No sweat because the EMEA Marketo Engage Champions are coming to London to share their Summit sessions, insights and more!
This is a MUG with a twist you don't want to miss.
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Unleash Unlimited Potential with One-Time Purchase
BoxLang is more than just a language; it's a community. By choosing a Visionary License, you're not just investing in your success, you're actively contributing to the ongoing development and support of BoxLang.
In software engineering, the right architecture is essential for robust, scalable platforms. Wix has undergone a pivotal shift from event sourcing to a CRUD-based model for its microservices. This talk will chart the course of this pivotal journey.
Event sourcing, which records state changes as immutable events, provided robust auditing and "time travel" debugging for Wix Stores' microservices. Despite its benefits, the complexity it introduced in state management slowed development. Wix responded by adopting a simpler, unified CRUD model. This talk will explore the challenges of event sourcing and the advantages of Wix's new "CRUD on steroids" approach, which streamlines API integration and domain event management while preserving data integrity and system resilience.
Participants will gain valuable insights into Wix's strategies for ensuring atomicity in database updates and event production, as well as caching, materialization, and performance optimization techniques within a distributed system.
Join us to discover how Wix has mastered the art of balancing simplicity and extensibility, and learn how the re-adoption of the modest CRUD has turbocharged their development velocity, resilience, and scalability in a high-growth environment.
Code reviews are vital for ensuring good code quality. They serve as one of our last lines of defense against bugs and subpar code reaching production.
Yet, they often turn into annoying tasks riddled with frustration, hostility, unclear feedback and lack of standards. How can we improve this crucial process?
In this session we will cover:
- The Art of Effective Code Reviews
- Streamlining the Review Process
- Elevating Reviews with Automated Tools
By the end of this presentation, you'll have the knowledge on how to organize and improve your code review proces
Understanding Globus Data Transfers with NetSageGlobus
NetSage is an open privacy-aware network measurement, analysis, and visualization service designed to help end-users visualize and reason about large data transfers. NetSage traditionally has used a combination of passive measurements, including SNMP and flow data, as well as active measurements, mainly perfSONAR, to provide longitudinal network performance data visualization. It has been deployed by dozens of networks world wide, and is supported domestically by the Engagement and Performance Operations Center (EPOC), NSF #2328479. We have recently expanded the NetSage data sources to include logs for Globus data transfers, following the same privacy-preserving approach as for Flow data. Using the logs for the Texas Advanced Computing Center (TACC) as an example, this talk will walk through several different example use cases that NetSage can answer, including: Who is using Globus to share data with my institution, and what kind of performance are they able to achieve? How many transfers has Globus supported for us? Which sites are we sharing the most data with, and how is that changing over time? How is my site using Globus to move data internally, and what kind of performance do we see for those transfers? What percentage of data transfers at my institution used Globus, and how did the overall data transfer performance compare to the Globus users?
Quarkus Hidden and Forbidden ExtensionsMax Andersen
Quarkus has a vast extension ecosystem and is known for its subsonic and subatomic feature set. Some of these features are not as well known, and some extensions are less talked about, but that does not make them less interesting - quite the opposite.
Come join this talk to see some tips and tricks for using Quarkus and some of the lesser known features, extensions and development techniques.
Large Language Models and the End of ProgrammingMatt Welsh
Talk by Matt Welsh at Craft Conference 2024 on the impact that Large Language Models will have on the future of software development. In this talk, I discuss the ways in which LLMs will impact the software industry, from replacing human software developers with AI, to replacing conventional software with models that perform reasoning, computation, and problem-solving.
GraphSummit Paris - The art of the possible with Graph TechnologyNeo4j
Sudhir Hasbe, Chief Product Officer, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Mind IT Systems
Healthcare providers often struggle with the complexities of chronic conditions and remote patient monitoring, as each patient requires personalized care and ongoing monitoring. Off-the-shelf solutions may not meet these diverse needs, leading to inefficiencies and gaps in care. It’s here, custom healthcare software offers a tailored solution, ensuring improved care and effectiveness.
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...informapgpstrackings
Keep tabs on your field staff effortlessly with Informap Technology Centre LLC. Real-time tracking, task assignment, and smart features for efficient management. Request a live demo today!
For more details, visit us : https://informapuae.com/field-staff-tracking/
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Globus
The Earth System Grid Federation (ESGF) is a global network of data servers that archives and distributes the planet’s largest collection of Earth system model output for thousands of climate and environmental scientists worldwide. Many of these petabyte-scale data archives are located in proximity to large high-performance computing (HPC) or cloud computing resources, but the primary workflow for data users consists of transferring data, and applying computations on a different system. As a part of the ESGF 2.0 US project (funded by the United States Department of Energy Office of Science), we developed pre-defined data workflows, which can be run on-demand, capable of applying many data reduction and data analysis to the large ESGF data archives, transferring only the resultant analysis (ex. visualizations, smaller data files). In this talk, we will showcase a few of these workflows, highlighting how Globus Flows can be used for petabyte-scale climate analysis.
5. 5
1. Background
Basic survival guide and cheat sheets on Linux
How to survive POC / POT
Work efficiently in Linux/UNIX environment
Most of the commands here can work in Linux/UNIX
Most UNIX commercial distributions inherited from AT&T System V, therefore by default it
will not come with GNU based utilities.
Some commands can only work on GNU based utilities (eg: gawk, vim)
Basic Text Processing in Linux/UNIX
13 April 2017
7. 7
2. Pre Requisites
This work for Red Hat based distributions including:
– Red Hat Enterprise Linux
– CentOS
– Fedora
Linux ISO files
Having Linux ISO files proves to be very handy, so please get ISO files from:
https://ftp3.linux.ibm.com/
(Requires manager’s approval)
How to know my Linux version?
cat /etc/redhat-release
Hypervisor: VMWare Workstation
Get VMWare License from here:
https://nasoftware.ibm.com/sales/ctp.nsf/doc/MODM-7BQT8L?OpenDocument
(Requires manager’s approval)
13 April 2017
8. 8
3. Working in Shell
Make friend with bash or ksh!
13 April 2017
9. 9
3. Working in Shell
13 April 2017
Most Linux distributions uses bash, however key navigation in bash is slightly different with
ksh (Korn Shell) which uses vi key binding
The advantage of using vi key binding, it uses the same vi navigation key, and it provides
more advanced command line editing
From this onward, we will turn on vi key binding by using following command:
10. 10
3. Working in Shell
set –o vi # We can put this in $HOME/.bashrc to automatically executed after user login
http://www.catonmat.net/download/bash-vi-editing-mode-cheat-sheet.pdf
13 April 2017
11. 11
3.1. UNIX Input/Output Streams (IMPORTANT!)
13 April 2017
Standard Streams Pipeline Processing
I/O Redirections
12. 12
3.1. UNIX Input/Output Streams Sample
13 April 2017
Command Description
db2 << EOF 2>&1 > db2.out
get db cfg
get dbm cfg
list db directory
connect to LDAPDB2B
list tables
EOF
1. Execute db2 command
2. Redirect all input, delimited by string EOF
3. Redirect stderr (2) (2>&1) to stdout (1)
4. Redirect stdout to db2.out file
5. db2 command will execute all lines in red
find / -type f -ls | sort -rnk 7 | head -n 10 1. List all files from / directory
2. Sort output reverse order (highest to lowest)
based on column 7 (file size)
3. Limit output to 10 rows only
find / -name *.txt | xargs grep –i text
find / -name “*.txt” | xargs grep –i text
1. List all txt files from / directory
2. Find text ignore case in each txt files
13. 13
3.2. Shell Environment Variables (IMPORTANT!)
Variable Description
DISPLAY Contains the identifier for the display that X11 programs should use by default.
HOME Indicates the home directory of the current user: the default argument for the cd built-in command.
IFS Indicates the Internal Field Separator that is used by the parser for word splitting after expansion.
LANG
LANG expands to the default system locale; LC_ALL can be used to override this. For example, if its
value is pt_BR, then the language is set to (Brazilian) Portuguese and the locale to Brazil.
LD_LIBRARY_PATH
On many Unix systems with a dynamic linker, contains a colon-separated list of directories that the
dynamic linker should search for shared objects when building a process image after exec, before
searching in any other directories.
PATH
Indicates search path for commands. It is a colon-separated list of directories in which the shell looks for
commands.
PWD Indicates the current working directory as set by the cd command.
RANDOM Generates a random integer between 0 and 32,767 each time it is referenced.
SHLVL
Increments by one each time an instance of bash is started. This variable is useful for determining
whether the built-in exit command ends the current session.
TERM Refers to the display type
TZ Refers to Time zone. It can take values like GMT, AST, etc.
UID Expands to the numeric user ID of the current user, initialized at shell startup.
13 April 2017
http://www.tutorialspoint.com/unix/unix-environment.htm
15. 15
3.4. Text Processing
13 April 2017
No Command Description Samples
1 cat concatenate files and print on the standard output
2 wc print newline, word, and byte counts for each file
3 grep print lines matching a pattern
4 head output the first part of files
5 tail output the last part of files
6 awk pattern scanning and processing language
7 sed stream editor for filtering and transforming text
8 tr translate or delete characters
9 cut remove sections from each line of files
10 paste merge lines of files
11 colrm remove columns from a file
12 expand convert tabs to spaces
13 unexpand convert spaces to tabs
14 diff compare files line by line
15 comm
16 cmp compare two files byte by byte
17 fold wrap each input line to fit in specified width
18 bc
19 split split a file into pieces
20 uniq report or omit repeated lines
21 sort sort lines of text files
22 join join lines of two files on a common field
http://www.ibm.com/developerworks/aix/library/au-unixtext/
http://www.ibm.com/developerworks/aix/library/au-textprocess.html
17. 17
3.6. Intro to Shell Scripting
Looping (for)
for file in `ls /etc/`; do
echo $file
done
Looping (while)
ls /etc/ | while read file; do
echo $file
done
Math expression
13 April 2017
20. 20
4.2. Disk, Partition Commands – Without LVM
fdisk /dev/sdb # create new partition: press n (new
# partition), accept all default settings
# to create partition on all usable disk,
# press w (write partition)
mkfs.ext4 /dev/sdb1 # format new partition
blkid /dev/sdb1 # write down new partition uuid (optional)
vi /etc/fstab # Add new entry to /etc/fstab
mount /opt # mount partition, make it readable/writable to OS
df -h # new partition should appear
ls -la /dev/disk/by-uuid # to see all UUID for each partition (optional)
13 April 2017
21. 21
4.3. Logical Volume Manager - Concept
13 April 2017
User Interface Command
CLI lvm
GUI system-config-lvm
22. 22
4.3. Disk, Partition Commands – With LVM (CLI)
Scenario:
1. Create new volume group (vgtest) from two unformatted disk (sdd & sde)
2. Create new logical volume
3. Format newly created logical volume
4. Mount logical volume
(root)/root>fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1305 10377990 8e Linux LVM
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 652 5237158+ 83 Linux
Disk /dev/sdc: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 652 5237158+ 83 Linux
Disk /dev/sdd: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sde doesn't contain a valid partition table
(root)/root>pvcreate /dev/sdd
Physical volume "/dev/sdd" successfully created
(root)/root>pvcreate /dev/sde
Physical volume "/dev/sde" successfully created
(root)/root>vgcreate vgtest /dev/sdd /dev/sde
/dev/hdc: open failed: No medium found
Volume group "vgtest" successfully created
(root)/root>lvcreate -L 500M -n lvol0 vgtest
/dev/hdc: open failed: No medium found
Logical volume "lvol0" created
(root)/root>mkfs -t ext3 -m 1 -v /dev/vgtest/lvol0
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
128016 inodes, 512000 blocks
5120 blocks (1.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
63 block groups
8192 blocks per group, 8192 fragments per group
2032 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
(root)/root>mkdir /mnt/vfs
(root)/root>mount -t ext3 /dev/vgtest/lvol0 /mnt/vfs
(root)/root>cd /mnt/vfs
(root)/mnt/vfs>df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgtest-lvol0
485M 11M 469M 3% /mnt/vfs
13 April 2017
23. 23
4.4. Disk, Partition Commands – With LVM (GUI)
Scenario:
1. Make sure X Window Manager already installed
2. Run system-config-lvm
3. Initialize Entries
4. Create Volume Group
5. Add Physical Volume
6. Create Logical Volume, set LV Size, File System & Mount Point
13 April 2017
25. 25
5.1. Global Configuration File (IMPORTANT!)
13 April 2017
No File Name Description
1 /etc/bashrc Global BASH startup scripts
2 /etc/profile Global environment variable
3 /etc/inittab Controls how Linux start (3:text mode multi user, 5:X11)
4 /etc/fstab Controls which file system automatically mounted during startup
5 /etc/kde/kdm/kdmrc Controls how KDE start X server
6 /etc/gdm/custom.cnf Controls how GNOME starts X server, to enable X listening to TCP port, add
DisallowTCP=false under [security]
7 /etc/profile.d/ Global application environment setup
8 /etc/network/interfaces List of network interfaces
9 /etc/xinetd.conf Replacement of UNIX inetd.conf which refers to files unde /etc/xinetd.d
10 /etc/hosts.allow Lists of allowed host (tcp wrapper)
11 /etc/hosts.deny Lists of denied host (tcp wrapper)
12 /etc/redhat-release Release version
13 /etc/sysctl.conf Kernel settings
14 /etc/security/limits.conf Shell limits per user
15 /etc/udev/rules.d/70-persistent-net.rules Mapping between MAC address with ethernet devices (ethX)
16 /etc/sysconfig/network-scripts/ifcfg-ethX IP Address/Network Mask/Gateway settings
17 /etc/resolv.conf DNS Settings (DHCP)
18 /etc/selinux/config SE Linux config
19 /etc/hosts Host Name mapping between IP Address to Host Name or FQDN
20 /proc/meminfo Memory info, MemTotal & SwapTotal
21 /proc/cpuinfo Processor info, MemTotal & SwapTotal
Background
• Sometimes config require changes but have no clue where its location?
26. 26
5.2. Adding Disk without Restart
13 April 2017
Background
• Running out of disk while installing some software? Follow this command to quickly expand
your file system
# How to add new disk to RHEL, and force to rescan without reboot
for i in `ls /sys/class/scsi_host`; do
echo "- - -" > /sys/class/scsi_host/$i/scan
fdisk -l
tail -f /var/log/message
done
# The rest of command includes creating new file system / increase
# existing file system
27. 27
Background
• When installing some software, it requires dependency to Linux package, and installing
with rpm will drive you crazy? Use offline yum repo, to install Linux package with yum with
auto dependency resolution.
# Steps
# 1. Insert 1st DVD into DVD ROM
# 2. Assuming CD/DVD ROM mount point is at /mnt/cdrom
# Manually configuring CD/DVD mount
# Modify /etc/fstab, add this:
# /dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide
# mkdir /mnt/cdrom
# mount /mnt/cdrom
# vi /etc/yum.repos.d/local.repo
# Add the following details.
[LocalRepo]
name=Local Repository
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
yum clean all
5.3. Creating Offline yum Repository
13 April 2017
29. 29
5.5. How to keep IP Address unchanged after copying VM
13 April 2017
Background
• After copying VM and after boot you got this message "device eth0 does not seem to be
present, delaying initialization“, and VM can’t get any IP Address/IP Address got changed.
• Edit: /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x15ad:0x07b0 (vmxnet3) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:bc:00:45", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth0"
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:bc:00:46", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth1"
• Delete the first SUBSYSTEM entry in the file.
• Update the 'eth1' attribute in the remaining entry to 'eth0'
• Edit /etc/sysconfig/network-scripts/ifcfg-eth0
• Change the HWADDR to match the new mac address listed in the newly edited 70-
persistent-net.rules file.
• reboot.
30. 30
Background
• Sometimes you need to kick off GUI program running on Linux/UNIX Host
• If you don’t have physical access to Host Console, and only remote access is available
(telnet/ssh)
5.6. Configure X Server
13 April 2017
31. 31
5.7. Passwordless ssh/sftp
Background
Sometimes you frequently login to a server and you want to run unattended script from
remote.
Steps
1. ssh-copy-id user@host # It will prompt your password at remote host
2. ssh user@host # It won’t ask for password
3. sftp user@host # It won’t ask for password
13 April 2017
32. 32
5.8. Configure yum from IBM FTP
Background
RHEL yum will not work without registered RHEL accounts. For IBMers this steps will
configure yum to work with IBM FTP.
Steps
wget -qO- --no-check-certificate https://rhn.linux.ibm.com/pub/bootstrap/bootstrap.sh | /bin/bash
rhnreg_ks --force --username=user@<cc>.ibm.com --password=your_ftp3_passwd
or
rhn_register
13 April 2017