LinuxQuestions.org
Review your favorite Linux distribution.
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 01-19-2012, 09:14 AM   #1
milanlukic
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
Raid 5 issues after clean install of ubuntu 11.10 desktop


Hey guys. Hope someone can help. I recently did a clean install of ubuntu 11.10 on my boot hdd. I have a further 3 hdd that were setup as raid 5. Seems the superblocks are missing from 2 of the 3 drives.

Here is the first bit of info I can provide as I dont really know where or what to do next. Your help and patience will be most appreciated.


milo@MiloBase:~$ sudo mdadm --examine /dev/sda
/dev/sda:
Magic : Intel Raid ISM Cfg Sig.
Version : 1.2.02
Orig Family : 83a966ae
Family : 83a966ae
Generation : 00001bce
UUID : de9384e6:675dbe6c:6f24cf84:390457d0
Checksum : 15da57a4 correct
MPB Sectors : 2
Disks : 3
RAID Devices : 1

Disk00 Serial : 9QM3SK1X
State : active
Id : 00000000
Usable Size : 976766541 (465.76 GiB 500.10 GB)

[SafeStorage]:
UUID : e0979f13:1f631cd5:bf8ccef8:4c6cce55
RAID Level : 5
Members : 3
Slots : [UUU]
This Slot : 0
Array Size : 1953531904 (931.52 GiB 1000.21 GB)
Per Dev Size : 976766216 (465.76 GiB 500.10 GB)
Sector Offset : 0
Num Stripes : 7630984
Chunk Size : 64 KiB
Reserved : 0
Migrate State : idle
Map State : normal
Dirty State : clean

Disk01 Serial : 9QM3SK94
State : active
Id : 00010000
Usable Size : 976768654 (465.76 GiB 500.11 GB)

Disk02 Serial : 9QM3SJ16
State : active
Id : 00020000
Usable Size : 976768654 (465.76 GiB 500.11 GB)
milo@MiloBase:~$ sudo mdadm --examine /dev/sdb
mdadm: No md superblock detected on /dev/sdb.
milo@MiloBase:~$ sudo mdadm --examine /dev/sdc
mdadm: No md superblock detected on /dev/sdc.
 
Old 01-19-2012, 06:28 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
What OS was there before Ubuntu? If not Linux, maybe it just doesn't recognise the format.
If it was Linux, its possible the install marked them as unused or somesuch.
Do you need to recover data or can you just start over on those disks.
For recovery, try using fdisk or somesuch to mark them as type fd (Linux RAID).

If you know what the RAId device was called (eg /dev/md0) try

Code:
mdadm --detail /dev/md0
or

Code:
cat /proc/mdstat
Did you tell the Ubuntu install about the RAID setup?

Last edited by chrism01; 01-19-2012 at 06:31 PM.
 
Old 01-19-2012, 10:18 PM   #3
milanlukic
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Chris

Thanks for the reply. I was happily using Ubuntu 10.04 before (silly of me to upgrade when it aint broke). Ideally yes I would like to recover the data. I've had hhd drive issues in the past, hence I went and invested in multiple hhd's so that I could have a raid solution for my backups.

I'm fairly certain it used to be /dev/md0, but that is no longedr availble. There is however a md127, which was likely created due to my fiddling around trying to assemble the previous raid confiuration.

Here is the output for those 2 commands. I've also included the fdisk -l results should that help any.


milo@MiloBase:~$ sudo mdadm --detail /dev/md127
/dev/md127:
Version : 0.90
Creation Time : Mon Oct 4 09:19:09 2010
Raid Level : raid5
Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 127
Persistence : Superblock is persistent

Update Time : Thu Jan 19 09:10:46 2012
State : active, Not Started
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

UUID : 11620724:37d9c8ac:c97fb52a:c30b6ca8
Events : 0.396

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 33 1 active sync /dev/sdc1
2 8 17 2 active sync /dev/sdb1
milo@MiloBase:~$ cat /proc/mdstat
Personalities :
md127 : inactive sdc1[1] sdb1[2] sda1[0]
1465151808 blocks

unused devices: <none>


milo@MiloBase:~$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976771055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x895ded5e

Device Boot Start End Blocks Id System
/dev/sda1 63 976768064 488384001 fd Linux raid autodetect

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x895ded5c

Device Boot Start End Blocks Id System
/dev/sdb1 63 976768064 488384001 fd Linux raid autodetect

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976771055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x895ded5f

Device Boot Start End Blocks Id System
/dev/sdc1 63 976768064 488384001 fd Linux raid autodetect

Disk /dev/sdd: 320.1 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625140335 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3d3afb8f

Device Boot Start End Blocks Id System
/dev/sdd1 * 2048 566408297 283203125 7 HPFS/NTFS/exFAT
/dev/sdd2 566409214 617377791 25484289 5 Extended
/dev/sdd3 617377950 625137344 3879697+ 82 Linux swap / Solaris
/dev/sdd5 566409216 608993279 21292032 83 Linux
/dev/sdd6 608995328 617377791 4191232 82 Linux swap / Solaris
 
Old 01-23-2012, 12:51 AM   #4
milanlukic
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Anyone out there able to help? Really don't want to loose all my data! Your help is needed and appreciated.
 
  


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
clean install ubuntu on XP SP3 machine sandhir Linux - Newbie 8 08-21-2009 09:49 AM
clean PC from XP - install Ubuntu (XP as Virtual) - 3 discs - how to partition? ggerri Linux - Newbie 5 04-19-2009 05:41 PM
how to use ubuntu wubi installed system for new clean install waynenener Ubuntu 3 03-01-2009 12:55 AM
LXer: Ubuntu 8.04: Upgrade or clean install? LXer Syndicated Linux News 0 05-09-2008 01:50 AM
Clean install from Ubuntu Warty to Ubuntu Hoary Erik_the_Red Linux - Newbie 2 06-05-2005 07:14 PM

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

All times are GMT -5. The time now is 01:35 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