Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Now, I am practicing the Software RAID on the Linux OS. I have serval confusions about the how to migrate an existing OS(or the boot partition or other partitions) to an Array.
My testing ENV as follows:
Linux installed on VMware, kernel 2.6.9-5(RedHat AS4)
Using the default RAID tool --- mdadm as Software RAID
There are two SCSI disks with same size (since the VMware using the SCSI as the OS disks)
First question:
If I want to make the scsi and raid1 module builtin the kernel without downloading the kernel source code, should I use the following command to use the current kernel: mkinitrd --builtin=scsi_mod,raid1 /boot/xxxxx.img 2.6.9-5.EL
and then only modify the initrd field of grub.conf file with the new image file name?
Second question:
Regrading the device sda, it has already been formated as ext3 filesystem and installed OS file on it. if I change the partition type via "fdisk", can this operation destroy the whole data files?
Third question:
are there some detail sepcifications to demostrate my scenarios? who can help me to give some links about them which I can follow to study the RAID system?
IMHO, it's simply not a good idea to put an OS partition in a software RAID. Unlike a hardware RAID, a software RAID will not give you the functionality of simply replacing a hard drive and "it works". It will complicate recovery efforts, if anything.
If you want to experiment with software RAID, I think it's more realistic to assume a scenario where the OS is in a normal partition while data is kept in RAID partitions.
My prefered method is to set up backup OS partitions on all of the hard drives. When I make major changes to the "live" OS partition, I copy the live OS partition to the backups. I have GRUB set up on each drive. Thus, in case of failure I can swap to a backup drive.
My method doesn't provide continuous uptime, so it's not suitable for a mission critical server that needs constant operation. IMHO, software RAID isn't the solution for those mission critical servers. If you need 100% uptime, you need hardware RAID and/or redundant clustering.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.