LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 07-24-2008, 01:50 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 623

Rep: Reputation: 33
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, 01:20 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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, 02:27 AM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 623

Original Poster
Rep: Reputation: 33
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 ?!
 
  


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


All times are GMT -5. The time now is 08:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration