[ClusterLabs] Removing DRBD w/out Data Loss?

Valentin Vidić vvidic at valentin-vidic.from.hr
Tue Sep 8 11:10:21 EDT 2020


On Tue, Sep 08, 2020 at 02:33:37PM +0000, Eric Robinson wrote:
> I checked the DRBD manual for this, but didn't see an answer. We need to convert a DRBD cluster node into standalone server and remove DRBD without losing the data. Is that possible? I asked on the DRBD list but it didn't get much of a response.
> 
> Given:
> 
> The backing device is logical volume: /dev/vg1/lv1
> 
> The drbd volume is: drbd0
> 
> The filesystem is ext4 on /dev/drbd0
> 
> Since the filesystem is built on /dev/drbd0, not on /dev/vg1/lv1, if we remove drbd from the stack, how do we get access the data?

After stopping DRBD, wipefs /dev/vg1/lv1 should list the signatures on
the device. Removing *only* the DRBD signature will give a filesystem
accessible directly on /dev/vg1/lv1. Make sure to use the --backup
option.

-- 
Valentin


More information about the Users mailing list