LinuxQuestions.org
Visit Jeremy's Blog.
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 01-03-2015, 09:02 PM   #1
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
mdadm: do you still have set fdisk types


If you want to setup a raid1 system will modern mdadm programs on debian/ubuntu on a new/zeroed disk automatically set the type to Oxdm ?

Fred.
 
Old 01-04-2015, 08:23 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,174

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Partiton types are ony relevant to partitions.
As noted in your closed dupicate thread, mdadm manpage has advice on this - as does the Linux RAID wiki. All easily findable by searching.
 
Old 01-05-2015, 08:20 PM   #3
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
Thanks for your reply, syg00 and moderator.
I have read that raid wiki, I'm just a bit slow. So I take it that the paritions that are to make up the raid have to be marked as such before mdadm is employed and will not be re-designated by mdadm's 'create' command?

Fred.
 
Old 01-05-2015, 09:29 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,244

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
Actually, they don't have to be marked (i.e., partition type set to 0xfd) at all. In-kernel RAID autodetection using that partition type worked only with RAID superblock version 0.9 and is now deprecated. Userspace RAID detection, the preferred method, does not rely on partition type. https://raid.wiki.kernel.org/index.php/Autodetect
 
Old 01-05-2015, 10:19 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,089
Blog Entries: 9

Rep: Reputation: Disabled
What is oxdm?
 
Old 01-06-2015, 08:35 PM   #6
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
sorry, 0xfd. I see there are many options for software raid and 2 drives, of a similar type, bought at the same time would probably fail at a similar time and so raid1 has limitations but a Debian install with separate /boot partitions (to the dm0) on each drive should work? Not using lvm.

slow fred.
 
Old 01-09-2015, 07:22 PM   #7
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
OK, here goes the question:

I set up raid1 on 2 disks with 2 partitions each (sda sdb, 1+2) both as raid1, md0 and md1.

md0 was /boot on both sda and sdb

md1 was / on both sda and sdb

sda also contained a swap partition outside the raid1 setup

This was a i386 setup done with gparted disk for the partitions and the raid using mdadm --create with a suffix of --metadata=0.90 (similar) as suggested by the program

I set the mount points from the Debian install disk and rebooted,

all was fine.

To simulate a disk, or lead failure, I disconnected the sda ide lead (each drive on individual leads) and the boot process will not find any drive.

I tried to access what was on the drive using 'supergrub2' cd but it found errors when trying to access raid, presumably because grub is only on sda

is there any means of rectifying this without starting again?


Fred.
 
  


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
[SOLVED] Wine set it as default handler for many mime-types. TruongAn Linux - Software 4 12-25-2010 01:42 PM
mdadm - forgot to set up partitions MrAngel Linux - Server 4 11-05-2009 06:13 AM
how to set mime-types? gaah Linux - Newbie 1 10-15-2005 10:23 PM
can't set file types and programs r.stiltskin Red Hat 0 11-01-2004 11:13 PM
FDisk partition types Odin_of_Asgard Linux - Software 1 05-12-2004 03:04 PM


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