Linux :: How do i remove a disk from an LVM?

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi all,
I've got a pair of 500GB SATA drives running in a RAID-1 array created using mdadm. I've then added them into an LVM group (as i planned to expand the storage). However, i'm now rebuilding the server, so need to take one of the disks out to copy the data off.

How do I remove the disk from the LVM, de-RAID it, and get it to a point where the data is available in full on both disks from the RAID-1 pair?

Cheers,
Matt
 
removing the disk from the machine de-raids it.

This should be what you want.

if you want 2 copies of the data separately available in the same machine (why???) just change the mount point of the drive somewhere in mdam config. So the raid config can't 'see' the second drive.
 
Last edited:
Back
Top Bottom