Luca Berra wrote:

>
>
> > Third, (naive questions) if raid1 supports on-the-fly disk
> > "reconstruction" why can't I simply add another identical disk alongside
> > my present one, activate raid1 non-destructively and have disk2 be
> > "reconstructed" as the mirror image of disk1?
> because linux-raid keeps a 4K raid superblock at the end of the partition
> so if you already created the filesystem you have no room for the superblock.
> i have not yet tested this, but you could get resize2fs (you need a partition
> magic license for that, shrink the filesystem by 4K, dd one disk over the
> other, then create a new raid.

I tested this some time ago ( dd if=/dev/hda1 of=/dev/hdc1 in single user mode)
but did not shrink the ext2fs, but it worked.

Will the superblock get corrupted when I use up my last 4k of space on the
ext2fs ?

regards,
Benno.

Reply via email to