Hi d tbsky,
I don't know what others do, I just do essentially what you said, but
without stopping the DRBD service. I simply restore the snapshot to the
primary DRBD block device, not the backing device and let DRBD do it's
magic in the background.
I have done this for a Windows file server as well as a variety of Linux
servers and haven't had an issue yet.
Having said that, I think others recommend stopping DRBD and restoring
to the backing device, then forcing a sync with
drbdadm secondary <resource>
drbdadm connect --discard-my-data <resource>
You will find others on here with a deeper understanding of this. Take
their advice over mine if in doubt, and test, test, test...
*Paul O'Rorke*
*Tracker Software Products (Canada) Limited *
www.tracker-software.com <http://www.tracker-software.com/>
Tel: +1 (250) 324 1621
Fax: +1 (250) 324 1623
<http://www.tracker-software.com/>
Support:
http://www.tracker-software.com/support
Download latest Releases
http://www.tracker-software.com/downloads/
On 2020-01-26 7:59 a.m., d tbsky wrote:
Hi:
I have some windows vm running on top of drbd, and drbd on top of
lvm. I want to install dotnet 4.8 on these vm. the patch can not be
uninstalled and may destroy the system. so I want to make snapshot of
lvm and restore the snapshot if necessary. I wonder what to do at drbd
layer when lvm snapshot got restored. I think the safe steps like
below:
1. disconnect secondary and abandon the content
2. stop primary drbd service
3. restore primary lvm snapshot
4. start primary drbd service and connect secondary to re-sync from primary
but I wonder if there are faster ways?
1. do we need to stop drbd service before restore lvm snapshot?
2. can we let drbd know we revert to some previous state and re-sync
only necessary data?
_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
[email protected]
https://lists.linbit.com/mailman/listinfo/drbd-user
_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
[email protected]
https://lists.linbit.com/mailman/listinfo/drbd-user