Managing storage with LVM (Logical Volume Manager) is a common task for Linux administrators. This guide walks through the process of identifying existing volume groups and logical volumes, renaming an LVM logical volume, mounting it to the appropriate directory, and verifying whether it is currently mounted. You’ll learn how to use tools such as lvs, lsblk, findmnt, mount, and df to inspect and manage your storage configuration safely on Rocky Linux 9. Whether you're reorganizing storage layouts or troubleshooting mount issues, this tutorial provides practical commands and examples to help you manage LVM volumes efficiently.
First, check the exact LV name. In your screenshot, the LV path is:
/dev/mapper/vg_arn-srv
This means:
- VG =
vg_arn - LV =
srv
If you want to rename the logical volume from srv to lv_srv:
vg_arn-lv_srv
and it is currently:
vg_arn-srv
then run:
lvrename vg_arn srv lv_srv
After renaming, rebuild initramfs (recommended on system disks):
dracut -f
Then verify:
lvs
Please paste the output of:
lvs
vgs
If you’ve renamed the LV, you don’t “mount the LV name” directly — you mount the filesystem on it.
First, check that the LV exists:
lvs
lsblk -f
output:
LV VG Attr
lv_srv vg_arn -wi-ao----
Create the mount point if needed:
mkdir -p /srv
Mount it:
mount /dev/vg_arn/lv_srv /srv
or
mount /dev/mapper/vg_arn-lv_srv /srv
Verify:
df -h
mount | grep srv
Output:
[root@localhost ~]# mount | grep srv
/dev/mapper/vg_arn-lv_srv on /srv type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
To make it permanent, get the UUID:
blkid /dev/vg_arn/lv_srv
Example:
UUID="12345678-abcd-efgh-ijkl-1234567890ab"
Add to /etc/fstab:
nano /etc/fstab
UUID=12345678-abcd-efgh-ijkl-1234567890ab /srv xfs defaults 0 0
If need to rename the mapper
vi /etc/fstab
/dev/mapper/vg_arn-lv_root / xfs defaults 0 0
UUID=6c7e49fb-359f-4cc8-8bc5-f1d50a4e6172 /boot xfs defaults 0 0
/dev/mapper/vg_arn-srv /srv xfs defaults 0 0
/dev/mapper/vg_arn-lv_tmp /tmp xfs defaults 0 0
/dev/mapper/vg_arn-lv_var /var xfs defaults 0 0
/dev/mapper/vg_arn-lv_swap none swap defaults 0 0
Rename the mapper
/dev/mapper/vg_arn-lv_root / xfs defaults 0 0
UUID=6c7e49fb-359f-4cc8-8bc5-f1d50a4e6172 /boot xfs defaults 0 0
/dev/mapper/vg_arn-lv_srv /srv xfs defaults 0 0
/dev/mapper/vg_arn-lv_tmp /tmp xfs defaults 0 0
/dev/mapper/vg_arn-lv_var /var xfs defaults 0 0
/dev/mapper/vg_arn-lv_swap none swap defaults 0 0
Then test:
mount -a
If this is the LV shown in your screenshot (lv_srv), it should already be mounted on /srv. Check:
df -h | grep srv
Output:
[root@localhost ~]# df -h | grep srv
/dev/mapper/vg_arn-lv_srv 960M 39M 922M 5% /srv
Now, verify the mount
findmnt /srv
If mounted, you’ll see something like:
[root@localhost ~]# findmnt /srv
TARGET SOURCE FSTYPE OPTIONS
/srv /dev/mapper/vg_arn-lv_srv xfs rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota
If nothing is returned, it’s not mounted.
Thanks

Top comments (0)