Article 55NZC Break RAID1 with lvm volume group without losing filestsytem and data

Break RAID1 with lvm volume group without losing filestsytem and data

by
Sum1
from LinuxQuestions.org on (#55NZC)
I cannot recall the precise steps of my original configuration.
I thought I had noted all my actions in a log or journal but I can't find it now.

CentOS 7 Server
UEFI bios
SATA Controller Mode set to: RAID1 in bios
I configured /dev/sdc and /dev/sdd in RAID1 using mdadm thus creating a 2TB RAID1 array.
I then created a 2TB lvm physical volume and then configured all allocatable space to one volume group with xfs filesystem.

pvdisplay --

--- Physical volume ---
PV Name /dev/md125
VG Name data
PV Size <1.82 TiB / not usable 3.06 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476899
Free PE 0
Allocated PE 476899
PV UUID dsvFH3-9eL0-cOqt-jOGJ-cNrN-Nxwk-cWGGlI

vgdisplay --

--- Volume group ---
VG Name data
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <1.82 TiB
PE Size 4.00 MiB
Total PE 476899
Alloc PE / Size 476899 / <1.82 TiB
Free PE / Size 0 / 0
VG UUID 1lI07H-Wgbr-2NvR-qojp-aGX9-QeDl-nDt1ja

/etc/fstab shows - /dev/mapper/data /mnt/data xfs defaults 0 0

I want to save the current data on one of the drives and use the remaining drive for other data.
Is there a way to remove the RAID1 configuration without losing any data on the xfs filesystem?
Is it possible to keep the current Volume Group located and mounted at /dev/mapper/data /mnt/data but remove the underlying RAID1 configuration?

Thank you for your guidance.latest?d=yIl2AUoC8zA latest?i=6XvcGwJXYhw:Gp4hgLlh4sc:F7zBnMy latest?i=6XvcGwJXYhw:Gp4hgLlh4sc:V_sGLiP latest?d=qj6IDK7rITs latest?i=6XvcGwJXYhw:Gp4hgLlh4sc:gIN9vFw6XvcGwJXYhw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments