From 23037c1d56e9ddeec70167b8010e010d2d65fe9c Mon Sep 17 00:00:00 2001 From: Hugh Ratsch Date: Sat, 15 Feb 2025 10:13:28 -0600 Subject: [PATCH] updated notes --- src/rhcsa.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/rhcsa.md b/src/rhcsa.md index 74b6cdb..742aaf2 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -177,11 +177,34 @@ sudo mkfs.xfs /dev/vg_data/lv_data # Format the logical volume lv_data as XFS sudo mount /dev/vg_data/lv_data /mnt # Mount the logical volume lv_data to /mnt sudo umount /mnt # Unmount the logical volume lv_data from /mnt +sudo lvextend -L +100M /dev/vg_data/lv_data # Extend the logical volume lv_data by 100M +sudo lvreduce -L -100M /dev/vg_data/lv_data # Reduce the logical volume lv_data by 100M + sudo lvremove /dev/vg_data/lv_data # Remove the logical volume lv_data sudo vgremove vg_data # Remove the volume group vg_data sudo pvremove /dev/sda1p1 /dev/sdb1p1 /dev/sdc1p1 # Remove the physical volumes /dev/sda1p1, /dev/sdb1p1, /dev/sdc1p1 +sudo lvm # Interactive LVM tool +``` +### STRATIS +```bash +sudo dnf install stratisd stratis-cli # Install the STRATIS storage service and CLI + +sudo stratis pool create pool1 /dev/sda1p1 # Create a pool named pool1 on /dev/sda1p1 +sudo stratis pool add-data pool1 /dev/sdb1p1 # Add a data volume to the pool named pool1 on /dev/sdb1p1 + +sudo stratis pool delete pool1 # Delete the pool named pool1 + +sudo stratis pool list # List all pools +sudo stratis blockdev list # List all block devices + +sudo stratis fs create pool1 fstest # Create a filesystem named fstest on the pool named pool1 +sudo stratis fs list # List all filesystems # Note: UUID is the UUID of the filesystem +mkdir /mnt/fsmount # Create a mount point for the filesystem +sudo nano /etc/fstab # Add the following line to the fstab file: UUID=1234567890 /mnt/fsmount xfs x-systemd.requires=stratisd.service 0 0 +sudo mount -a # Mount all filesystems +```