LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   New Software Raid - Want to use as existing /home/ ... Migration??? How??? (https://www.linuxquestions.org/questions/linux-software-2/new-software-raid-want-to-use-as-existing-home-migration-how-111659/)

trekk 11-02-2003 07:46 PM

New Software Raid - Want to use as existing /home/ ... Migration??? How???
 
ok, I've been running Redhat 9.0 for a few months now and just decided to throw a couple of 6 gb drives in for a software RAID mirror. ...

Raid created - ok

Partitions - done

/dev/md0/

/home already exists with stuff and web-space... (one 40GB with default install partitions)

How do I mount the mirror as /home/ ?
and keep the data exactly the same?


Idea: create /home1 to make as raid then migrate data - then delete /home directory and rename /home1 to /home.....

?

Now, keep in mind I'm quite new and even some of the basic stuff escapes me... so be kind.

:)

J

===================================================
Seen on another signature: "If I learn 1 thing everyday about linux then I'll know 365 new things a year.."

yea right; I should be as lucky...

mcleodnine 11-02-2003 11:28 PM

mount /dev/md0 /mnt
cd /home
find . -xdev | cpio -pm /mnt
mount /dev/md0 /home

trekk 11-03-2003 09:14 AM

Nope...
 
mount /dev/md0 /mnt
mount: you must specify the filesystem type

.....

utopicdog 11-03-2003 09:29 AM

try:
mkfs /dev/md0
mount /dev/md0 /mnt
cp -a /home/* /mnt

then change the entry in fstab for /home to /dev/md0 and reboot.
possible problems: check the filesystems are right in fstab ( or use auto )
read the man pages (eg 'man man')
read the documentaion supplied with the raid tools.

for home use mirroring is pointless, you simply double you diskspace.
striping seems to be much more interesting ( fast ) but I have a feeling the whole raid partition only really comes into its own for one massive partition over 3 or for disks, that are solely dedicated to the raid. if you use the disks for other things as well perhaps LVM groups may be what you are looking for.

trekk 11-03-2003 09:55 AM

??? Mirroring pointless?
 
I'm using the system as a webserver and would like redundancy as far as backups and so forth. Mirroring doesn't double space it simply makes two drives act as one so if one fails the other works fine and no data is lost. It's slower but I want the fail safe more than speed.


How would LVM help?

j

trekk 11-03-2003 10:32 AM

Ok, done... everything looks good; fstab modified and rebooted.... raid shows it's mounted under /home/ good nuff for me....

Thanks for the help.


All times are GMT -5. The time now is 05:16 AM.