InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How To List The Available Logical Volumes On The System? |
|
Answer» Use "LVS" command to list the available LOGICAL VOLUMES on the SYSTEM. Use "lvs" command to list the available logical volumes on the system. |
|
| 2. |
How To List The Available Physical Volumes In Lvm? |
|
Answer» Use "PVS" COMMAND to list the available PHYSICAL volumes. Use "pvs" command to list the available physical volumes. |
|
| 3. |
How To See The Detailed Volume Group Information? |
|
Answer» USE "vgdisplay vg_name" Use "vgdisplay vg_name" |
|
| 4. |
How To See The Detailed Logical Volume Information? |
|
Answer» USE "lvdisplay /dev/vg_name/lv_name" Use "lvdisplay /dev/vg_name/lv_name" |
|
| 5. |
How To See The Detailed Physical Volume Information? |
|
Answer» USE "pvdisplay /dev/disk_name" EX: pvdisplay /dev/sde Use "pvdisplay /dev/disk_name" Ex: pvdisplay /dev/sde |
|
| 6. |
How To Rename Volume Group? Can We Rename The Vg On Fly? |
|
Answer» YES. Its possible to RENAME the volume group on fly. But the MOUNTED volumes will not reflect the same unless you re-mount the volume with NEW VG name. Need to update the /etc/fstab with new VG name to mount the volumes ACROSS the system reboot. Yes. Its possible to rename the volume group on fly. But the mounted volumes will not reflect the same unless you re-mount the volume with new VG name. Need to update the /etc/fstab with new VG name to mount the volumes across the system reboot. |
|
| 7. |
How To Take A Lvm Configuration Backup? |
|
Answer» Use "vgcfgbackup vg_name" to TAKE the LATEST configuration BACKUP of volume group. The DEFAULT volume group backup location is "/etc/lvm/backup" . Use "vgcfgbackup vg_name" to take the latest configuration backup of volume group. The default volume group backup location is "/etc/lvm/backup" . |
|
| 8. |
How To Re-create The Device Files For Lvm Volumes? |
|
Answer» RUN "vgmknodes" to RECREATE the LVM DEVICES FILES. Run "vgmknodes" to recreate the LVM devices files. |
|
| 9. |
What Is Lvmdump? |
|
Answer» "LVMDUMP" is tool for LVM2 to collect the various information for diagnostic purposes.By DEFAULT, it CREATES a tarball suitable for submission along with a problem report "lvmdump" is tool for LVM2 to collect the various information for diagnostic purposes.By default, it creates a tarball suitable for submission along with a problem report |
|
| 10. |
How Are Snapshots In Lvm2 Different From Lvm1 In Redhat Linux? |
|
Answer» LVM1 SNAPSHOTS are READONLY by DEFAULT where LVM2 snapshots were read/write. LVM1 snapshots are readonly by default where LVM2 snapshots were read/write. |
|
| 11. |
What Are The Steps Involved To Create The Logical Volume From Scratch? |
Answer»
|
|
| 12. |
How To Extent The Volume Group? |
|
Answer» USING "vgextend" we can INCREASE the VOLUME GROUP. Using "vgextend" we can increase the volume group. |
|
| 13. |
Assume Volume Group "vg02" Is Already Exists. How Do You Extend The Volume Group With 50gb? Provide All The Steps With Commands? |
| Answer» | |
| 14. |
If The Vg02 Has Two Physical Volumes Called /dev/sdc/ & /dev/sdd. How Do You Remove /dev/sdd From Vg02? |
|
Answer» "vgreduce VG02 /dev/sdd/" "vgreduce vg02 /dev/sdd/" |
|
| 15. |
How To Decommission/remove Lvm Completely From The Host? |
| Answer» | |
| 16. |
How To Create Partition From The Raw Disk? |
|
Answer» Using fdisk utility we can create partitions from the RAW disk.Below are the steps to create partition from the raw disk :
Using fdisk utility we can create partitions from the raw disk.Below are the steps to create partition from the raw disk : |
|
| 17. |
Why Lvm Is Required? |
|
Answer» LVM stands for Logical Volume Manager , to RESIZE filesystem's size online we required LVM partition in Linux. Size of LVM partition can be extended and reduced USING the lvextend & lvreduce COMMANDS respectively. LVM stands for Logical Volume Manager , to resize filesystem's size online we required LVM partition in Linux. Size of LVM partition can be extended and reduced using the lvextend & lvreduce commands respectively. |
|
| 18. |
How To Increase The Size Of Lvm Partition ? |
|
Answer» Below are the Logical STEPS : Use the lvextend command (lvextend L +100M /DEV/<Name of the LVM Partition> , in this example we are extending the SIZE by 100MB.
Below are the Logical Steps : Use the lvextend command (lvextend L +100M /dev/<Name of the LVM Partition> , in this example we are extending the size by 100MB.
|
|
| 19. |
How To Reduce Or Shrink The Size Of Lvm Partition ? |
|
Answer» Below are the logical Steps to reduce size of LVM partition : Umount the FILESYSTEM using umount command, USE resize2fs command , Above Command will shrink the size & will make the filesystem size 10GB. Below are the logical Steps to reduce size of LVM partition : Umount the filesystem using umount command, use resize2fs command , Above Command will shrink the size & will make the filesystem size 10GB. |
|
| 20. |
What Does Sar Provides And At Which Location Sar Logs Are Stored ? |
|
Answer» Sar Collect, report, or save system activity information. The default version of the sar command (CPU utilization report) might be one of the FIRST facilities the user runs to begin system activity INVESTIGATION, because it monitors major system resources. If CPU utilization is near 100 PERCENT (user + nice + system), the workload SAMPLED is CPUbound. By default log files of Sar command is located at /var/log/sa/sadd file, where the dd parameter indicates the current day. Sar Collect, report, or save system activity information. The default version of the sar command (CPU utilization report) might be one of the first facilities the user runs to begin system activity investigation, because it monitors major system resources. If CPU utilization is near 100 percent (user + nice + system), the workload sampled is CPUbound. By default log files of Sar command is located at /var/log/sa/sadd file, where the dd parameter indicates the current day. |
|
| 21. |
How To Create Partition From The Raw Disk ? |
|
Answer» Using fdisk utility we can create partitions from the RAW disk.Below are the steps to create partition from the raw dsik :
Using fdisk utility we can create partitions from the raw disk.Below are the steps to create partition from the raw dsik : |
|
| 22. |
How To List The Imported Volume Groups? |
|
Answer» Use "VGS" COMMAND to DISPLAY the imported VOLUME group. Use "vgs" command to display the imported volume group. |
|
| 23. |
What Are Steps To Perform In Order To Increase The Logical Volume On Fly? |
| Answer» | |
| 24. |
How Do You Find That What Are The Disks Are Used For Logical Volume Mirroring? |
|
Answer» use "lvs -a -o +devices" |
|
| 25. |
How To Enable The Volume Group? Or Activate The Volume Group? |
|
Answer» "vgchange -AY volume_group_name" . "vgchange -ay volume_group_name" . |
|
| 26. |
How To Disable The Volume Group? Or Deactivate The Volume Group? |
|
Answer» "vgchange -an volume_group_name". "vgchange -an volume_group_name". |
|
| 27. |
How To Activate The Logical Volume Which Is In Deactivated State? |
|
Answer» "lvchange -AY /dev/vg_name/lv_name". "lvchange -ay /dev/vg_name/lv_name". |
|
| 28. |
How To Stop The Logical Volume? Or Deactivate The Logical Volume? |
|
Answer» "lvchange -an /dev/vg_name/lv_name" "lvchange -an /dev/vg_name/lv_name" |
|
| 29. |
How To Scan A Logical Volume From Exising Volume Group? |
|
Answer» lvscan lvscan |
|
| 30. |
How To Scan Disks For Existing Volume Group? |
|
Answer» Use "vgscan" to SCAN EXISTING volume GROUP from newly connected SAN or DISKS. Use "vgscan" to scan existing volume group from newly connected SAN or DISKS. |
|
| 31. |
How Do You Scan The New Lun Or Disk? |
|
Answer» Use "echo 1 > /sys/class/scsi_host/hostx/scan" to scan DISK from newly connected SAN or DISKS and also replace the "x" with NUMBER of HOST ID present under /sys/class/scsi_host/. Use "echo 1 > /sys/class/scsi_host/hostx/scan" to scan disk from newly connected SAN or DISKS and also replace the "x" with number of host id present under /sys/class/scsi_host/. |
|
| 32. |
How To Reduce The Logical Volume? Is It Possible To Reduce On Fly? |
|
Answer» No. we can't REDUCE the logical volume on fly. Here is the steps to reduce the logical volume.
No. we can't reduce the logical volume on fly. Here is the steps to reduce the logical volume. |
|
| 33. |
Is It Possible To Increase The Logical Volume On Fly? |
|
Answer» Yes. LVM has the FEATURE to increase the VOLUME without UNMOUNT it. Yes. LVM has the feature to increase the volume without unmount it. |
|
| 34. |
How To Backup New Lvm Data Structures? |
|
Answer» # vgcfgbackup /dev/vgname # vgcfgbackup /dev/vgname |
|
| 35. |
How To Remove A Disk From A Volume Group? |
|
Answer» Syntax: # vgreduce <vgname> <disk> Syntax: # vgreduce <vgname> <disk> |
|
| 36. |
How To Add A Disk To A Volume Group? |
|
Answer» SUPPOSE DISK is /dev/sdb suppose disk is /dev/sdb |
|
| 37. |
What Is The Partition Type Number For Swap, Raid And Lvm? |
|
Answer» SWAP (82), RAID (FD) and LVM (8e) SWAP (82), RAID (fd) and LVM (8e) |
|
| 38. |
Which Command Is Used To Extend A Logical Volume? |
|
Answer» # lvextend -SIZE +<addsize> /DEV/<vgname>/<lvname> resize2fs /dev/<vgname>/<lvname> # lvextend -size +<addsize> /dev/<vgname>/<lvname> resize2fs /dev/<vgname>/<lvname> |
|
| 39. |
If A Volume Group Vgname Have 3 Pv’s (/dev/sda5, /dev/sda6, /dev/sda7) But We Want To Remove /dev/sda7 Pv From This Vgname? |
|
Answer» # vgreduce VGNAME /dev/sda7 # vgreduce vgname /dev/sda7 |
|
| 40. |
If A Volume Group Named As Vgname Already Exists But We Need To Extend This Volume Group Up To 4gb. Explain All Steps? |
|
Answer» Firstly, create Physical VOLUME (/dev/sdaX, where X is the PARTITION NUMBER) of size 4GB. Firstly, create Physical volume (/dev/sdaX, where X is the partition number) of size 4GB. |
|
| 41. |
What Is The Maximum Size Of A Single Lv? |
|
Answer» For 2.4 based kernels, the MAXIMUM LV size is 2TB. For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB. For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. For 2.4 based kernels, the maximum LV size is 2TB. For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB. For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. |
|
| 42. |
How Are Snapshots In Lvm2 Different From Lvm1? |
|
Answer» In LVM2 SNAPSHOTS are READ/write by default, whereas in LVM1, snapshots were read only. In LVM2 snapshots are read/write by default, whereas in LVM1, snapshots were read only. |
|
| 43. |
How You Will Check On Your Server Or System Device-mapper Is Installed Or Not? |
|
Answer» Check the following file: #CAT /proc/misc if this file contains “device-mapper” TERM it MEANS device mapper is INSTALLED on your system. Check the following file: #cat /proc/misc if this file contains “device-mapper” term it means device mapper is installed on your system. |
|
| 44. |
Explain Lvm Snapshot? |
|
Answer» LVM snapshots allow the administrator to create a new block device which PRESENTS an exact copy of a logical volume, FROZEN at some POINT in time. LVM snapshots allow the administrator to create a new block device which presents an exact copy of a logical volume, frozen at some point in time. |
|
| 45. |
What Is The Difference Between Lvm And Raid? |
|
Answer» A RAID DEVICE is a PHYSICAL grouping of disk devices in order to create a logical PRESENTATION of one device whereas LVM is a logical layer that that can be MANIPULATED in order to create and, or expand a logical presentation of a disk device to an OS. A RAID device is a physical grouping of disk devices in order to create a logical presentation of one device whereas LVM is a logical layer that that can be manipulated in order to create and, or expand a logical presentation of a disk device to an OS. |
|
| 46. |
What Is Lvm? |
|
Answer» LVM stands for Logical Volume MANAGER. LVM, is a storage management solution that allows administrators to divide hard drive space into PHYSICAL volumes (PV), which can then be combined into volume groups (VG), which are then DIVIDED into logical volumes (LV) on which the filesystem and mount point are created. LVM stands for Logical Volume Manager. LVM, is a storage management solution that allows administrators to divide hard drive space into physical volumes (PV), which can then be combined into volume groups (VG), which are then divided into logical volumes (LV) on which the filesystem and mount point are created. |
|