Hello,

who got experience or an "estimate for results" for the following plan: I
have a bootable Raid 1 with Kernel 2.0.36 running. It's a production
machine, so I shouldn't kill it....

It has two SCSI HDDs with four partitions each. sda1/sb1 are non-mirror and
mounted as /boot and /boot0 directories (holding Kernel etc.).  sda2 and
sdb2 are used as md0 device.  All directories are on this device, except the
/home directory.  The /home directory is located on the md1 device (sda3,
sdb3).sda4/sdb4 us non mirror for swap.

Now I need to shrink the md1 device and create a md2 device (needed as
holding disk for amanda).  I have used Partition Magic 4.0 several times on
non-raid systems.  I didn't encounter any trouble shrinking, expanding,
creating or moving ext2fs Partitions. Please comment the following plan:

1. Backup the md1 (all Data) Device
2. Boot the server from a DOS Disk with Partiton Magic ("PM").
3. Shrink the sda3/sdb3 Partitions by 1 GB.
4. Move the sda4/sdb4 Partitions to the end of sda3/sdb3.
5. Change the Partition type of sda4/sdb4 to logical (alll four partitions
were primary partitions)
6. Create sda5/sdb5 (Swap) and sda6/sdb6 (1GB each) logical partitions
7. Mark the new partitons to be mirrored as fd
8. Reboot Server and create md2 device

In particular I think about the md1 device: Will it work without rebuilding
it after I shrinked the partitions, but didn't change the location on the
HDD?

It's four month now that I built this bootable RAID thing and I just
followed the mailing list since then but didn't experiment any more.
Therefore I am not too much used to all the RAID traps any more.  But I am
quite reluctant to kill this server.  It is running so nicely.....

Thanks for input,

Till


Reply via email to