Storage and partitions managing. Managing LVM. Extend and reduce a volume. (RHCSA)

Extending Logical Volume: [root@machine-1 ~]# vgdisplay shazam --- Volume group --- VG Name shazam System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 508.00 MiB PE Size … Continue reading Storage and partitions managing. Managing LVM. Extend and reduce a volume. (RHCSA)

Advertisements

Storage management and partitions. Managing LVM (RHCSA)

Steps to create Logical Volumes are following: Prepare a Physical Volume: [root@machine-1 ~]# pvcreate /dev/sda3 /dev/sdb3 Physical volume "/dev/sda3" successfully created. Physical volume "/dev/sdb3" successfully created. Create a Volume Group [root@machine-1 ~]# vgcreate new-volumegroup /dev/sda3 /dev/sdb3 Volume group "new-volumegroup" successfully created [root@machine-1 ~]# Create a Logical Volume [root@machine-1 ~]# lvcreate -l 100 new-volumegroup -n logvol … Continue reading Storage management and partitions. Managing LVM (RHCSA)

Storage management and partitions. Creating and mounting a single partition (RHCSA)

Basically, there are three classical tools that administrators mostly use to create and manage file system (FS) of Linux: fdisk, gdisk and parted Current system state. To check current state of available state of the FS, mostly used df and fdisk with parameters. [root@machine-1 ~]# fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors … Continue reading Storage management and partitions. Creating and mounting a single partition (RHCSA)

Creating rpm package from java tarball: jdk*.tag.gz

In order to create from java installation tarball a rpm package I procedeed following steps. As example I have used jdk-8u161-linux-x64.tar.gz file from oracle download portal. 1. Installing rpmbuild package from yum repository: yum install rpmbuild -y 2. Creating directories for rpmbuild: mkdir -p packages/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} 3. Place jdk-8u161-linux-x64.tar.gz in $RPM_SOURCE_DIR (packages/SOURCES) 4. Creating a spec … Continue reading Creating rpm package from java tarball: jdk*.tag.gz

Повышение качества речи. Домашняя техника

Как повысить качество речи. Домашние техники. 1. Есть одно забавное упражнение. Возьмите какой-нибудь домашний предмет, например, сковородку и попробуйте в течение 5 минут рассказывать о нем на красивом литературном языке. Поначалу этот процесс будет вызывать у вас явные затруднения, но с каждым разом будет все проще. Постепенно увеличивайте время тренировки и усложняйте тему. Эти тренировки помогут … Continue reading Повышение качества речи. Домашняя техника

Installing puppet agent

I installed puppet agent on the remote host using ansible. --- - hosts: puppet-agents gather_facts: false remote_user: root tasks: - name: update server using yum update yum: name: "*" state: latest - name: install prerequisite package for puppet client yum: name: https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm validate_certs: no state: latest - name: install package of puppet client yum: name: … Continue reading Installing puppet agent