LVM. Изменить имя Volume Group

Материал из Wiki
Перейти к навигации Перейти к поиску

Ссылки

https://wiki.networksecuritytoolkit.org/index.php/HowTo_Change_The_LVM_Volume_Group_Name_That_Includes_The_Root_Partition

Изменяем имя VG с "centos_centos7-daloradius01-166-45" на "centos7"

Переименование VG

vgrename -v centos_centos7-daloradius01-166-45 centos7

Правим все совпадения "centos_centos7-daloradius01-166-45" на "centos7"

nano /etc/fstab

Правим все совпадения "centos_centos7-daloradius01-166-45" на "centos7"

nano /boot/grub2/grub.cfg

Пересобираем initramfs

mkinitrd -f -v /boot/initramfs-$(uname -r).img $(uname -r)

reboot

Проверяем

pvs

vgs

lvs