LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 08: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-03-2003, 12:28 AM   #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, 10: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, 10: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, 10: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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:42 PM
Migration to Linux Software RAID while preserving existing ntfs data ceg4048 Suse/Novell 0 11-27-2004 08:11 AM
How do I add a spare to existing software RAID 5 ? philforrest Linux - Software 1 12-28-2003 10:33 PM
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 11:52 AM
Software RAID 1 setup w/ existing ext2fs partition system Linux - General 3 01-27-2002 12:07 AM


All times are GMT -5. The time now is 01:42 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration