Tags » RedHat

Creating a swap partition in RHEL

In this demonstration, I will be adding at 2GB swap partition to /dev/sdb.

You can identify the relevant disk which you wish to add the swap partition to from issuing the following command: 188 more words

Disk

Using RPMs/YUM

yum
rpm

   (build packages using rpm-build)
   $ yum install rpm-build
   (install/update/erase packages using yum)
   $ yum update|install|erase package
   (install ignoring package signature)
   $ yum install package --nogpgcheck 
   (install package locally)
   $ yum localinstall package.rpm
   (extract files from package)
   $ rpm2cpio package.rpm | cpio -idmv
   (list files from package)
   $ rpm -qlp package.rpm or rpm -ql package or repoquery --list package
   (search for package that provides a file)
   $ yum provides */file
   (download rpms from repo w/o install using yum-utils)
   $ yum install yum-utils
   $ yumdownloader httpd --resolve
   (download rpms from repo w/o install using yum-downloadonly)
   $ yum install yum-downloadonly
   $ yum update package -y --downloadonly --downloaddir=/opt
   (list installed repos, add/remove repo to /etc/yum.repos.d/)
   $ yum repolist
   (create a local repo, see http://yum.baseurl.org/wiki/RepoCreate)
   (you should do this from within a rpm, see http://wiki.centos.org/AdditionalResources/Repositories/RPMForge)
   $ yum install createrepo
   $ cp package.rpm /srv/my/repo/`uname -i`/RPMS/
   $ createrepo /srv/my/repo/`uname -i`/ or createrepo --update /srv/my/repo/`uname -i`/
   $ echo "\nname = Myrepo-$releasever\nbaseurl = file:///srv/my/repo/$basearch/" > /etc/yum.repos.d/myrepo.repo
   (sync all packages from the ’updates’ repo to the repos directory)
   $ reposync -p repos --repoid=updates
   (list/do/undo transactions using yum history, see http://yum.baseurl.org/wiki/YumHistory)
   $ yum history list|info|undo|redo
   (using groups, see http://yum.baseurl.org/wiki/YumGroups)
   $ yum grouplist|groupinfo groupname|groupinstall groupname|groupupdate groupname|groupremove groupname
   (creating groups)
   $ yum-groups-manager -n "My Group" --id=mygroup --save=mygroups.xml --mandatory package1 package2 package2
   $ createrepo -g /path/to/mygroups.xml /srv/my/repo

Managing Disk Space using LVM

A full list of terminal commands can be found with

$man lvm

Built-in Commands

The following commands are built into lvm without links normally being created in the filesystem for them.

383 more words
Redhat

Logical Volume Manager

LVM allows you to accumulate spaces taken from one or several partitions or disks (called physical volumes) to form a larger container called a volume group. 407 more words

Redhat

Red Hat Customer Portal

Updated bash packages that fix one security issue are now available for Red Hat Enterprise Linux 5, 6, and 7. Red Hat Product Security has rated this update as having Important security impact. 58 more words

62da7b371a3f06d2fd4c5082fe6b66e1

How To Create LVM Using pvcreate, vgcreate, lvcreate, and lvextend Commands

What is LVM?

LVM is a tool for logical volume management which includes allocating disks, striping, mirroring and resizing logical volumes.

With LVM, a hard drive or set of hard drives is allocated to one or more physical volumes. 553 more words

Disk

Integrate Openshift with the Eclispe.

Hi all today we will see how to sync the openshift with the eclipse.So, that we can directly publish the changes from our editor to the server. 318 more words

Client Tools