LVM 檔案系統處理

當多個卷組具有相同的名稱時,如何重命名邏輯卷

vgdisplay | egrep -i "uuid"

VG UUID 1aedmB-7rSf-k2Vw-r7xW-gGYg-1Vo1-tXwFyZ
VG UUID 5Zwjq6-QAKV-E40F-QnUL-Vy3C-HQ26-dCipar

vgrename -v 5Zwjq6-QAKV-E40F-QnUL-Vy3C-HQ26-dCipar pvenew
vgchange -ay /dev/pvenew
mount /dev/mapper/pvenew-root /mnt
rsync -aAXv / --exclude={/boot/*,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} /mnt/

Last updated