Greg Hosler <[EMAIL PROTECTED]> writes: > I would like to know how to upgrade an existing 8.0 server installation in my > office to Raid 1. > > The existing system has a 40GB harddisk and all space have been used up. I have > an additional 40GB which I want to plug in and set it up as a mirror to the > existing harddisk. The person concerned do not want to rebuild the system as > they have a lot of configuration in their applications. > > Can I change the partition type to raid partition in the original harddisk > without destroying the data inside?
No, at least there's more to it than that. > Or is there another better way to do it? Yes. The process is detailed in the Software-RAID-HOWTO which you can find at http://www.tldp.org. This is the gist of it: o Install your second hard disk and partition it. o Create /etc/raidtab and make RAID1 devices. Each file system should have a corresponding RAID1 (/dev/md?) device, each consisting of a partition from your new hard disk and one from your original. Since your original disk contains data, mark its partitions as "failed-disk" in /etc/raidtab, allowing you to preserve your data so you can copy it to the RAID1 device. o Make a file system on each newly created RAID1 device, mount it, copy the data from the original (non-mirrored) file system, and unmount the RAID1 device. o Once you have copied the entire system (i.e. all file systems) to RAID1 devices, modify /etc/fstab to mount the RAID1 devices (/dev/md?) instead of your original partitions. o Reboot the system and verify that the RAID1 devices are now mounted. o Now "raidhotadd" your original partitions to the corresponding /dev/md? devices and update your /etc/raidtab, replacing "failed-disk" with "raid-disk". Make and verify a full backup before you do this and proceed slowly and carefully making sure you understand each step along the way and verifying it before proceeding to the next step. -- tim writer <[EMAIL PROTECTED]> starnix inc. tollfree: 1-87-pro-linux thornhill, ontario, canada http://www.starnix.com professional linux services & products -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list