Разбираем лабы по RH9 (EX200) (Второе видео)

Описание к видео Разбираем лабы по RH9 (EX200) (Второе видео)

Вторая часть видео посвящённая вопросам по EX200 на 2023-ый год.
В этот раз работает с дисками и только.
=====
Disks
Create a primary partition with a size of 1GB.Format it with Ext4, and mount it persistently on /filesext4, using UUID.
Create a primary partition with a size of 1GB.Format it with xfs, and mount it persistently on /filesxfs, using labels (MYXFS)
Create an extenden partition that includes all remaining disk space.In this partition, create 500MB XFS partition and mount it persistently on /mounts/xfs, using label myxfs
Create a 500MB swap partition and mount it persistently
disk /dev/sda
n
p 1G
n
p 1G
n
e +500M
n
500M
t swap
p verify

mkdfir /filesext4 /filesxfs
mkdir -p /mounts/xfs
mkfs.ext4 /dev/sda2
mkfs.xfs /dev/sda3
mkfs.xfs -L MYXFS /dev/sda5
mkfs.xfs -L myxfs /dev/sda4
lsblk -output UUID /dev/sda
mkswap /dev/sda6
swpaon /dev/sda6

=====
LVM
Create an LVM logical volume with the name lvdata and size of 1GB.Also create the VG and PV that are required for this LV
Format this LV with the XFS filesystem and mount it persistently on /mounts/lvdata
Add 1G disk to new created VG and extend LV size
fdisk /dev/sda
vgcreate vgdata /dev/sda1
lvcreate -L 1G -n lvdata /dev/vgdata
mkfs.xfs /dev/cgdata/lvdata
mount on fstab
fdisk /dev/sdb
n
p
t lvm
vgextend vgdata /dev/sda2
lvextend -r -l +100%FRE /dev/vgdata/lvdata

=====
Stratis
Create a stratis pool Spool and an File System (SSystem) on it.Make a mounting point and mount stratis FS to it =====
dnf install stratisd stratis-cli
systemctl enable --now stratisd
stratis pool create mypool /dev/sdb
stratis blockdev list
stratis fs create mypool myfs
mkdir /mystratisfs
lsblk --output=UUID /dev/stratis/mypool/myfs /etc/fstab
UUID=d8ff... /mystratisfs xfs x-systemd.requires=stratisd.service 0 0

=====
Create a snapshot of your file system and mount it to be sure that your files returned

dd if=/dev/zero of=/myfs/bigfile bs=1M count=2000
stratis pool list
stratis fs list
stratis fs snapshot mypool myfs myfs-snap
stratis fs list
rm /myfs/bigfile
mkdir /myfs-snap
mount /dev/stratis/mypool/myfs-snap /myfs-snap
ls -l /myfs-snap
umount /myfs-snap
stratis fs destroy mypool myfs-snap

Комментарии

Информация по комментариям в разработке