> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/pomoxve/fu-lu/lvm-dang-an-xi-tong-chu-li.md).

# 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/

```
