dev-resources.site
for different kinds of informations.
Linux Troubleshooting Scenarios - Part 3
Published at
1/6/2023
Categories
linux
devops
troubleshoot
luxoft
Author
sagary2j
Author
8 person written this
sagary2j
open
Finally!! After Part-2 Here is the final chapter of Linux Troubleshooting Scenarios - Part 3. Below are the scenarios:
Issue 1: Unable to Run Certain Commands
Approach / Solution:
āāā Troubleshooting and Resolution
ā āāā command
ā ā āāā Could be the system-related command to which non-root user
does not have the access
ā ā āāā Could be the user-defined script/command
ā āāā Troubleshooting
ā ā āāā permission/ownership of the command/script
ā ā āāā sudo permission
ā ā āāā absolute/relative path of command/script
ā ā āāā not defined in user $PATH variable
ā ā āāā command is not installed
ā ā āāā command library is missing or deleted
Issue 2: System Unexpectedly reboots and process restart?
Approach / Solution:
āāā Troubleshooting and Resolution
ā āāā System reboot/crash reasons
ā ā āāā CPU stress
ā ā āāā RAM stress
ā ā āāā Kernel fault
ā ā āāā Hardware fault
ā āāā Process restart
ā ā āāā System reboot
ā ā āāā Restart itself
ā ā āāā Watchdog application
ā ā ā āāā To prevent high stress on system resources
ā ā ā āāā If the application causing stress, so it will restart or
terminate
ā āāā Troubleshooting
ā ā āāā After logging in, check the status by using commands like
uptime, top, dmesg, journalctl, iostat -xz 1
ā ā āāā syslog.log, boot.log, dmesg, messages.log, etc
ā ā āāā custom log path of an application
ā ā āāā if not completely accessible, so take the virtual console
like ILO, IDRAC, etc.
ā ā āāā open a case and reach out to a vendor
Issue 3: Unable to get IP Address
Approach / Solution:
āāā IP Assignment Methods
ā āāā DHCP
ā ā āāā Fixed Allocation
ā ā āāā Dynamic Allocation
ā āāā Static
āāā Troubleshooting
ā āāā check network settings from virtualization environments like
VMware, VirtualBox or etc.
ā āāā check whether the IP address is assigned or not
ā āāā check the NIC status from the host side using #lspci, #nmcli
etc.
ā āāā restart network service
Issue 4: Backup and Restore File Permissions in Linux
Approach / Solutions:
āāā Troubleshooting
ā āāā The best option is to create the ACL file of Dir/Files
before changing the permissions in bulk
ā ā āāā Create the ACL file before changing the permission (or
backup the file permission): ~$ getfacl -R <dir> >
permissions.acl
ā ā āāā Restore File Permissions: ~$ setfacl --
restore=permissions.acl
ā āāā Restore from the VM Snapshot (But not always a good option
for production)
ā āāā Rebuild the VM (this option is safe for the future)
Useful Tip-Related Disk Partition:
āāā Tips
ā āāā After adding/attaching a new disk to a VM, we can get its
status from lsblk command by doing ~$echo 1 >
/sys/block/sda/device/rescan
ā āāā If we increase the disk size of the existing disk then the
additional space gets appended to the existing disk without
affecting the already existing Filesystem and Partition.
ā āāā We can also recreate the filesystem on the block device as
it will automatically format the old one
ā āāā If we have a disk (with created partition/FS) we can share
the .vmdk to another VM. So, after mounting we would have
the same data as it was on the previous one.
troubleshoot Article's
21 articles in total
how to inspect a docker container
read article
š§ Troubleshooting Sound Card Issues on Ubuntu Desktop
read article
Simple steps to debug docker build
read article
Natural hangs during ET Sync
read article
How to Troubleshoot Your Superbox S3 Pro TV!
read article
Fix fatal ambiguous argument 'HEAD^ in Zsh with HEAD^
read article
How do I Troubleshoot Error Code 6069 in QuickBooks
read article
Troubleshooting and Fixing WordPress Email Delivery Problems
read article
Simple Guide for analyzing web traffic for troubleshooting purposes
read article
hint: Updates were rejected because the tip of your current branch is behind
read article
Linux Troubleshooting Scenarios - Part 2
read article
Linux Troubleshooting Scenarios - Part 3
currently reading
Adaptador de red wireless BCM4360 en Kali Linux
read article
Quickops 3: too many connections to my database and what can i do
read article
Compare table structures in two schemata
read article
Troubleshooting the right way
read article
Fix MySQL Cant Logged As Normal User
read article
Youtube iFrame API - YT.Player is not a constructor
read article
Gatsby Develop ERROR #98123 WEBPACK, Generating SSR bundle failed
read article
Resolutions to setup issues with Craft on AMPPS
read article
iOS Development "There's no information available for In-App Purchases.
read article
Featured ones: