![기존 LVM VG를 스트라이프(RAID0 eq)로 변환할 수 있습니까? [복사]](https://linux55.com/image/36323/%EA%B8%B0%EC%A1%B4%20LVM%20VG%EB%A5%BC%20%EC%8A%A4%ED%8A%B8%EB%9D%BC%EC%9D%B4%ED%94%84(RAID0%20eq)%EB%A1%9C%20%EB%B3%80%ED%99%98%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%20%5B%EB%B3%B5%EC%82%AC%5D.png)
4개의 논리 볼륨을 포함하는 3개의 디스크(ext4)로 구성된 기존 LVM 볼륨 그룹이 있습니다. 아직 차세대 FS로 도약할 준비가 되지 않았으므로 디스크의 로드 밸런싱을 조정하고 싶습니다. 스트라이핑을 사용하여 VG(RAID0과 동일)를 생성할 수 있다는 것을 보았는데, 기존 것을 변환하고 싶습니다. 이것이 가능합니까?
답변1
이 기록이 얼마나 오래되었는지는 확실하지 않지만 v2.02.183에 표시됩니다 man lvconvert
.
--stripes Number
Specifies the number of stripes in a striped LV. This is the number of PVs
(devices) that a striped LV is spread across. Data that appears sequential in
the LV is spread across multiple devices in units of the stripe size (see
--stripesize). This does not apply to existing allocated space, only newly
allocated space can be striped.
그러니까 사실은 아니지변화기존 LV를 스트라이프로 변경합니다. 기존 데이터는 그대로 유지됩니다.
답변2
sudo lvconvert --stripes 3 vg/lv /dev/sda1 /dev/sdb1 /dev/sdc1
여기서 2는 스트라이프 수, 논리 볼륨, 스트라이프할 장치 3개입니다. RAID 0에는 중복성이 없습니다.