vgcreate, like all of the other LVM commands, affects only the LVM header. As long as you don't try to write to any of the LVs, your data will be untouched. All of the information about the entire volume group is contained in that header. There is no LVM information elsewhere in the physical volume. The only danger is if you have a mistake in the partition table such that the partition starts in the wrong place. That will result in an LVM header being written where it shouldn't be.
[EDIT] OK, there are LVM commands like "pvmove" and "lvresize --resizefs" that do affect the data area of the LV. Those aren't the sort of commands you are likely to be running in this situation.[/EDIT]
Last edited by rknichols; 08-19-2018 at 01:54 PM.
Reason: Some LVM commands do affect the data area.
|