Complete SELinux Administration & Troubleshooting Guide
Learn SELinux modes, contexts, booleans, and access-denial troubleshooting for secure Linux environments.
3) Advanced Linux Administration – Complete Tutorials
3.1) SELinux (Enforcing, Permissive, Troubleshooting)
SELinux Modes
Check mode:
Set enforcing:
Set permissive:
Check Status
File Contexts
View context:
Add custom context:
Policy Troubleshooting
Check AVC denials:
Auto suggestions:
3.2) Kernel Upgrades & Tuning
Check Current Kernel
List Available Kernels
Install Latest Kernel
Tuning Using sysctl
View:
Set temporarily:
Make permanent:
3.3) GRUB Recovery & Boot Troubleshooting
GRUB Rescue Mode Fix
In:
Run:
Rebuild GRUB
3.4) yum/dnf Package Management (Advanced)
Check History
Rollback:
Clean Repos
Version Lock
Install:
Lock:
3.5) Monitoring Tools: top, ps, sar, vmstat, iostat
top
Start:
Sort by memory (Shift+M).
ps
Top CPU processes:
sar
Enable:
CPU report:
vmstat
iostat
3.6) Multipathing
Install Multipath Tools
Check Multipath Devices
Sample output:
3.7) iSCSI Target & Initiator
On Target Server
Start tool:
Create disk:
Create target:
Map LUN:
Set ACL:
On Initiator
Install:
Discover targets:
Login:
Check disk:
3.8) NTP Configuration
Install:
Add NTP server:
Check sync:
3.9) High Availability (HA) Concepts
Key HA Components
| ComponentDescription | |
| Pacemaker | Manages cluster resources |
| Corosync | Messaging between nodes |
| Fencing/STONITH | Isolates failed nodes |
| Quorum | Minimum votes to keep cluster active |