kevin

Random linux notes

This post is updated continually Semi organized enlarge / shrink filesystem, different filesystems are easier/harder to extend or shrink Virsh - Virtual Machines List images on disk and see locations See disk locations…

This post is updated continually

Semi organized

enlarge / shrink filesystem, different filesystems are easier/harder to extend or shrink

Virsh - Virtual Machines

List images on disk and see locations

See disk locations of vm images

LVM hierachy

#LVM hierarchy, how to picture the components of LVM
Files (Folders, Documents, Pictures ..)
Filesystem (ext4, fat32, ntfs)
/--- LVM ---
Logical Volume - #partitions volume groups $lvs
Volume Group #groups physical volumes $vgs
Physical Volume $pvs
--- LVM --- / #extend/shrink/snapshot harddrive space, consistent backups or application consistent snapshots
Software Raid #redundancy without without physical controller, cheaper but more cpu intensive $mdadm
Partitions
Harddisk 
Hardware Raid #Physical raid controllers are expensive and often requires the same part to rebuild an array, higher cost offloads resources

# = comments
() = examples
$$ = commands

Unorganized

Difference between filesystems

Docker rootless vs podman

Install multiple php versions on the same host nd switch between versiionsfor the app

findmnt - see filesystem installed linux

lsblk -

Mounts

Things to look out for: mount options that squishes root an single user or mounts a removable drive with generic ownershi

Disk Drives

smartctl -x