LinuxQuestions.org
Register a domain and help support LQ
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 12-24-2010, 09:47 PM   #1
gregmcc
Member
 
Registered: Mar 2007
Posts: 41

Rep: Reputation: 1
Moving software RAID5 set from OpenSuse to Ubuntu?


I've got 3 x 1TB drives in a software raid5 array on OpenSuse 11.3 I have to move to Ubuntu.

I've have to following:

Quote:
/dev/md0:
Version : 1.00
Creation Time : Sun Jun 27 12:28:59 2010
Raid Level : raid5
Array Size : 1953519616 (1863.02 GiB 2000.40 GB)
Used Dev Size : 976759808 (931.51 GiB 1000.20 GB)
Raid Devices : 3
Total Devices : 2
Persistence : Superblock is persistent

Intent Bitmap : Internal

Update Time : Fri Dec 24 22:32:31 2010
State : active, degraded
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Layout : left-asymmetric
Chunk Size : 128K

Name : movies:0 (local to host movies)
UUID : 31a67eaa:b95858db:6f2a292d:391f9829
Events : 68642

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 33 1 active sync /dev/sdc1
3 8 49 2 active sync /dev/sdd1
I've now moved the disks to Ubuntu and added them to the raid5 array - all seems to go well and the mdadm shows:

Quote:
/dev/md0:
Version : 00.90
Creation Time : Sat Jun 26 12:38:59 2010
Raid Level : raid5
Array Size : 1953524992 (1863.03 GiB 2000.41 GB)
Used Dev Size : 976762496 (931.51 GiB 1000.20 GB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Fri Dec 24 17:17:04 2010
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

UUID : 7026f4df:68c7d696:a74c32ba:c27fc7b1
Events : 0.47

Number Major Minor RaidDevice State
0 8 32 0 active sync /dev/sdc
1 8 48 1 active sync /dev/sdd
2 8 16 2 active sync /dev/sdb
If however I try to mount the raid5 volume I get:

sudo mount /dev/md0 /raid5/
mount: unknown filesystem type 'crypto_LUKS'

The volume is not encrypted? What am I missing?

Its a ext4 volume and I've tried using -t ext4, still doesnt work.
 
Old 12-26-2010, 02:06 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 12,073

Rep: Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518
Put them back in a suse machine and dd or other copy to a backup then to back to a ubuntu raid. I never trust software raids. They always have odd deals like this. A hardware may have been easier.
 
Old 12-27-2010, 01:53 AM   #3
gregmcc
Member
 
Registered: Mar 2007
Posts: 41

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jefro View Post
Put them back in a suse machine and dd or other copy to a backup then to back to a ubuntu raid. I never trust software raids. They always have odd deals like this. A hardware may have been easier.

I would do that if I had enough space to copy the data to. I might have to though - doesnt look like I'm ever going to get it working. I put it back in the Suse server and it works 100% again.
 
Old 12-27-2010, 02:24 AM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi,

can you run
cryptsetup isLuks /dev/md0

in SuSe as well as in Ubuntu? Post the results.

Not sure if this has to do with your problem, but some odd things that I noticed:
1.) Your array in SuSe is degraded. Was this done on purpose?
2.) In SuSe you raid the partitions /dev/sdc1, /dev/sdd1 but in Ubuntu you seem to raid the entire devices /dev/sdc, /dev/sdd ...
3.) Your chunk size differs.
4.) Your UUID differs. If I am not mistaken it should be the same. Not 100% sure about that, though.

It might be possible that the devices are named differently in Ubuntu, e.g. /dev/sdb became /dev/sda and therefore you raided a wrong device into the array. How did you assemble the array in Ubuntu, i.e. how did you identify the disks? By their UUID or just by /dev/sdb etc.?

Last edited by crts; 12-27-2010 at 02:25 AM.
 
Old 12-27-2010, 06:25 AM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
On OpenSUSE you should have a file /etc/mdadm.conf or /etc/mdadm/mdadm.conf.

Copy this file to your Ubuntu machine. Make sure you copy it to the right place, in Ubuntu it is /etc/mdadm/mdadm.conf. When you assemble your RAID `mdadm -A /dev/md0` it should use the definitions as described in mdadm.conf and your RAID should be assembled in the same way it was under OpenSUSE.
 
1 members found this post helpful.
Old 01-02-2011, 11:30 AM   #6
gregmcc
Member
 
Registered: Mar 2007
Posts: 41

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by phil.d.g View Post
On OpenSUSE you should have a file /etc/mdadm.conf or /etc/mdadm/mdadm.conf.

Copy this file to your Ubuntu machine. Make sure you copy it to the right place, in Ubuntu it is /etc/mdadm/mdadm.conf. When you assemble your RAID `mdadm -A /dev/md0` it should use the definitions as described in mdadm.conf and your RAID should be assembled in the same way it was under OpenSUSE.
Thanks a ton!!! Followed the above and it worked first time. Such a simple thing....will remember it for next time Had to do a mdadm--stop /dev/md0 and then used mdadm -A /dev/md0

crts: thanks for the feedback as well.
 
  


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
LXer: Set up Ubuntu Lucid Server PV DomU at Xen 4.0 on top of opensuse 11.3 LXer Syndicated Linux News 0 07-31-2010 09:20 PM
Software clock on desktop was not set correctly on install of opensuse 11.2 eagleclw Linux - Desktop 6 04-05-2010 09:53 AM
Creating software raid5 array under opensuse 11.1 tkm Suse/Novell 2 09-29-2009 02:16 AM
Upgrade to OpenSuSE 11.1 GM from RC1 killed RAID5 (mdraid) XFS array Marshalle Linux - Server 14 12-25-2008 09:33 PM
Broken software RAID5 set - help! Curlyau Linux - Server 3 05-20-2008 11:21 PM


All times are GMT -5. The time now is 10:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration