Linux Technical Interview QA with Practical Sessions

Learn Interview tips from IT professionals with live Environment Sessions.
4.35 (124 reviews)
Udemy
platform
English
language
Operating Systems
category
Linux Technical Interview QA with Practical Sessions
644
students
5.5 hours
content
Sep 2018
last update
$49.99
regular price

Why take this course?

  1. Number of volume groups in LVM: There's no strict limit set by the Linux Logical Volume Manager (LVM) for the number of volume groups you can create, except for the theoretical limits imposed by the file system and hardware capabilities. However, practical limits may be influenced by the amount of storage and available resources.

  2. Increasing logical volumes on the fly: Yes, it is possible to increase the size of a logical volume without downtime using LVM tools like lvextend or lvresize.

  3. Reducing logical volumes: You can reduce the size of a logical volume using lvreduce. This operation can be performed online (on-the-fly) if the reduction does not require moving extents beyond the current size.

  4. Increasing logical volumes: To increase the size of a logical volume, you can use lvextend to extend the volume to accommodate more space or lvresize to change the size of the logical volume.

  5. Scanning new LUN or disk for LVM PV: You can use vgs (Volume Group Scanner) to scan disks and find out if they are already part of a volume group, or you can use pvcreate followed by vgscan to recognize new physical volumes.

  6. Scanning disks for existing volume group: Use vgchange -a vgname to activate a volume group and then run vgs.

  7. Scanning a logical volume from an existing volume group: Once the volume group is active, you can scan it for logical volumes with vgs followed by lvdisplay.

  8. Deactivating/stopping a logical volume: Use lvchange -an /dev/<VG_Name>/<LV_Name> to deactivate the logical volume.

  9. Activating a deactivated logical volume: Use lvchange -a yes /dev/<VG_Name>/<LV_Name> to activate it again.

  10. Deactivating/disabling a volume group: You can use vgchange -an <VG_Name> to deactivate all logical volumes in the volume group and effectively disable it. To re-enable it, activate the logical volumes with lvchange and then run vgextend.

  11. Enabling/activating a volume group: Activate the logical volumes within the volume group with lvchange -a yes, followed by vgextend <VG_Name>.

  12. Logical volume mirroring: To find out if disks are being used for mirroring, you can check the volume group metadata using vgs or lvdisplay.

  13. Listing imported volume groups: Use lvs or vgs to list all volume groups accessible by the system.

  14. Listing available logical volumes: Use lsblk, lvlist, or vgdisplay followed by --logs to list all logical volumes in a volume group.

  15. Listing available physical volumes: Use pvdisplay or pvscan to list all the physical volumes that LVM recognizes.

  16. Detailed volume group information: Use vgdisplay <VG_Name>.

Linux Boot Process:

  • The boot process starts with the system's firmware (BIOS or UEFI) powering on the hardware and starting the bootloader.
  • The BIOS/UEFI reads the MBR (Master Boot Record), which contains the bootloader code and a partition table defining the partitions on the disk.
  • The GRUB (GRand Unified Bootloader) is a common bootloader that provides a menu to select different kernels or recovery modes. Grub2 replaced GRUB in many distributions and includes additional features like UEFI support.
  • The kernel initializes the hardware, loads the necessary drivers, and starts user-space applications like init or systemd.

Process Management:

  • A process is an instance of a program in execution. The command to list all processes is ps.
  • Custom properties can be used with ps by specifying options like aux, -%p, --sort={column}, etc.
  • PID (Process IDentifier) uniquely identifies a process. PPID (Parent Process IDentifier) shows the parent of a process. For example, if you run ps aux | grep httpd and see 7893 1234555 tty7 R+ 0:22 /usr/sbin/httpd, 7893 is the PID, 1234555 is the PPID.
  • Nice values range from -20 to 19, where higher numbers (lower nice values) get more CPU resources. Use renice or nice{cmd} to set a process's nice value.
  • 'D Uninterruptible sleep mode' indicates a process sleeping awaiting I/O operations.
  • 'Z' stands for zombie; a process in this state has finished execution but still has an entry in the process table to reap resources. 'p' or 'P' stands for sleeping on IO, and 's' stands for sleep system clock interruption, where the process waits for a timer to wake up.

Process Management Commands:

  • ps aux: Shows detailed information about running processes.
  • kill -l: Lists all signal names (useful for kill or tkill commands).
  • kill {PID}: Sends a SIGTERM signal to the process with the given PID.
  • renice {PID} {nice_value}: Changes the nice value of the running process.
  • top, htop: Interactive process viewers that provide real-time system monitoring and management capabilities.

Remember, these are just some of the common questions and commands you might encounter during a technical interview focused on Linux process management and LVM. It's important to have a good understanding of the underlying concepts as well as the practical application of these commands.

Course Gallery

Linux Technical Interview QA with Practical Sessions – Screenshot 1
Screenshot 1Linux Technical Interview QA with Practical Sessions
Linux Technical Interview QA with Practical Sessions – Screenshot 2
Screenshot 2Linux Technical Interview QA with Practical Sessions
Linux Technical Interview QA with Practical Sessions – Screenshot 3
Screenshot 3Linux Technical Interview QA with Practical Sessions
Linux Technical Interview QA with Practical Sessions – Screenshot 4
Screenshot 4Linux Technical Interview QA with Practical Sessions

Loading charts...

1562490
udemy ID
20/02/2018
course created date
21/11/2019
course indexed date
Bot
course submited by