Archive for the ‘RHEL 7’ Category

RHEL6 vs RHEL7

Posted: November 7, 2016 in RHEL 7, rhel6 vs rhel7

[1]ON THE BASIS OF RELEASE DATE.

RELEASE DATE OF RHEL6 IS 10th NOV 2010.

RELEASE DATE OF RHEL7 IS 10TH JUNE 2014.

[2]DIFFERENCE ON THE BASIS OF OPERATING SYSTEM NAMES

If you want to see this use this command

#cat /etc/redhat-release

RHEL6 : REDHAT ENTERPRISE LINUX (SANTIGO)

RHEL7: REDHAT ENTERPRISE LINUX (MAIPO)

[3]KERNEL VERSION

RHEL6: 2.6.32

RHEL7:  3.0.10

[4] OS BOOT TIME

RHEL6: 40 sec

RHEL7: 20 sec

[5]MAXIMUM SIZE OF SINGLE PARTITION

RHEL6: 50TB(EXT4)

RHEL7: 500TB(XFS)

[6] BOOT LOADER

RHEL6:  /boot/grub/grub.conf

RHEL7: /boot/grupb2/grub.cfg

[7]PROCESSOR ARCHITECTURE

RHEL6: It support 32bit & 64bit  both

RHEL7: It only support 64bit

[8]HOW TO FORMAT OR ASSIGN A FILE SYSTEM IN

RHEL6:      #mkfs.ext4   /dev/sda6

RHEL7:       #mkfs.xfs   /dev/sda6

[9]HOW TO REPAIR A FILE SYSTEM IN

RHEL6:  #fsck -y /dev/hda6

RHEL7:  #xfs_repair /dev/hda6

[10]COMMAND TO MANAGE NETWORK IN RHEL6 AND RHEL7

RHEL6:  #setup

RHEL7:  #nmtui

[11]HOSTNAME CONFIGURATION FILE

RHEL6:    /etc/sysconfig/network

RHEL7:    /etc/hostname

[12]DEFAULT ISO IMAGE MOUNT PATH

RHEL6: /media

RHEL7: /run/media/root

[13]FILE SYSTEM CHECK

RHEL6:   e2fsck

RHEL7:   xfs_repair

[14]RESIZE A FILE SYSTEM

RHEL6:   #resize2fs  -p /dev/vg00/lv1

RHEL7:    #xfs_growfs  /dev/vg00/lv1

[15]TUNE A FILE SYSTEM

RHEL6: tune2fs

RHEL7: xfs_admin

[16]IPTABLES AND FIREWALL

RHEL6: iptables

RHEL7: firewalld

[17]COMMUNICATION BETWEEN TCP AND UDP IN BACK END

RHEL6: netcat

RHEL7: ncat

[18]INTERFACE NAME

RHEL6: eth0

RHEL7: ens198(N)

[19]COMBINING NIC

RHEL6: Network Bonding

RHEL7: Team Driver

[20]NSF Server Version

RHEL6:  NFSv2

RHEL7:  NFSV4

 [21]DATABASE USED

RHEL6: Mysql

RHEL7: mariaDB

[22]MANAGING SERVICES

RHEL6:

#service sshd restart

#chkconfig sshd on

RHEL7:

#systemctl restart sshd

#systemctl enable sshd

Advertisements

RHEL 7 Changes and Features

Posted: October 19, 2015 in RHEL 7

Hi All,

This is biggest post of my blog for RHEL 7..Before using RHEL7 ,Why should i use RHEL 7 …you should know below features. In this post i am going to cover .. Whatever changes are there in RHEL7 day by day I will add and update.It is just a beginning… Already I have mention some RHEL 7 in below post.

Lab Setup

I have created RHEL7 & RHEL6 server with same configuration.

RAM :1GB

CPU core :2

HDD :10GB

 

Speed of FS formatting in rhel 7

I have formatted 5GB space on both the RHEL Version

Screenshot_4

Screenshot_5

How Fast Service restarting in rhel7

Screenshot_1

Screenshot_2

 

Bash-completion in RHEL 7

if you install this package it will automatically completed the command when your using tab in the all level or argument

#yum install bash-completion

 

[root@vm28 ~]# system

system-config-abrt              systemd-cat                     systemd-inhibit                 systemd-stdio-bridge

system-config-printer           systemd-cgls                    systemd-loginctl                systemd-sysv-convert

system-config-printer-applet    systemd-cgtop                   systemd-machine-id-setup        systemd-tmpfiles

systemctl                       systemd-coredumpctl             systemd-notify                  systemd-tty-ask-password-agent

systemd-analyze                 systemd-delta                   systemd-nspawn

systemd-ask-password            systemd-detect-virt             systemd-run

 

[root@vm28 ~]# systemctl st

start   status  stop

 

[root@vm28 ~]# systemctl

cancel                 emergency              is-active              list-sockets           reload-or-restart      show-environment

condreload             enable                 is-enabled             list-unit-files        reload-or-try-restart  snapshot

condrestart            exit                   is-failed              list-units             rescue                 start

condstop               force-reload           isolate                mask                   reset-failed           status

daemon-reexec          get-default            kexec                  poweroff               restart                stop

daemon-reload          halt                   kill                   preset                 set-default            suspend

default                help                   link                   reboot                 set-environment        try-restart

delete                 hibernate              list-dependencies      reenable               set-property           unmask

disable                hybrid-sleep           list-jobs              reload                 show                   unset-environment

 

[root@vm28 ~]# systemctl status h

httpd.service       hypervkvpd.service  hypervvssd.service

 

Firewall or iptables in RHEL 7

Disable Firewall (firewalld or iptables)

#firewalls-cmd –state

or

#iptables -L

#systemctl status firewalld

#systemctl stop firewalld

#systemctl disable firewalld

 

(or)

 

#yum install iptables-services

# systemctl status  iptables.service

# iptables -L

# iptables -F

# systemctl stop iptables.service

# systemctl disable iptables.service

# systemctl status  iptables.service

 

Are you in VM or Physical host ? RHEL -7

#yum install virt-what

#virt-what

vmware

 

Set Host name  in RHEL7

[root@RHEL7 ~#vi /etc/hostname

RHEL7.com

[root@RHEL7 ~]# cat /etc/hostname
RHEL7.convex.com

[root@RHEL7 ~]# hostnamectl
Static hostname: RHEL7.com
Icon name: computer
Chassis: n/a
Machine ID: 739bf93a75df4f0e8fc6e26fff318e09
Boot ID: 179e92109cf44ae9aa7febbbeb1b40a7
Virtualization: vmware
Operating System: Red Hat Enterprise Linux Server 7.1 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.1:GA:server
Kernel: Linux 3.10.0-229.el7.x86_64
Architecture: x86_64

 

ifconfig command not found in RHEL 7

# yum install net-tools

#ifconfig

 

Kick-start changes and improved in RHEL7

Differences between RHEL6 and RHEL7 kick-start

# ksverdiff -f RHEL6 -t RHEL7

 

To verify kickstart file ” Kickstart File Validator

# yum install pykickstart

# ksvalidator /root/anaconda-ks.cfg

 

# Keyboard layouts

keyboard fi-latin1 —— RHEL 6

keyboard –vckeymap=us –xlayouts=’us’ —- RHEL7

 

Kickstart name changed

ks=https://10.10.10.50/builds/hosts/vm07/blrvse07vm17/ks.cfg

inst.ks=https://10.10.10.50/builds/hosts/vm07/blrvse07vm17/ks.cfg

 

#Partition or Filesystem changes

part /boot –fstype xfs--size=512 –asprimary –ondisk=sda

part pv.1 –size=1 –grow –ondisk=sda

volgroup rootVG pv.1

logvol / –fstype xfs –name=root –vgname=rootVG –size=10240 –grow

logvol /var –fstype xfs –name=var –vgname=rootVG –size=6144 –grow –percent=25

logvol /tmp –fstype xfs –name=tmp –vgname=rootVG –size=2048 –grow –maxsize=4096

 

#NTP Sync is available

timezone Europe/Madrid –isUtc –ntpservers=10.10.10.100

 

Change NIC into eth0

bootloader –location=mbr –append= net.ifnames=0 biosdevname=0

OPEN-VM-TOOLS in RHEL 7

# yum install open-vm-tools

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Package open-vm-tools-9.4.0-6.el7.x86_64 already installed and latest version

Nothing to do


Screenshot_1 Screenshot_2 Screenshot_3 Screenshot_4 Screenshot_5 Screenshot_6 Screenshot_7 Screenshot_8 Screenshot_9 Screenshot_10 Screenshot_11 Screenshot_12 Screenshot_13 Screenshot_14 Screenshot_15 Screenshot_16 Screenshot_17 Screenshot_18 Screenshot_19 Screenshot_20 Screenshot_21 Screenshot_22 Screenshot_23 Screenshot_24 Screenshot_25 Screenshot_26 Screenshot_27 Screenshot_28 Screenshot_29 Screenshot_30 Screenshot_31 Screenshot_32 Screenshot_33 Screenshot_34 Screenshot_35 Screenshot_36 Screenshot_37 Screenshot_38 Screenshot_39 Screenshot_40 Screenshot_41 Screenshot_42 Screenshot_43 Screenshot_44 Screenshot_45


Screenshot_27

Screenshot_28


Screenshot_21

Screenshot_22

Screenshot_23

Screenshot_24

Screenshot_25

Screenshot_26

Set Language in RHEL 7

Posted: August 19, 2014 in RHEL 7, Set Language

 

Screenshot_15

Screenshot_17

Screenshot_18

Screenshot_19

Screenshot_20

Set Hostname in RHEL 7

Posted: August 19, 2014 in RHEL 7, Set Hostname

Screenshot_12

Screenshot_13

Screenshot_14