LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-16-2008, 09:48 AM   #1
lawkie
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Question Keep RAID-5 Set on Fresh install


Hi All,

I have a simple question but have not yet found the answer.
My system has 6 disks, 2 in Raid-1 for the OS and 4 in Raid-5 for my data.
What I want to do is reinstall the OS (Ubuntu 7.10) ... but without loosing my Raid-5 Data set. How do I do this?

Will setup detect my drives and not wipe the data out?
Should I disconnect them and move back mdadm.conf ?? When I do this the lines won't match because when I reinstall with the disks disconnected the first set will become md2 (which is now assigned to the raid-5 set).

Please help me out, I am afraid to begin installing if I am not sure my data will be accessible. Thanks!

Some more info on my system:

root@Lawk:/etc# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid5 sdc1[0] sdf1[3] sde1[2] sdd1[1]
937705728 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

md4 : active raid1 sda2[0] sdb2[1]
4923840 blocks [2/2] [UU]

md3 : active raid1 sda1[0] sdb1[1]
151364288 blocks [2/2] [UU]

unused devices: <none>


root@Lawk:/etc# cat mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=0c7cf341:ca185eb2:3070bc8c:11a02322
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=bda11432:d47dc94e:cbe7a488:aab5fc12
ARRAY /dev/md2 level=raid5 num-devices=4 UUID=c30c2978:8f09bd7e:158efcf4:9b81728d

# This file was auto-generated on Sun, 23 Sep 2007 14:04:29 +0000
# by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $


root@Lawk:/etc# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md3 143G 101G 35G 75% /
varrun 2.0G 2.9M 2.0G 1% /var/run
varlock 2.0G 0 2.0G 0% /var/lock
udev 2.0G 216K 2.0G 1% /dev
devshm 2.0G 0 2.0G 0% /dev/shm
lrm 2.0G 38M 1.9G 2% /lib/modules/2.6.22-14-generic/volatile
/dev/md2 881G 419G 418G 51% /Storage
 
Old 05-19-2008, 02:30 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware 14.1 (multilib) with kernel 3.15.5
Posts: 1,548
Blog Entries: 12

Rep: Reputation: 177Reputation: 177
These are some no doubt simple minded suggestions:

As a word of caution, I like to jump into cold water all at once instead of putting in one toe at a time. Having said that, I haven't tried ubuntu 7.1 setup on a raided system, however, there should be no harm in trying to see how smart the installer is, given a few precautions. BUT, backup your data and system before doing anything else.

The ubuntu installer will ask where to put things; if it doesn't look right (ie you don't know for sure that the disks it wants to install to are the ones you want to install to) - don't do it. Setup the system disks first, then set up raid 1 on the system disks (there's an excellent how-to on the ubuntu site): google "howto raid ubuntu" it's #1

If you don't let it touch the raid 5 disks, I doubt you'll have a problem rebuilding the raid 5 array after your new setup is complete.

good luck, let us know how it goes
 
  


Reply

Tags
mdadm, raid, software, ubuntu


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
GRUB hard disk error on fresh ubuntu RAID install dreamer.redeemer Linux - Software 6 01-30-2008 02:33 AM
will a fresh install corrupt or loose my linux-raid? freefall235 Linux - Hardware 2 05-30-2007 12:30 AM
Fresh Install Never Asked to set up users bfalke1 Suse/Novell 6 01-30-2006 10:18 AM
Fresh Red Hat 9 Install on Silicon II SATA RAID Eternal Morgue Linux - Software 1 05-01-2004 03:03 PM
fresh install HANGS 1RU ib800/P4 /Intel 845/ob NIC/Highpoint RAID reallywildstuff Slackware 2 03-01-2004 09:43 PM


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

Main Menu
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