LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-10-2012, 12:35 AM   #16
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16

@rodrifa

i installed os on second hardisk also mounted in /mnt

Disk /dev/sda: 500.1 GB, 500107862016 bytes // this is second hdd
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 60801 488279610 8e Linux LVM

Disk /dev/sdb: 160.0 GB, 160041885696 bytes // currently boot with this drive
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 19457 156183930 8e Linux LVM


i need to clone /dev/sdb to /dev/sda .
160 gb hdd (sdb)has mailserver and webserver(portal) installed in it.if i run dd if=/dev/sdb of=/dev/sda will mailserver and portal also run perfactly as running in sdb.
 
Old 04-10-2012, 03:47 AM   #17
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
i run
dd if=/dev/sdb of=/dev/sda and hit enter

its taking long time 2 hr gone...

also file system changed same as 160gb hdd FS
 
Old 04-10-2012, 04:20 AM   #18
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
dd if=/dev/sdb of=/dev/sda

312581808+0 records in
312581808+0 records out
160041885696 bytes (160 GB) copied, 10902.1 seconds, 14.7 MB/s
 
Old 04-10-2012, 01:55 PM   #19
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
You have lost the two partitions you had in /dev/sda, wich I assume you didn't care about, and now you have an exact image of /dev/sdb in /dev/sda. Just take sda to the machine where you want the backup to be and start it. You will have a clone of the first one.

If you are happy with it you can resize your partition and then your file system to take advantage of that space you have unused in your drive (you only used 160GB from the 500GB you had).
 
Old 04-11-2012, 01:32 AM   #20
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
@rodrifa
dd command work to make exactly clone of file system and also get boot hdd ...that's what i needed.

but it copied 160 gb hdd data.rest space are unallocated.so how should i use these unalocated data.shall i do with fdisk or some other command is their...?
 
Old 04-11-2012, 10:51 AM   #21
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
Either you create a new partition with fdisk using the free space or you resize your last partition to collect the rest of the disk's space, if you do that (beware that the last partition could be the swap partition and you may need to move it to the end of the disk to resize the partition you want), you will later have to resize the filesystem, there are plenty of guides to do that task on the net so google for those guides and you will have the answers.
 
Old 04-11-2012, 11:23 PM   #22
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
thanks.....one last ques. after running dd what to check for confirming my server is ok and performing well..
 
  


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
Complete server backup shorto Linux - Newbie 1 09-06-2009 10:50 AM
[SOLVED] Complete System Backup ssvirdi Ubuntu 7 04-13-2009 11:47 AM
How to Do Complete BackUp? your_shadow03 Linux - Newbie 2 09-26-2008 08:07 AM
RHEL 5 Complete Restore from backup to identical server direwolf23 Red Hat 1 04-25-2008 07:28 AM
Is it possible to take complete backup rhl_one Slackware 12 01-14-2004 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:26 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