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... |
mount /dev/md0 /mnt
cd /home find . -xdev | cpio -pm /mnt mount /dev/md0 /home |
Nope...
mount /dev/md0 /mnt
mount: you must specify the filesystem type ..... |
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. |
??? 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 |
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. |