Re: Help setting up LinuxRAID-1 in opensuse 11.1
no, i may have not choose the correct words to express my self. happens to me very oft in english.
i have:
sda = 160 Gb in current use, with normal partitioning
sdb = 750 Gb with future raid-1
i want to do is this:
- create raid1 with only sdb (no second disk)
- copy sda content to raid1 in whatever partition i choose
- configure grub on sdb and be able to boot with root in raid1.
- now i should have my data on raid1
- i can safelly delete data in sda
- Partition sda in someway that i can add it to raid1
At the end i would like to have a partition like 150 Gb of raid1 between sda and sdb, both able to boot alone.
A second partition in sdb with all the rest of data.
Then when i go to Germany, i can take only my 750 Gb disk and leave the computer working with only one 160 Gb disk.
Since my 750 Gb is lots of time bigger than 160Gb, i was thinking on first make duplicated partitions and add both partitions temporarilly to one raid, then remove one partition, add the 160Gb disk to raid1 and delete the duplicated partition creating a second raid1 with it.
I am reading some blogs about it and some says that i can do that.
create md0 with sdb1 and sdb2
copy data
remove sdb2 from md0
create md1 with only md2
and then rebuild md0 with sdb1 and sda1
But is this safe?
Wont the "rebuild" of md0 destroy my data on sdb1? What is the normal commands to add a new device to raid?
thanks
|