Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Hi all. This is actually my first post here. I read all the time, but now I'm stuck. I'm a bit of a newbie so go easy on my.
I have a mailserver setup with SuSE SLES 10. I crashed a couple weeks ago and got it back up in a several days and didn't put a raid 1 on it, but now I want to. Let me know if this makes sense:
I have SDA as my primary right now. It's partitioned as sda1=swap and sda2=/. I have 2 more drives in the system getting ready for mirroring. I have sdb and sdc. I'm going to use the RAID in SLES to do this.
My plan was to use Partitioner in Yast and setup a raid 1 with sdb and sdc. Then boot off Knoppix CD and dd sda to my md0 (sdb and sdc mirrored). Then unplug sda and boot off md0. How would I copy over the boot partition?
How does this sound? If it's a pretty jacked up method, I'm open to suggestions.
The excludes are so you don't end up copying a bunch of everchanging kernelspace goop that you don't need there anyway, you just need the mount points.
Now... make it bootable and mountable:
edit /mnt/somewhere/etc/fstab and change the entry for / from /dev/sda1 to /dev/md0
Then...
chroot /mnt/somewhere
mount -t proc proc /proc
edit /boot/grub/grub.conf to reflect the new boot and root drives and re-run grub.
The last part is where it gets hinky. I never use grub much, and I know the lilo option to write the mbr spread accross a mirror, but not the grub one. It might take more research. Of course, the easy way, is to just make a seperate /dev/sdb1 for /boot and put it in /etc/fstab so that /boot is on its own wee little partition and not part of the mirror.
The excludes are so you don't end up copying a bunch of everchanging kernelspace goop that you don't need there anyway, you just need the mount points.
Now... make it bootable and mountable:
edit /mnt/somewhere/etc/fstab and change the entry for / from /dev/sda1 to /dev/md0
Then...
chroot /mnt/somewhere
mount -t proc proc /proc
edit /boot/grub/grub.conf to reflect the new boot and root drives and re-run grub.
The last part is where it gets hinky. I never use grub much, and I know the lilo option to write the mbr spread accross a mirror, but not the grub one. It might take more research. Of course, the easy way, is to just make a seperate /dev/sdb1 for /boot and put it in /etc/fstab so that /boot is on its own wee little partition and not part of the mirror.
Cheers,
Finegan
Thanks for the help!! I think I get it. There's no way for the main hard drive (sda) to go tits-up using the above example is there???
Also, how would I add the boot partition, on an existing system??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.