LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-16-2015, 04:47 PM   #1
itsallgood
LQ Newbie
 
Registered: Jan 2015
Posts: 26

Rep: Reputation: Disabled
Difference between certain types of filesystems?


I am very new to Linux, please excuse my question as I am sure it is going to sound a bit obvious to those with more than a novice amount of experience. I've done a lot of researching online but I cannot seem to find the information that I am specifically looking for.

I am confused about the definition of a "filesystem".

I am understanding the basic components of a Linux filesystem and that it includes folders like /boot, /dev, /usr, /var, etc...

I am also reading about other filesystems like HDFS and GPFS used in server applications. Am understanding they run on "nodes" which are separate parts of a working cluster. How do those work and what is the difference? Do they run on top of the Linux filesystem I am thinking of or are they completely different? Do these both have the /boot, /opt, etc subdirectories or am I completely off here?

To rephrase, do these HDFS and GPFS systems replace the basic Linux filesystem I am thinking of or are they mounted separately somehow? Not really sure how to phrase my question...

Thanks for any clarification.
 
Old 04-16-2015, 05:16 PM   #2
ymf331
Member
 
Registered: May 2014
Posts: 50

Rep: Reputation: Disabled
www.tldp.org/LDP/sag/html/filesystems.html

it seems like it's just a group of files that work together or the way you format your disk/partitions/etc. so you could have a bunch of different examples on your system depending on how it's set up. like your linux filesystem could be on different partitions and use different filesystem types.

Last edited by ymf331; 04-16-2015 at 05:21 PM.
 
Old 04-16-2015, 06:49 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by itsallgood View Post
I am confused about the definition of a "filesystem".

I am understanding the basic components of a Linux filesystem and that it includes folders like /boot, /dev, /usr, /var, etc...
Indeed. Data 'on disk' is stored in blocks and there has to be some convention that somehow relates a collection of bits to some sort of meaning.

A filesystem is not quite what you think it is. The stuff about directories is a filesystem hierarchy. There are conventions for that and they evolve slightly over time, but, in principle, all you need is a root directory, and some way of assigning other data blocks to things like metadata and data blocks within files and to subdirectories.

That would allow you to build any hierarchy that you'd like, but, for it to have the conventional meaning, files have to appear in the hierarchy where you'd expect them to. This can be done on top of any supported filesystem, and really, from most points of view, you can't actually see which file system underlies the hierarchy without a bit of digging.

Quote:
Originally Posted by itsallgood View Post
Am understanding they run on "nodes" which are separate parts of a working cluster. How do those work and what is the difference? Do they run on top of the Linux filesystem I am thinking of or are they completely different? Do these both have the /boot, /opt, etc subdirectories or am I completely off here?
In allocating data to files, nodes are very widely used. Mostly, you don't have to worry about nodes at all, unless something goes wrong (ie, file recovery, or something has gone wrong with the allocation process and you haven't allocated enough).

In principle, at least, it is not necessary to have one file system for your Linux box you could have your / partition on, say, ext4, your /home on F2FS, /boot on ext2, /opt on BTRFS, etc. It would be a bit eccentric, but the system would do it. All the system has to know is which filesystem to mount where (from /etc/fstab) and that information to be correct, and that will do it. Of course, there are some situations in which some filesystems give different performance from others, but you'd expect that.


Quote:
Originally Posted by itsallgood View Post

To rephrase, do these HDFS and GPFS systems replace the basic Linux filesystem I am thinking of or are they mounted separately somehow? Not really sure how to phrase my question...
Well, mostly you won't have to bother about those two. The Hadoop Distributed File System must have some advantages for use with Hadoop, which does have uncommon data use patterns (I suspect, probably to with the 'distributed' word), but it doesn't see much general purpose usage. In any case, you could have a perfectly 'normal' (whatever that means) linux setup that had a HDFS partition mounted with some arbitrary name (say, data1, for example) and everything would work normally, except that you'd have this extra bit of the filesystem called /data1 which would be appropriate for your hadoop data.

Of course, and I need to emphasise this just because you could, doesn't mean that you should. If it turns out that you have mentioned HDFS for some particular reason (such as, err, Hadoop, probably), then there will probably be some kind of guide or tutorial that you should read, and that will give you more information. Or, in the case of GPFS, something about the cluster of machines that you are setting up will have pushed you in that direction, and again some kind of usage guide will be available.

Both of the filesystems that you mention seem concerned with high performance in very particular circumstances and won't be of interest to most people most of the time. Do you have some particular requirements?

Another comment is that while things should be clearer once you have read that tldp document, it isn't very up to date, so don't think that it covers the latest developments.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between c and b file types in /dev Ashok Linux - Newbie 4 09-04-2011 02:19 AM
Difference between different memory types techieanupam Linux - Kernel 2 12-16-2010 02:18 PM
difference between filesystems aliabbass Linux - General 4 11-29-2010 05:49 AM
[SOLVED] Conflicting type declarations between sys/types.h and linux/types.h Da Shi Cao Programming 3 09-13-2010 11:55 PM
Difference between Filesystems phanee Linux - General 3 04-29-2006 06:32 PM

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

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