Escolar Documentos
Profissional Documentos
Cultura Documentos
-----> go
Terminal open"
Alt+f2
Enter a command: gnome-terminal---> enter
Initial setup:
--------------password break:
restart system
----> press esc key
linux...
--- > press e
----> fi ( line not enter)
----> linux16 /boot/vmliuz ----> go to end of the line and enter
below the comond
rd.break console=tty1
---->ctrl+X
switch_root:# mount -o remount,rw /sysroot
switch_root:# chroot /sysroot
sh-4.2# passwd
newpasswd:
retypepasswd:
sh-4.2#touch /.autorelabel
sh-4.2# exit
switch_root:#exit
-------------[root@server6 ~]# nmtui
---> Edit a connection
---> system eth0
----> Edit
------>Profile name:system eth0
------> ipv4 configuration -->show(click)--Enter
( IP address,gateway,dns,search domain give in EXAM u can
enter below)
Addressed:172.25.20.11
Gateway :172.25.254.254
DNS server:172.25.254.254
search Domain: example.com
-----> ok
-----> quit
SELINUXTYPE=targeted
------------------2.create a new 100MB Physical partition mounted under /Gluster
Note because partition sizes are seldom exactly what is specified when
you are created, anything with range of 70MB to 120 MB is acceptable .
Ans:
[root@server11 ~]# mkdir /gluster
[root@server11 ~]# lsblk
[root@server11 ~]# fdisk /dev/vdb
Command (m for help): p
Command (m for help): n
Select (default p): e
Partition number (1-4, default 1): enter
First sector (2048-20971519, default 2048): enter
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-20971519, default
20971519): enter
Using default value 20971519
Partition 1 of type Extended and of size 10 GiB is set
Command (m for help): n
Select (default p): l
Adding logical partition 5
First sector (4096-20971519, default 4096): enter
Using default value 4096
Last sector, +sectors or +size{K,M,G} (4096-20971519, default
20971519): +100MB
Partition 5 of type Linux and of size 95 MiB is set
Command (m for help): w
[root@server11 ~]#
[root@server11 ~]#
[root@server11 ~]#
/dev/vdb5
defaults 0 0
[root@server11 ~]#
[root@server11 ~]#
[root@server11 ~]#
------------------
partprobe /dev/vdb
partx /dev/vdb
vim /etc/fstab
/gluster
xfs
mkfs.xfs /dev/vdb5
mount -a
df -h
swap
swap
~]#
~]#
~]#
~]#
groupadd sysgrp
useradd -G sysgrp andrew
useradd -G sysgrp susan
useradd -s /sbin/nologin sarah
Ans:
---[root@server11
[root@server11
[root@server11
[root@server11
~]#
~]#
~]#
~]#
yum
yum
yum
yum
install
install
install
install
sssd* -y
autofs* -y
auth* -y
nfs* -y
----> next
[*] use TLS
server : ldaps:classroom.example.com
Base DN: dc=example,dc=com
-----> Next
(or)
[root@server11 ~]# authconfig-gtk
one new window open
( graphical )
--------------------14.create a new physical volume, create a new volume group in the name
of datacontainer, vg extent is 16.00MB .
create a new logical volume in the name of datacopy with the size of
50 extents and file system must vfat then mount it under /datasource
Ans:
---[root@server11 ~]# fdisk /dev/vdb
Command (m for help): p
Command (m for help): n
l
logical (numbered from 5)
Select (default p): l
Adding logical partition 7
First sector (509952-20971519, default 509952):
Using default value 509952
Last sector, +sectors or +size{K,M,G} (509952-20971519, default
20971519): +1G
Partition 7 of type Linux and of size 1 GiB is set
Command (m for help): p
Command (m for help): t
Partition number (1,5-7, default 7): 7
Hex code (type L to list all codes): 8e
Changed type of partition 'Linux' to 'Linux LVM'
~]#
~]#
~]#
~]#
~]#
mkdir /datasource
pvcreate /dev/vdb7
vgcreate -s 16 datacontainer /dev/vdb7
lvcreate -l 50 -n /dev/datacontainer/datacopy
lvdisplay
> /root/lines