LinuxQuestions.org
Help answer threads with 0 replies.
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 05-09-2005, 05:07 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 899

Rep: Reputation: 41
mirror disk - just once (replica)


Im having Debian with http, DNS and sendmail. It is installed on one harddisk (hda) divided to hda1, hda2 and hda3.

Just in case disk damage i wish to have a replica of entire hda on another disk (hdb)

What should I do to achive that ?
1.Does hdb should be divided exactelly like hda?
2.Should it (hdb) be formated like hda ?
3. What command should be use to replicate hda to hdb ?

I heard about many methods but never heard how to do this from the beginning to the end. Bellow there r some but im not sure does i really works:

1st.
#To backup:
cat /dev/hda1 > some_file
#then to restore type:
cat some_file > /dev/hdb1

2nd. What about command DD? Is this a way to achive replica ?
3rd. Does RSYNC can do this as well ?


Important:
This operation is going to be done just 1 time, then im going to unplugged hdb and put it to a safe place. In case disaster I just replace disks.
Could you please advice me something?


PS.
I know its not a perfect way to backup but im SURE i want to go this way.
All i need is an replicated entire hda.

PS2.
I know about PARTIMAGE but if it is possible i wish to do that any other way.
 
Old 05-09-2005, 05:49 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
hardware mirror (if you're bios supports it)? or indeed software mirror. does this sound like an option for you? if so there is plenty on how to do it.

EDIT: appologies, had a late one, didnt read the post etc etc.

if you have hardware RAID then linux will see your two disks as one. If a disk dies you plug in the new disk and there are linux utilities (google search) availible to cause the mirror to rebuild.

Theres not much to it at all.

Last edited by Frustin; 05-09-2005 at 06:01 AM.
 
Old 05-09-2005, 05:50 AM   #3
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Yes, what he said. Hardware mirror. RAID 1.
 
Old 05-09-2005, 07:19 AM   #4
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 899

Original Poster
Rep: Reputation: 41
Guys guys! NO!! Read please again!
Im NOT asking about RAID 1 - MIRRORING. Im just asking about "HOW TO MIRROR A DISK ONLY ONE TIME". All a want is to have REPLICA of hda.

Again! Im not asking about RAID! Im asking how to replica of disk hda.

To have boot able copy of disk 1 (hda).
PLEASE READ MORE CAREFULLY NEXT TIME!

add:
I want to create disk exactelly this same as hda - replica of hda. So i can put then replicated disk to machine with exactelly this same configuration and have backup system in case disaster.

No more ideas how to explain

Last edited by czezz; 05-09-2005 at 07:32 AM.
 
Old 05-09-2005, 07:25 AM   #5
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Ah, the answer to the Universe is dd. Or was it 42.. or 43. Damn mice.

Follow the path to enlightenment...

http://www.rajeevnet.com/hacks_hints...s_cloning.html

Or, if you want it to look pretty with the mbr, you can use this:

http://www.partimage.org/screenshots.en.html
 
Old 05-09-2005, 07:51 AM   #6
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 899

Original Poster
Rep: Reputation: 41
YES!!!
This is an answer:

dd if=/dev/sda of=/dev/sdb

All i needed.
Thx Thoreau for link
 
Old 05-09-2005, 08:18 AM   #7
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
 
Old 08-10-2009, 12:07 PM   #8
Sm0k3
Member
 
Registered: Sep 2003
Location: Chicago
Distribution: Slackware-current
Posts: 63

Rep: Reputation: 15
dd is great if you have 2 identical hard disks. i'd recommend FSArchiver:
http://www.fsarchiver.org/Main_Page
 
  


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
Mirror the root disk fayez Linux - Hardware 1 08-23-2005 06:32 PM
mirror 2 hard disk under suse kafnir Linux - General 1 05-11-2005 12:17 AM
mirror BRAHmS Linux - General 1 05-08-2004 07:31 PM
downloading from mirror tomamodi Linux - Software 2 04-26-2004 11:32 PM
How to Mirror HD? sikandar Linux - Software 4 08-25-2003 11:16 AM

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

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