Tuesday, July 12, 2022

rhcsa and rhce

Red Hat Certified System Administrator (RHCSA)
Exam Code (EX200)
Exam Fees : 16k
Year       : July'2022 

=================================
### Configure VDO FileSystem ###
=================================

yum install vdo -y
systemctl start vdo
systemctl enable vdo
man vdo |grep create
vdo create --name=vdo1 --device=/dev/sdd --vdoLogicalSize=50G

vdo list
mkfs
mkfs.xfs /dev/mapper/vdo1
mkdir /database
vim /etc/fstab
/dev/mapper/vdo1 /database xfs  defaults,x-systemd.requires=vdo.service 0 0
reboot

===============================
### Create LVM ###
===============================

lsblk
fdisk /dev/sdc
pvcreate /dev/sdc1
vgcreate -s 16M myvol /dev/sdc
lvcreate -l 64 -n my_lvm myvol
mkfs.ext4 /dev/myvol/my_lvm
blkid
mkdir /network
vim /etc/fstab
/dev/mapper/myvol-my_lvm    /network    ext4     defaults    0    0
reboot
df -h

===============================
### Create A Swap Partition ###
===============================

lsblk
fdisk /dev/sdb
mkswap /dev/sdb1
blkid
vim /etc/fstab
/dev/sdb1    swap    swap    defaults    0 0
reboot
free -h

===========================
### Reset Root Password ###
===========================

After Reboot press ECS button
Press e button
Write the rd.break in the end of the of linux16
Ctrl+x
mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
exit

====================================================

RHCE

====================================================


No comments:

Post a Comment

testing