LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-24-2011, 08:44 AM   #1
wjtaylor
Member
 
Registered: Feb 2009
Posts: 78

Rep: Reputation: 15
RAID Best Practices


It's been a while since I configured a raid and have been making some changes to my main workstation/server.

fdisk does not like md devices on my machine... always says it has an invalid partition table. While this is said to be normal all over the net, I don't feel warm and fuzzy about that fact.

What is best practice these days, to create a non-partitionable md device or a partitionable mdp device?

If I create a partitionable md device, I would imagine it would look good in fdisk. However, I am concerned about growing the array afterward. I would then have to grow the array, redefine the partition, and then grow the file system.
The PITA factor goes up. Has anyone worked with both? Pro/Cons?

My array was created with:

mdadm --create --verbose /dev/md0 --level=5 --force --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1

FYI: I have backups. I understand RAID 1 may be a better choice of raid level.
 
Old 03-24-2011, 10:43 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What you might do to avoid having to "grow" the RAID partitions is to put your md device(s) into LVM. The md will give you the RAID redundancy you want and LVM will give you the flexibility of adding/removing md devices and/or extending/reducing logical volumes without having to deal with partitioning.
 
Old 03-24-2011, 01:51 PM   #3
wjtaylor
Member
 
Registered: Feb 2009
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MensaWater View Post
What you might do to avoid having to "grow" the RAID partitions is to put your md device(s) into LVM. The md will give you the RAID redundancy you want and LVM will give you the flexibility of adding/removing md devices and/or extending/reducing logical volumes without having to deal with partitioning.
You're segueing into my next question... DM (which I'm pretty sure is LVM) doesn't show up well in fdisk as well... Is this normal? Based on the purpose of LVM, I am assuming so.

Thanks,
WT
 
Old 03-24-2011, 04:01 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
DM might mean "device mapper" or it might mean "dynamic multipathing".

Since Logical Volume Manager (LVM) logical volumes (LVs) are NOT true disks or partitions fdisk wouldn't be used to see detail about them. Instead you'd use lvdisplay. Most LVs end up with device mapper paths so this may be why you mentioned DM. However the Volume Group (VG) the LVs are in does have what it calls "Physical Volumes" [PVs} which can be whole disks, partitions of disks, meta disks or multipath devices. If you're using partitions or whole disks then fdisk will give you information (for whole disks it will tell you it doesn't contain a valid partition table but will show you the entire size of the disk.) For meta disks or multipath devices you might need to determine the underlying physical disks/partitions that comprise the device and do fdisk on those underlying devices.
 
  


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
Security Practices shaolin77 Linux - Security 3 08-19-2009 11:39 AM
LXer: Tutorial: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 08-15-2008 12:20 AM
Best Practices for RAID Swap paco36 Linux - Software 1 04-20-2007 04:15 PM
Crontab's best practices? Swakoo Linux - General 4 08-30-2006 01:40 AM
Best Practices mooreted Linux - Software 4 06-12-2003 01:31 PM

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

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