LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2003, 07:46 PM   #1
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Rep: Reputation: 15
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...
 
Old 11-02-2003, 11:28 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
mount /dev/md0 /mnt
cd /home
find . -xdev | cpio -pm /mnt
mount /dev/md0 /home
 
Old 11-03-2003, 09:14 AM   #3
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
Unhappy Nope...

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

.....
 
Old 11-03-2003, 09:29 AM   #4
utopicdog
Member
 
Registered: Aug 2003
Location: france
Distribution: suse/fedora
Posts: 105

Rep: Reputation: 15
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.
 
Old 11-03-2003, 09:55 AM   #5
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
??? 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
 
Old 11-03-2003, 10:32 AM   #6
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

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

Thanks for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software RAID 1 from Existing Boot Drive johnwyles Linux - General 1 08-05-2005 11:42 AM
Migration to Linux Software RAID while preserving existing ntfs data ceg4048 SUSE / openSUSE 0 11-27-2004 07:11 AM
How do I add a spare to existing software RAID 5 ? philforrest Linux - Software 1 12-28-2003 09:33 PM
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 10:52 AM
Software RAID 1 setup w/ existing ext2fs partition system Linux - General 3 01-26-2002 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration