LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-15-2010, 08:51 AM   #1
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
SAN filesystem for slack?


Hi all.
I need a cluster-safe filesystem for a SAN shared storage in Slackware.
Any experience about it? Red Hat's GFS is the best/only solution?
Given GFS support in a custom kernel, what about tools (mkfs,mount...)?
 
Old 09-15-2010, 04:03 PM   #2
lazardo
Member
 
Registered: Feb 2010
Location: SF Bay Area
Posts: 100

Rep: Reputation: Disabled
Not sure that the slackware forum is the right focus, not slackware-specific.

Oracle and IBM both make contributions in addition to Red Hat.

Try here to get a more definition: http://www.yolinux.com/TUTORIALS/Lin...leSystems.html

Cheers,
 
Old 09-15-2010, 04:20 PM   #3
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lazardo View Post
Not sure that the slackware forum is the right focus, not slackware-specific.
Why not? GFS is native in Red Hat distribution, filesystem support is included in Linux kernel, I just would know about a Slackware experience.
I saw the page you pointed a while ago. Thanks for the link anyway.
Regards
 
Old 09-15-2010, 05:01 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,198
Blog Entries: 3

Rep: Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426
Hi,

Quote:
Originally Posted by hopbyhop View Post
Hi all.
I need a cluster-safe filesystem for a SAN shared storage in Slackware.
Any experience about it? Red Hat's GFS is the best/only solution?
Given GFS support in a custom kernel, what about tools (mkfs,mount...)?


So you've shown us your need! What's your deed?

We will aid you when you help yourself to a solution. Provide us with what you have attempted and then maybe someone will be able to assist.

A simple Google search provided;
Use Linux as a SAN Provider | Linux Journal which seems to provide some insight and is a good article to read for reference.
 
Old 09-15-2010, 10:16 PM   #5
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
It depends on what you are doing with the medium in the SAN.

For example, I got an optical jukebox working quite nicely with Slackware+autofs+sshfs+samba+http. However! I never quite worked out (because of time) decoding dvds or accessing audio CDs. It worked very well for data disks though.

Additionally autofs doesn't work with nfs or ftp. Which is why I used sshfs.
 
Old 09-16-2010, 01:44 AM   #6
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Original Poster
Rep: Reputation: 15
my apologies

OK, I should have been clearer ...
We do have a SAN infrastructure (double HBA on servers, Fibre channel switches, FC disk arrays). I have no problems accessing SAN luns and mount filesystems on SAN disks.
I have no experience with GFS2 filesystem (or another free one which is cluster-aware) in slackware. Since GFS is a redhat product (though released as open source). I compiled GFS support in kernel and now I'm wondering if there are any issues with gfs-tools compiling and using, or If I even should consider a different filesystem to share cluster resources and (KVM) virtual machine disk-files.
Anyone already did the same I am going to do?
 
Old 09-16-2010, 04:56 AM   #7
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 254

Rep: Reputation: 72
Quote:
Originally Posted by hopbyhop View Post
I need a cluster-safe filesystem for a SAN shared storage in Slackware.
-SNIP-
Anyone already did the same I am going to do?
I certainly did

Quote:
Originally Posted by hopbyhop View Post
Red Hat's GFS is the best/only solution?
You can use GFS2 or OCFS2 (I prefer OCFS2 as it was A LOT simpler to setup).

Both GFS2 and OCFS2 kernel modules are already in stock Slackware, so no need to recompile kernel.

What you need to do to make it usable in Slackware is compile the userland tools.

I used a 2 node cluster and it worked out just fine.
I did not try to export the OCFS2 through nfs or samba, but did use mysql server in each node sharing the same database (they both RW to the database at the same time).

Note: I never got the GUI tools to work properly, but the configuration is very well documented so you'll be just fine using the command line

Since I used this on Slackware 12.2 my slackbuild scripts are not up to date... but I'll help you getting things running if you want.
I'll eventually do it myself because I also need a SAN to store my VMs
 
Old 09-21-2010, 01:37 AM   #8
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Original Poster
Rep: Reputation: 15
a bit late to reply... I was out of office

Quote:
Originally Posted by Slax-Dude View Post
You can use GFS2 or OCFS2 (I prefer OCFS2 as it was A LOT simpler to setup).
What's difficult with GFS? Having filesystem and distributed lock manager support in kernel, shouldn't it be straightforward? Just compile userspace tools, mkfs and mount?

Quote:
Originally Posted by Slax-Dude View Post
Note: I never got the GUI tools to work properly, but the configuration is very well documented so you'll be just fine using the command line
Since I used this on Slackware 12.2 my slackbuild scripts are not up to date... but I'll help you getting things running if you want.
I'll eventually do it myself because I also need a SAN to store my VMs
Would you share the slackbuilds anyway? should be easy to port them to 13.1/64 version...
 
Old 09-21-2010, 06:54 AM   #9
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 254

Rep: Reputation: 72
Quote:
Originally Posted by hopbyhop View Post
I have no experience with GFS2 filesystem (or another free one which is cluster-aware) in slackware.
Quote:
Originally Posted by hopbyhop View Post
Quote:
Originally Posted by Slax-Dude View Post
You can use GFS2 or OCFS2 (I prefer OCFS2 as it was A LOT simpler to setup).
What's difficult with GFS? Having filesystem and distributed lock manager support in kernel, shouldn't it be straightforward? Just compile userspace tools, mkfs and mount?
First, you said you had no experience with ANY cluster filesystem in Slackware, so I gave you my opinion about it, since I tried both GFS2 and OCFS2.
Second, I never said GFS2 was difficult... just that OCFS2 was simpler.
GFS2 has way more dependencies, thus, it _is_ (IMHO) less simple to setup than OCFS2 but, like with every advice you get, following it is quite optional so you are welcome to try out GFS2.

Quote:
Originally Posted by hopbyhop View Post
Would you share the slackbuilds anyway? should be easy to port them to 13.1/64 version...
I'm traveling right now. As soon as I return I'll get my old Slackware 12.2 box out of the storage house and search for the scripts.
Like I said, I also need to update them to Slackware 13.1
If I'm happy with the scripts' quality, I'll submit them to slackbuilds.org as well.
 
Old 09-22-2010, 02:18 AM   #10
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Slax-Dude View Post
First, you said you had no experience with ANY cluster filesystem in Slackware, so I gave you my opinion about it, since I tried both GFS2 and OCFS2.
Second, I never said GFS2 was difficult... just that OCFS2 was simpler.
GFS2 has way more dependencies, thus, it _is_ (IMHO) less simple to setup than OCFS2 but, like with every advice you get, following it is quite optional so you are welcome to try out GFS2.
We have a redhat cluster installation, which could access SAN GFS filesystems without modifications, that's the reason I looked at GFS2 first. Didn't mind to dislike your advice: I would try OCFS2 now, and hope you share your experience about it.
I wish you a good journey and see you soon.

Last edited by hopbyhop; 09-22-2010 at 03:00 AM.
 
Old 11-24-2010, 05:59 AM   #11
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Original Poster
Rep: Reputation: 15
no news?

Hi Slax-Dude, did you retrieve the slackbuilds?
If you are too busy to edit them would you post them (or pm me) just as they are?
Regards
 
Old 12-10-2010, 06:18 PM   #12
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 254

Rep: Reputation: 72
Sorry for the late reply.
I found my old slackbuild and updated it.
It compiles in slackware64 13.1 (didn't try slackware 13.1).

Just remove the .txt from the attached files.
Attached Files
File Type: txt ocfs2-tools.SlackBuild.txt (4.1 KB, 44 views)
File Type: txt slack-desc.txt (899 Bytes, 23 views)
 
1 members found this post helpful.
Old 12-11-2010, 11:01 AM   #13
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,494

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Quote:
Originally Posted by lumak View Post
Additionally autofs doesn't work with nfs or ftp. Which is why I used sshfs.
autofs does work with nfs. I've used it at work in a Slackware 12 environment where we used ClearCase dynamic views. The view store was on nfs mounts, which would be accessed by "/net/<machine_name>". Worked like a champ.
 
Old 05-24-2011, 07:25 AM   #14
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by Slax-Dude View Post
Sorry for the late reply.
Sorry for not thanking you 'til now. I was busy in other projects, and I'm now returning to the cluster filesystem...
In the meantime 1.6.4 was released.
For all interested, this version needs and additional patch line for o2info's Makefile.
I attach the updated slackbuild. It works in Slackware64 13.37 too.
Attached Files
File Type: txt ocfs2-tools.SlackBuild.164.txt (4.3 KB, 44 views)

Last edited by hopbyhop; 05-24-2011 at 07:32 AM.
 
Old 06-30-2011, 09:09 AM   #15
dxnxax
LQ Newbie
 
Registered: Aug 2005
Posts: 12

Rep: Reputation: 4
Thanks

Thanks for posting the slackbuilds. Just wanted to you to know someone else appreciates your work
 
  


Reply

Tags
cluster, gfs, san, slackware, storage


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
Can no longer connect to san device when san switch changed rew25 Linux - Hardware 2 09-07-2010 08:28 AM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
Major filesystem problems on fresh slack 10 install kersten78 Slackware 3 01-04-2005 04:30 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
slack 9 udf filesystem support? astroboiii Linux - Hardware 0 02-23-2004 12:33 AM


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

Main Menu
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