lvmteam / lvm2

Mirror of upstream LVM2 repository
https://gitlab.com/lvmteam/lvm2
GNU General Public License v2.0
128 stars 72 forks source link

Using lv devices while initial syncing #142

Closed lignumqt closed 6 months ago

lignumqt commented 6 months ago

Hello everyone! I'm not sure where I should ask, pls sorry if I'm wrong and put it here. It'd be helpful if you can send link where I may ask such questions.

I want to use lv raid6(and other raid) and it requires to do initial resync, but I'm not sure if I can use the device(or several devices at the same time) while initial resync, for instance sharing this lv to vmware and create some VM or smth like that. Is it safe to use the device during the initial resync? Will my data be damaged?

I couldn't find any information in docs. If there's some info there pls tell me where.

Thanks!

zkabelac commented 6 months ago

LV device is fully usable from the moment of creation. Synchronization of raid array is a background task which may in cases of large arrays take even days.

User can influence the speed of resync (faster resync -> higher disk resource abuse).

For some cases its worth to consider to create raid array with --nosync options - although it has some drawbacks as it is limiting some feautures....