LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2007, 10:12 AM   #1
kmand
LQ Newbie
 
Registered: Jul 2005
Posts: 21

Rep: Reputation: 15
Cloning an active partition?


I would like to clone a partition that is in use and active.

I do this on Solaris by upgrading the partition to a one way mirror (which takes a reboot), but then I can add a partition live to make it two way and let the mirror sync while the partition is in use.

Can I do something like this on Linux?
 
Old 11-22-2007, 11:00 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Yes, it involves setting up a free partition as a degraded RAID 1, copying the files of the active partition to it (in single-user mode), switching from the live partition to the newly-created RAID 1, then adding the live partition to the RAID 1 set. You can start by searching for software raid on linux.

Last edited by Berhanie; 11-22-2007 at 11:02 AM.
 
Old 11-22-2007, 11:59 AM   #3
kmand
LQ Newbie
 
Registered: Jul 2005
Posts: 21

Original Poster
Rep: Reputation: 15
If I have to copy the partition in single user mode that defeats my purpose. The partition is 100's of GB and will take many hours to copy, and if I did that I really would be done without doing the raid. I just want a consistent snapshot of the partition.

On solaris it would take a few minutes for the reboot, it would sync the mirror for hours multiuser and then I could detach the spare at the moment I wanted to freeze the clone.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition cloning using dd greenberet Linux - Software 2 04-06-2007 06:20 AM
cloning partition, wrong root linuxer12 Linux - General 5 02-20-2007 12:40 PM
Moving/cloning partition LeftyAce Debian 17 01-13-2006 03:19 PM
Cloning Fat32 Partition - Knoppix? Mhehman Linux - Newbie 1 03-12-2005 04:31 AM
Cloning a / and swap partition for Red Hat 9 dravya Linux - General 2 05-07-2004 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration