LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-26-2013, 10:02 AM   #1
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Software RAID on LVM (file type using fdisk)


I am familiar with creating the regular softare raid using mdadm in rhel based distro.

However, if you want to create a software raid on lvm on the initial creation do you mark the 't' type as 8e in fdisk?

So is this correct in this example:

fdisk -cu /dev/sda

create 2 new partitions /dev/sda5 /dev/sda6

mark them as type '8e' lvm

Then create the software raid:

mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda5 /dev/sda6

YES

Then do this:

pvcreate /dev/md0

vgcreate myraid01 /dev/md0

lvcreate -n lvraid02 -L 512M myraid01

Is this correct in order/procedure for software raid on LVM?

Any help/advice would be great.
 
Old 07-27-2013, 07:46 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What cares about the type field in the partition table? That's a Windows thing.
 
Old 07-27-2013, 10:58 AM   #3
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by smallpond View Post
What cares about the type field in the partition table? That's a Windows thing.
My question is initially do you need to set the partition to 8e on the raid on lvm is that the correct order?


Or do you create the raid normally and do the lvm.


I am trying to confirm if correct order in procedure.

It does matter on the partition type otherwise you would not have the options in the fdisk utility.

thanks

Last edited by rhbegin; 07-27-2013 at 09:31 PM. Reason: want to know correct order
 
  


Reply



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
how to identify Linux file system type from the output of fdisk command ? sulekha Linux - General 4 02-03-2012 01:48 PM
Partition management: lvm? fdisk? parted? (on RAID) emailbuilder88 Linux - General 1 04-30-2010 10:59 PM
[SOLVED] Software RAID and fdisk issue koiril Linux - Server 4 06-16-2009 01:14 PM
software raid 5 + LVM and other raid questions slackman Slackware 5 05-09-2007 02:58 PM
Partition type LVM & Raid siawash Linux - Newbie 16 07-13-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:20 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
Open Source Consulting | Domain Registration