LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-07-2008, 08:15 PM   #1
TefoZi
Member
 
Registered: Apr 2006
Distribution: Debian Etch
Posts: 39

Rep: Reputation: 15
Changing superblock for MDADM raid0 harddrives?


I had in my mdadm.conf
ARRAY /dev/md1 level=raid0 num-devices=2 UUID=b2c78c45:b1e8f031:d05c58be:c924bf55

Then my OS drive died. I got new one and after that my mdadm.conf has:

ARRAY /dev/md1 level=raid0 num-devices=2 UUID=b2c78c45:b1e8f031:d05c58be:c924bf55
ARRAY /dev/md1 level=raid0 num-devices=2 UUID=b2c78c45:b1e8f031:6bf8748e:21022043

So, one drive looks ok, but the other uuid changed for some reason. As I understand I need to have 2 uuid's for two hard drives to be the same.

How I can change uuid number for the second hard drive?

Thanks
 
Old 04-07-2008, 09:22 PM   #2
TefoZi
Member
 
Registered: Apr 2006
Distribution: Debian Etch
Posts: 39

Original Poster
Rep: Reputation: 15
Update:

I stopped md1
mdadm --manage /dev/md1 --stop

Then
mdadm --zero-superblock /dev/sdc1
mdadm --zero-superblock /dev/sdd1

Then trying
root# mdadm --create /dev/md1 --level=0 --raid-devices=2 /dev/sdc1 /dev/sdd1
mdadm: ADD_NEW_DISK for /dev/sdd1 failed: Invalid argument
--------------------
# mdadm -E /dev/sdc1
/dev/sdc1:
Magic : a92b4efc
Version : 00.90.00
UUID : 8d765e3a:0b283764:9802172d:c216acb7

Creation Time : Mon Apr 7 19:18:57 2008
Raid Level : raid0
Device Size : 0
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1

Update Time : Mon Apr 7 19:18:57 2008
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Checksum : 2bd955a6 - correct
Events : 0.1

Chunk Size : 64K

Number Major Minor RaidDevice State
this 0 8 33 0 active sync /dev/sdc1

0 0 8 33 0 active sync /dev/sdc1
1 1 8 49 1 active sync /dev/sdd1
--------------------
# mdadm -E /dev/sdd1
mdadm: No md superblock detected on /dev/sdd1.
--------------------
# fdisk -l

Disk /dev/sda: 36.4 GB, 36420075008 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 1216 9767488+ 83 Linux
/dev/sda2 1217 1581 2931862+ 82 Linux swap / Solaris
/dev/sda3 1582 4427 22860495 83 Linux

Disk /dev/sdb: 18.2 GB, 18210036736 bytes
255 heads, 63 sectors/track, 2213 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2213 17775891 fd Linux raid autodetect

Disk /dev/sdc: 36.7 GB, 36747104256 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 4467 35881146 fd Linux raid autodetect

Disk /dev/sdd: 36.7 GB, 36747104256 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 4467 35881146 fd Linux raid autodetect
---------------

What is going on with sdd1? How I can add sdd1 to md1?
 
  


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
mdadm assemble weirdness with partitionable RAID0 Schneckl Linux - Software 0 08-28-2007 05:45 PM
mdadm reports no superblock trying to rebuild failed RAID 5 hotcut23 Linux - Hardware 0 08-18-2007 01:39 AM
mdadm: no devices ... were found after RAID0 install hedpe Linux - Software 4 06-28-2007 01:38 PM
mdadm: cannot examine md device because there is superblock hamish Linux - Software 6 08-29-2006 12:53 PM
RAID0, invalid sb (superblock) kennedy01 Linux - General 4 04-02-2005 01:53 PM


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