LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-10-2010, 08:48 PM   #1
stefnthebox
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Initializing drive array command for class lab on fedora 12


Hello,

I was wondering if somebody could tell me what command initializes a drive array on Fedora12? I'm trying to initialize the drive command for linear RAID and the command given in the textbook is for Fedora Core 2 (which I had problems with in Virtualbox). Thanks bunches!
 
Old 02-10-2010, 09:49 PM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
I assume you are talking about Linux Software RAID. First thing I suggest is get a newer book. FC2 is so old, so much of what you read will be irrelevant. If u don't mind me asking, what kind class are you taking?
Linear RAID is a rather bad idea. It offers no advantages & reduces reliability. If you wish to combine the space of several drives on a modern Linux distro, you should be using LVM instead.
 
Old 02-11-2010, 07:55 AM   #3
stefnthebox
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Well it's a Linux + Guide to Linux Certification class. Unfortunately this is the required textbook for the class.

Can you tell me a way that I can look up the command to initialize an array in Fedora 12? I realized how old Fedora Core 2 was when it wouldn't work in Virtualbox which is the reason I installed Fedora12. It doesn't matter which Linux we use for the class except for that it makes it a little (more) difficult when the commands don't match
 
Old 02-11-2010, 05:22 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
Try mdadm http://linux.die.net/man/8/mdadm. You'll also need fdisk to set the correct partition type http://linux.die.net/man/8/fdisk
 
Old 02-12-2010, 06:36 AM   #5
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
If by initialize you mean create a RAID array from scratch. Then here's a quick & dirty guide I wrote years ago. (It's for RAID 1)

Configure 2 partitions
Quote:
# fdisk /dev/hda
Press “m” to get the help menu
Press “p” to print existing partition table
Press “n” to create new partition
Press “t” to change partition type (press “l” to list the types. Choose “fd” for Linux RAID Auto)
Make another partition with the above 2 steps
Press “w” to save the partitions created

Quote:
# partprobe
To re-probe the partitions that you created. If you don’t run this command, the kernel won’t be able to see the partition.

Create the mount point for the software RAID to be used later on. Create a directory under /mnt called “raid”

Create software RAID device
Quote:
# mdadm --create /dev/md0 --level 1 –n 2 /dev/hda6 /dev/hda7
In this command, we assume that the partition that you have created is /dev/hda6 and /dev/hda7. It may be defer from yours. To check the partition that you have created you can use “fdisk –l” command

View the config file for the software raid after creation
Quote:
# cat /proc/mdstat
Format the software raid space
Quote:
# mkfs.ext3 /dev/md0
Mount the software RAID disk space to the mount point that we created earlier.
Quote:
# mount /dev/md0 /mnt/raid
View the size of the software RAID that was mounted.
Quote:
# df –h
View the details of the software RAID
Quote:
# mdadm --detail /dev/md0
 
  


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
Fedora 7 FTP installaltion not seeing hard drive array boozer_2 Linux - Software 2 11-13-2007 09:18 PM
Initializing new array tbone63078 Red Hat 1 07-25-2007 02:00 PM
Derived class inside parent class array, possible? xemous Programming 3 10-17-2006 11:35 AM
Initializing Array of Strings jrtayloriv Programming 10 02-03-2005 12:22 PM
dynamic array in class help PTBmilo Programming 6 03-09-2003 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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