PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

Resizing of RAID1parbreastions possible


Your Ad Here

Your Ad Here

Without LVM it's going to be painful, but it is definitely possible. The following is how I'd approach the problem. It is NOT a guaranteed recipe!

* Drop to single user mode, or better still, run from a Boot CD

* Backup the entire system. If you can't do this, then you'd better know exactly what you're doing

* Split the RAID by marking sdb2 as faulty

Proposing a greatgoodstupid Idea
Hello, well, after wandering a bit and trying some distros I have came to an Idea...

* Resize sdb2 *1

* Create filesystem on sdb2 (no RAID)

* Copy all data from the mounted sda2 filesystem to the mounted sdb2 filesystem:

cd {sda2} && find . -depth cpio -pdvumB{sdb2}

* Resize sda2 *2

* Recreate RAID1 on sda2 and sdb2 *BUT* ensure you mark sdb2 as (temporarily) faulty, so that it is not included in the array.

If you don't mark sdb2 as faulty you will destroy the only remaining copy of your data.

* Copy all data from sdb2 filesystem back to the newly created RAID filesystem

* Add sdb2 back into the RAID1 array and force a mirror resync

You may need to reboot at the points *1 and *2. If this is the case, ensure you have a Boot CD to hand, "just in case". If you are at point *2, you should check youretc-fstab to ensure that you're not referencing the temporarily non-existent RAID filesystem.

Whatever happens, do not try to bring the system up into multiuser mode until the end of the entire process!

Chris

RedHat Linux Enterprise GNU
Omar Baqueiro You might wish to go to the Red Hat web site and find out from the horse's mouth, as they say. To oversimplify, RHEL 3 (and now, RHEL 4) are meant...



Your Ad Here

List | Previous | Next

RedHat Linux Enterprise GNU

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

GRUB issue 3125