LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2004, 10:01 AM   #1
triley
Member
 
Registered: Oct 2003
Posts: 74

Rep: Reputation: 15
Formatting linux partition in RAID configuration


Please help. I'm trying to set up a RAID, level 1 on a RH 9 box. I've got a single 40GB IDE boot drive with an Adaptec 29320LP-R RAID controller card. I've also got qty (2) 150GB, 10RPM SCSI drives attached to the RAID controller card. I've installed RH 9, installed my drivers for the controller card and have even created my mirrored RAID using the card BIOS. System recognizes the card and sees the 150GB drive, but I'm not sure how to format the drive in linux. Can someone please help?
 
Old 09-08-2005, 05:15 AM   #2
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
If the SCSI card you list behaves like all the rest of Adaptec's cards then your raid drive will appear to be a single scsi disk (normally /dev/sda).

To format it you need to first create your partition


Code:
fdisk /dev/sda
press p

this will show you what partitions already exist, if you have just created the array there should be none.

press n to create a new partition

press p for a primary partition

press 1 for partition number 1

You will be asked for a value for the first cylinder, this will default to the first cylinder free on the disk (this should be cylinder 1) so just press enter to accept the default.

You will now be asked for the ending cylinder, this will default to the last available cylinder so again just press enter. (this assumes you want the whole disk as 1 partition and thus 1 filesystem).

You will now be back at the fdisk prompt. You need to set the partition type, to do this

press t

press 1 for partition 1

press L to list the hex codes for the partition types.

I am assuming you want a normal ext2/3 partition so

type 83 then press enter to select a linux partition

you should be back at the fdisk prompt.

if your happy with your changes press w to write them to the disk, if you wish to abort press q which will quit without applying any changes.

next you need to make your actual file system to do this enter the following command (this will create an ext3 filesystem)

Code:
mkfs -t ext3 -j /dev/sda1
-j creates the filesystem with a journal on it.
 
Old 09-08-2005, 10:41 AM   #3
farmerjoe
Member
 
Registered: Oct 2004
Location: Texas
Distribution: Ubuntu - Home, RHEL4 - Server
Posts: 96

Rep: Reputation: 15
Thanks! That was a great help. Also, I ended up switching to Red Hat 9 and got the drivers working properly which was the blunt of the problem. As always, you guys at linuxquestions are the best!

-farmerjoe
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
formatting very big fat32 partition with Linux Xavius Linux - General 6 10-08-2005 07:53 PM
Upgrading to RAID w/o formatting the partition bcalmac Linux - General 1 12-19-2004 10:16 PM
Software RAID Configuration during Linux Installation manjinder Linux - Enterprise 1 11-15-2004 12:57 PM
Installing Linux on new Dell pc with RAID configuration bcrain Linux - Software 2 08-25-2004 02:45 PM
Formatting A Linux Partition thebear Linux - General 2 09-16-2003 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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