Operating System - Linux
1827438 Members
5483 Online
109965 Solutions
New Discussion

Mirror 500GB, then un-mirror

 
Basheer_2
Trusted Contributor

Mirror 500GB, then un-mirror

Hello
Linux AS Ver 3.5
current file sys is lvm = 500GB
need to mirror to another disk
then break the mirror.
Anyone has done it in Linux.
can you explain how to do this.
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: Mirror 500GB, then un-mirror

Isn't more easy just copy the data?

Why mirror then unmirror that disk only?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Basheer_2
Trusted Contributor

Re: Mirror 500GB, then un-mirror

Thanks

In my Experience (HPUX), Mirroring is minimum 3 Times faster than Copying.
Ivan Ferreira
Honored Contributor

Re: Mirror 500GB, then un-mirror

Ok, but you will enter in too much complications. The time you spend configuring the raid device will match the time you need to copy the files.

cd /mirror_mounted_device
use star -c -xdev -C . | xtar -xp

to copy the files, you will see that is very fast.

Using raid + LVM in linux is a little more difficult in linux, because mirroring is not provided by LVM, is provided by md devices.

Anyway, you can see the Software RAID and LVM HOWTO.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Basheer_2
Trusted Contributor

Re: Mirror 500GB, then un-mirror

Thanks Ivan

I am not Using RAID, trying to do it only thru LVM.
Ivan Ferreira
Honored Contributor

Re: Mirror 500GB, then un-mirror

LVM mirroring in HP-UX is more or less a RAID 1. So, to simulate that, you need SOFTWARE RAID + LVM, because LVM in linux does not provides the ability to map one logincal extend to two physical extends (number of copies).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Craig Gilmore
Trusted Contributor

Re: Mirror 500GB, then un-mirror

There is a solution, but not until RHEL 4. There is no mirroring for LVM in RHEL 3. On RHEL 4 you can do exactly what you describe, as mirroring and snapshots are part of the LVM implementation.

Yes, you could go to the source for RHEL 4, grab the LVM and then on RHEL 3 replace the LVM source and build a new kernel... How much time do you want to spend?