Cloning a Drive in Linux via Commands: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 79: | Line 79: | ||
Use resize2fs /dev/VG.NVMe.P4/LV.Storage to expand a File System | Use resize2fs /dev/VG.NVMe.P4/LV.Storage to expand a File System | ||
=== Renaming a VG or LV === | |||
vgrename OldName NewName | |||
...but first: vgchange -an /dev/VG.NVMe.P3 (-ay enables it) | |||
And then change the name in a bunch of different places like: /etc/kernel/cmdline, /etc/fstab, /etc/default/grub/, /boot/loader/entries/WhatEverEntryName, /boot/grub2/grub.cfg (only if on the booted OS: sudo grub2-mkconfig -o /boot/grub2/grub.cfg, otherwise edit the dang file) | |||
=== And for the Critics === | === And for the Critics === | ||