At the beginning, it look like:

Now we begin to merge the two volume groups to one.

Now it look like:

Now we want to remove md0, but before we must move the data to the other physical volume.

Now we can remove the md0 from the system volume group.