LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-15-2009, 11:40 AM   #1
Mr. Swillis
Member
 
Registered: Sep 2005
Location: The PNW
Distribution: Many. Slackware is the main reason I'm here though :)
Posts: 95

Rep: Reputation: 17
Error creating pipe with mkfifo on Samba mount


Hi Guys,

I'm really not that familiar with the concept of pipe files and mkfifo, but I have an Informix backup script that uses it when backing up to the local file system vs a tape drive. Since our local file system is running low on space, we decided to try pointing at a samba mount with way more space.

I created the mount with this line in /etc/fstab:

Code:
//efstg01/rservers /mnt/rservers smbfs username=blah,password=blah 0 0
After mounting with mount -a, I tested writing files with touch, cat, and vi all successfully. However, my backup script is failing when trying to create a file with mkfifo. I recreated the error with this simple test command:

Code:
> mkfifo test.pipe
mkfifo: cannot create fifo ``test.pipe'': Operation not permitted
My hunch is that I might need to pass more options to smbmount or something, but like I said, I'm totally new to this pipe business and don't really get why I can write plain text but not a pipe file. Any help would be greatly appreciated.

Thanks!

Swill
 
Old 01-15-2009, 01:10 PM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
I don't think a samba mount supports a FIFO. I don't even think there's an option to force them. FIFOs are not meant as a way to store data on a disk, but as a way to enforce local communication. What would happen if the same FIFO be open on two different hosts mounting the same disk space?
 
Old 01-15-2009, 01:24 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,661

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by clvic View Post
I don't think a samba mount supports a FIFO. I don't even think there's an option to force them. FIFOs are not meant as a way to store data on a disk, but as a way to enforce local communication. What would happen if the same FIFO be open on two different hosts mounting the same disk space?
You are correct. Since it's a network resource, there are issues to consider with timeouts/dropped connections/etc., so FIFO to a network resource (even NFS), won't work well, if at all.
 
Old 01-15-2009, 03:32 PM   #4
Mr. Swillis
Member
 
Registered: Sep 2005
Location: The PNW
Distribution: Many. Slackware is the main reason I'm here though :)
Posts: 95

Original Poster
Rep: Reputation: 17
Thanks for the replies. The pipe file gets created and removed each time the script is run. My understanding is that it serves as a means of transport and/or communication while the data backup (from Informix) is being dumped. The end result is plain tar.gz file.

It sounds like I might need to just open the pipe on the local file system and move the end resul to the samba share afterwards.

Swill
 
Old 01-15-2009, 03:47 PM   #5
Mr. Swillis
Member
 
Registered: Sep 2005
Location: The PNW
Distribution: Many. Slackware is the main reason I'm here though :)
Posts: 95

Original Poster
Rep: Reputation: 17
I just confirmed that we have this working with NFS on another site, so it *might* be possible after all. It at least rules out "generic" network resource issues with mkfifo. Maybe smbfs specifically doesn't support FIFO, but I haven't found anything concrete one way or the other.

Will
 
  


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
Pipe broken at 2GB when tarring to a samba mount bdb4269 Linux - General 4 11-14-2007 08:51 PM
creating c programs to accpet data from a pipe - '|' schneidz Programming 9 11-21-2006 09:16 AM
creating pipe! sahel Programming 1 01-06-2006 02:48 PM
write in pipe based system+mkfifo sahel Programming 1 12-27-2005 11:39 AM
samba mount error message saavik Linux - Networking 1 04-24-2002 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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