Remarks: Temporarily abbreviate the steps, and then add detailed command lines
1. Use vgs and lvs to view vg and lv names
vgs
lvs
2. Rename vg and lv
vgrename vg_old_name vg_new_name
lvrename /dev/vgname/lv_old_name /dev/vgname/lv_new_name
3. Modify / etc / fstab
Modify vg_old_name in fstab to vg_new_name, modify lv_old_name to lv_new_name, it is recommended to use vi to open, use 1, $ s / vg_old_name / vg_new_name / g and 1, $ s / lv_old_name / lv_new_name / g batch modification.
4. Modify grub.conf
Use vi to open /boot/grub/grub.conf, use 1, $ s / vg_old_name / vg_new_name / g and 1, $ s / lv_old_name / lv_new_name / g to modify in batches. [If this step is not modified, the system will not boot normally after the system restarts]