LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2009, 12:59 PM   #1
nunolf
LQ Newbie
 
Registered: Dec 2004
Location: Utrecht - The Netherlands
Distribution: CentOS, Scientific Linux, eeeubunto, SuSe Linux
Posts: 3

Rep: Reputation: 0
Clone disk


Hi *,

Have a disk with ext3 and LVM partitions, and need to clone it several times. I have direct access to the physical machine. Tried to use partimage (from SysRescueCD) to clone the LVM partition, but it is not recognized (not supported acordingly to their site).

Does anybody has experience with other software able to deal with LVM?

Started to look for alternatives and from "linuxquestions" I found out that "dd" is a good way of doing it. So if I do not get an answer, probably this is the best bet.

Cheers,
N.
 
Old 09-21-2009, 03:42 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
dd was my first choice so that's two of us now
 
Old 09-21-2009, 07:17 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
LVM does a have a snapshot utility; but I've tried it.
http://tldp.org/HOWTO/LVM-HOWTO/snapshotintro.html
 
Old 09-22-2009, 08:10 AM   #4
nunolf
LQ Newbie
 
Registered: Dec 2004
Location: Utrecht - The Netherlands
Distribution: CentOS, Scientific Linux, eeeubunto, SuSe Linux
Posts: 3

Original Poster
Rep: Reputation: 0
Hey *,

Just to report that "dd" indeed did the trick. Only had to edit the hostname, and that was it. Boots up without any problems.

About the LVM snapshot, I'm already aware of it. Still, you have first to build the LVM partition, create the PV and VG before dumping the snapshot, right? Thus "dd" does all that, MBR, partition table, and partition contents.

Thanks guys for the feedback.
Cheers,
N.
 
Old 09-22-2009, 04:07 PM   #5
vivekh_87
LQ Newbie
 
Registered: Sep 2009
Location: chennai
Posts: 1

Rep: Reputation: 0
good....

Quote:
Originally Posted by nunolf View Post
Hey *,

Just to report that "dd" indeed did the trick. Only had to edit the hostname, and that was it. Boots up without any problems.

About the LVM snapshot, I'm already aware of it. Still, you have first to build the LVM partition, create the PV and VG before dumping the snapshot, right? Thus "dd" does all that, MBR, partition table, and partition contents.

Thanks guys for the feedback.
Cheers,
N.
excellent!!!!!.....wow!!!!!!
 
Old 09-22-2009, 04:38 PM   #6
btncix
Member
 
Registered: Aug 2009
Location: USA
Posts: 141

Rep: Reputation: 26
I would think that if your target hard drive is of a different size, then you would have to create partitions of equal sizes and then dd the partitons separately. Is this what you did?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
clone hard disk with: cat /dev/sda >/media/disk/backup deathalele Linux - Security 3 04-17-2009 01:29 AM
clone the second scsi disk free2phone Linux - Newbie 1 06-11-2008 10:51 PM
RAID1 array down to one disk with bad blocks, clone to good disk with dd noerror? ewolf Linux - Server 2 05-10-2008 01:40 AM
Disk clone for linux sunlinux Linux - Software 4 08-19-2006 12:53 PM
Clone IDE disk to SATA disk sdem Linux - Software 1 02-16-2006 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration