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.
During the build, I configured to run software raid on my two scsi drives.
The boot partion was set for raid 1,
the swap partion was set as raid 0 on two identical partitions, and the remainder was set as raid 1.
I would like to completely reconfigure, in a somewhat non-disruptive manner.
As such I would like to stop the boot raid1 and result in just an ordinary boot partion on the hardware boot device, leaving the other piece unused and available to be 'reconfigured'. Not sure of the correct and safe way to do this.
Also would like to stop the raid0 setup for the swap partion, freeing up the second half and just use the first part as a normal swap space. Recognize that I will have to (likely) reboot when I do this!
Can anyone suggest the correct plan of attack. I am not used to the Linux 'mindset' yet, but do have experience with other platforms.
To remove a device from a RAID1 array (for example, /dev/hdb1 from /dev/md0):
Mark the device failed: mdadm /dev/md0 --fail /dev/hdb1
Remove the device from the array: mdadm /dev/md0 --remove /dev/hdb1
This will leave the array as if one of the devices failed (fully functioning, but degraded).
To remove the swap fram RAID0, (no reboot needed), assuming the RAID0 device is /dev/md1 composed of /dev/hda2 and /dev/hdb2:
Turn off swapping: swapoff -a
Stop the array: mdadm -S /dev/md1
Reinitialize the one device to use for swap: mkswap /dev/hda2
Change the swap device in the fstab: vi /etc/fstab
Start swapping in the device: swapon -a
Actually, I suggest you leave it as is. There's no functional difference between a single device and a degraded RAID1, and this way you have the option of going back by adding a mirror drive again.
You could always copy the data to a newly formatted partition (remember to re-install grub if it's going to be a boot partition), but the only difference will be the name of the device, and the loss of the option to mirror.
You can always wipe it and do a clean install when you next upgrade (FC7 in April).