Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-04-2001, 07:48 AM
|
#1
|
LQ Newbie
Registered: Nov 2000
Location: Mossel Bay, South Africa
Posts: 2
Rep:
|
Duplicate / Mirror Linux Drive
Hi, I am running Linux 6, Kernel 2.2.5-15 (I586), I have now installed a second hard drive (Exactly the same). I am wanting to make a mirror image on the second hard drive(from this first drive) on a daily basis for backup. What would be my best & easiset approach to solve this? The second drive must be able to be set to a primary master for booting if required. - Toady
|
|
|
07-04-2001, 08:21 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
If they're identical you can use dd to do this, either on a disk or partition level... something like
Code:
dd if=/dev/hda of=/dev/hdb bs=1k count=sizeOfHDD
or perhaps per partition
Code:
dd if=/dev/hda1 of=/dev/hdb1 bs=1k count=sizeOfPartition
but I'd look into setting up software RAID-1 - this will mirror them for you, and mask failure of a single drive, although I don't know what the story is with having / on software raid.
HTH
Jamie...
|
|
|
07-04-2001, 02:03 PM
|
#3
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Software RAID on 2.2.x kernels require a patch. I never really got root raid to work nicely until 2.4.x
For a daily backup to that drive, I would just use the following (stolen from the "Root RAID How-To") commands. This stuff doesn't require RAID to run, it's just a handy tool for copying lots of stuff.
First you need to partition and format the new (empty) drive. Please make sure it's the right one! Then mount it to something like /mnt
Code:
cd /
find . -xdev | cpio -pm /mnt
You could use this in a script and mount/copy/unmount every day.
|
|
|
07-04-2001, 03:15 PM
|
#4
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Quote:
Originally posted by mcleodnine
Software RAID on 2.2.x kernels require a patch. I never really got root raid to work nicely until 2.4.x
|
Luckily I didn't need to try to RAID my root FS so I was OK on this one, do you know wether this was what the patches for 2.2 provided? I've had software RAID running fine on something like 2.2.14 (might have been a little higher, it was a while ago...).
cheers!
Jamie...
|
|
|
07-04-2001, 04:03 PM
|
#5
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
IIRC the patches were necessary to get raidtools 0.91 to function. The mdutils were not able to use the fun stuff like the failed-disk directive. I don't remember if mdutils could mount a root raid fs <shrug>. I'm deleriously happy with the performance and management of RAID under 2.4.x so far. I've had reiserfs on RAID5 on my desktop box for the last three or four months and i'm impressed enough to migrate the servers to the same layout.
|
|
|
All times are GMT -5. The time now is 11:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|