Linux - SoftwareThis 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.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I recently delved into the world of software raid, and set up a sometimes-connected usb drive to mirror the disk in my laptop (raid 1). Everything works great except that when I connect the usb drive to the system and add one of its partitions to one of my raid devices, it insists on resyncing the entire partition, which is quite a drain on my not-so-powerful laptop.
Reading the man page for mdadm, the system should be smart enough to use the raid internal write-intent bitmap to only write the sectors that have changed. If I software-fail the device, remove it, and re-add it without stopping the array, this is exactly what happens. However; if I stop the array (either manually, or by shutting down), then start up in a degraded state and try to add the device back into the array, I get a full resync.
Right now I'm not using an initrd image to boot, and relying on the auto-detect feature of the kernel. This lets me boot with a root md device started in degraded mode by default.
I've tried all of the following:
- mdadm /dev/mdx -a /dev/sdax
- mdadm /dev/mdx --re-add /dev/sdax
- mdadm -I /dev/sdax
which all result in a full resync.
The one command that doesn't cause a full resync is:
- mdadm -A /dev/mdx /dev/hdax /dev/sdax
but I can only use this for my secondary partitions, as my root partition is already started, mounted, and in use in degraded mode.
Is there a way to do what I'm trying without having to also delve into custom initrd images?
Last edited by JivanAmara; 01-24-2008 at 06:00 AM.
You're using the wrong technology RAID, for the wrong purpose - mirrored backups. If your goal is simply mirroring a drive for backup purposes you should investigate `rsync' or `unison'. RAID is meant to have continuously connected hardware.