![LVM:如何在不影響現有資料的情況下剝離邏輯磁碟區?](https://rvso.com/image/761001/LVM%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E4%B8%8D%E5%BD%B1%E9%9F%BF%E7%8F%BE%E6%9C%89%E8%B3%87%E6%96%99%E7%9A%84%E6%83%85%E6%B3%81%E4%B8%8B%E5%89%9D%E9%9B%A2%E9%82%8F%E8%BC%AF%E7%A3%81%E7%A2%9F%E5%8D%80%EF%BC%9F.png)
我有一個 LV lv1,由 VG vg1 使用 2 個 PV pv1 和 pv2 進行備份。
據lvs
我了解,LV的佈局是線性的:
# lvs -o+lv_layout,stripes
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Layout #Str
linear 1
lv1 vg_HDD -wi-ao---- <10,43t linear 1
lv1 vg_HDD -wi-ao---- <10,43t linear 1
lv1 vg_HDD -wi-ao---- <10,43t
我知道我必須將 PV 轉換為lvconvert --type striped lv1
但我不知道:
- 這是否會影響數據?
- 這就是我想要的,例如剝離寫入 pv1 和 pv2 的數據,以便像 raid0 那樣利用這兩個磁碟。
謝謝你的幫忙!