LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-11-2002, 05:26 AM   #1
aditya
Member
 
Registered: Aug 2002
Distribution: RH 7.x
Posts: 71

Rep: Reputation: 15
Smile what's 'active' filesystem, and raw I/O


Hi,
I'm having problems understanding some terminologies recently.
1. Marice bach, page 328, (The Design of Unix OS) says 'fsck should not be run on an active filesystem bacause it does raw I/O.' What do you mean by 'active'. And what would be it if it were not active?
2. Raw I/O bypasses the filesystem. So, suppose I have a database management program that does raw I/O on its records so that it can dictate the exact disk blocks in which it wants to put the data. How do I know which blocks are free if I bypass the filesystem servies? And, later if the filesystem is creating a new file, how does it know whether the block on its free list is actually free and not occupied by any record that is being maintained by my DBMS program through raw I/O.

Pardon me if I'm really asking something stupid. And correct me too.
 
Old 09-11-2002, 06:52 AM   #2
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
An active filesystem refers to a filesystem that has activity on it, whether it be writing data to files or executing individual programs. When you run fsck, you want to run it in single user mode so you don't have a mass of tasks running in the background.

The database, in your example, would keep track of such things in a manner similar to the vmm managing your swap space. In order to do this, you need to creare a raw partition, which is basically a partition without a filesystem on it, again, like your swap space. Whereas the swap is managed by the VMM, the raw disk space is managed by the dbm. Although this method of database storage offers the most speed for disk access, compared to going through a file system, the negative side of this is that the only way to see it is through the utilities supplied by the dbm. Since the dbm is managing that partition, none of the normal system commands, such as ls, cd, cp, cpio, tar, etc. would work on it.

Hope this helps some. -mk
 
Old 09-12-2002, 12:12 AM   #3
aditya
Member
 
Registered: Aug 2002
Distribution: RH 7.x
Posts: 71

Original Poster
Rep: Reputation: 15
I get the impression from your answer that all DBMS that manage records through raw I/O have to have another raw partition instead with being the regular filesyste.
I think Oracle does raw I/O. That's why you can never see where the data is stored on your disk whithout the use of Oracle itself. I think apart from spped, it also adds to security. But Oracle can be loaded with regular filesystems on the same partition. So, how can my question be answered in this light.

Thanks.
 
  


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
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Raw Devices rajar11 Linux - Newbie 4 06-16-2004 01:36 PM
raw sockets BashTin Programming 1 06-07-2003 06:34 AM
raw cd copy hjles Slackware 2 05-02-2003 08:47 PM

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

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