Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-24-2008, 12:50 AM   #1
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 674

Rep: Reputation: 34
create raw partitions in redhat

To install a Sybase-database, the partitions created on the harddisk need te be raw. So no file system like ext3 installed onto it.

When installing RedHat, Disk Druid lets you partition your harddisk. However, there is always a file-system created on every partition by default (ext3).

Is there a way to create a raw partition at install-time with disk druid ?
How can I remove the file-system afterwards ?

Basically I need 2 raw partitions on a 72 GB HD.
- database1 (60GB)
- log1 (12GB)
Old 07-24-2008, 12:20 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
You can't create raw partitions per se but you could leave empty space after creating the other partitions needed, then use fdisk to slice it up how you want, etc after the initial install.
Old 08-01-2008, 01:27 AM   #3
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 674

Original Poster
Rep: Reputation: 34
OS : RedHat Enterprise Linux Advanced Platform
Database : sybase
Disk partitions :
sda : Logical Volume System with root and swap
sdb : Logical Volume Databases with LV database1, LV log1, LV database2, LV log2

I've made a RAW binding between /dev/raw/raw1 and /dev/sdb doing :

in etc/udev/rules.d/60-raw.rules :
action=="add", kernel=="sdb", run+="raw /dev/raw/raw1 %N"

then udevtest /block/sdb
gives me : main : run : '/bin/raw /dev/raw/raw1 /dev/.tmp-8-16
--> so the udev-rules work properly (according the redhat-manual)

I then give the start_udev -command and this gives me no problems.

to check if the raw-device exists : raw -qa
/dev/raw/raw1: bound to major 8, minor 16

Now, in fstab I still see that all my logical volumes exist, and they have the ext3 file system.

I think I now have a raw device and also still my logical volumes ?!

Will sybase see the raw device to place a database on it ?

I'm troubled with the question whether I now have a raw device sdb or not ?!


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
udev, create raw disk device, how? thllgo Red Hat 2 01-23-2008 10:50 AM
Raw partitions on Linux rlinuxr Linux - Hardware 6 03-22-2005 02:12 PM
SuSE: How to create raw device stjacqd Linux - General 3 07-22-2004 06:29 PM
Howto read raw-partitions? lowtek Linux - Hardware 0 07-16-2004 05:30 PM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration