How to map LUN, Disk, LVM and FileSystem in Linux
2DayGeek, Monday, July 10,2023
There are situations where you want to map storage LUN (Logical Unit Number), Block Device, LVM (LV & VG names) and File System (FS) information for FS expansion or Disaster Recovery (DR) operation.
This is a routine activity for most Linux administrators, and we usually use some script that displays the block device mapping against SAN LUN, and then we will manually add the LVM and File System information to complete the operation.
Going forward, you don't need to manually intervene on this activity because these information can be mapped by shell script as shown below.