Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
Disk1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1069 8385930 82 Linux swap / Solaris
/dev/sda3 1070 91201 723985290 83 Linux
and i just put in a extra disk and am trying to create a Raid1 configuration.
What i did is i copied the partition table with
#sfdisk -d /dev/sda | sfdisk /dev/sdb
Then i changed the disk setting of sdb like this
Disk2
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 fd Linux raid autodetect
/dev/sdb2 26 1069 8385930 fd Linux raid autodetect
/dev/sdb3 1070 91201 723985290 fd Linux raid autodetect
Ok so my guess here is your trying to mirror your root disk (disk1) to disk2?
I've never tried this but here's what I would try.
Create your logical volumes etc on disk 2 in your raid devices /dev/md? etc. Then copy (dd) in single user mode all the data from disk 1 to disk 2.
Now the hard part, reboot the system to disk 2.
Make sure the system starts comes up ok, then do re-create the partitions/raid sets on disk1, this should automatically mirror the data back.
Reboot and test.
This is just and Idea, as I say I've never tried it. Make sure you have a good backup before you start, try some thing like Clonezilla.
I Just made the assumption as most installation normally default to Logical Volumes. In that case its makes it alot easier.
Boot from a Rescue CD, and copy all the data from disk1 to disk2, reboot onto disk two re-create the partitions on disk1 to match disk2 and add then add disk1 into the raid sat this will start the sync process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.