LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-06-2006, 10:10 AM   #1
HypoCee
LQ Newbie
 
Registered: Sep 2005
Distribution: Arch
Posts: 13

Rep: Reputation: 0
Local partitions are being spontaneously unmounted.


Situation and symptoms:

I'm running a Samba server for a small business. Three partitions are supposed to be mounted in a hierarchy:

hdd1: share root
hdd2: share/directory1
hdc2: share/directory2

Currently the partitions are mounted manually and not listed in the fstab. All are on two plain vanilla ATA/IDE drives, plugged directly into a motherboard with no RAID. All are primary partitions. With no apparent significant changes to the system, these partitions have begun spontaneously unmounting themselves once or twice a day. On all occasions, the only users logged into the system at the time have been normal CIFS clients. The root and boot partitions on hda do not get unmounted and the system including Samba continues to run happily; the share just suddenly appears empty, then appears full again when the partitions are remounted.

Timeline:

For a year or so, we had been running the server on an Ubuntu box. Our load recently outgrew that machine and we moved the server to a better box: an old Gateway with nice, generic components. At the same time, I migrated it to my current preferred distro, Arch. I am also running Arch on a webserver, my home machine and my work dual-boot laptop; obviously none of them display the current issue. Arch is installed very slimly on the Samba box - no X, no big overhead daemons - and the system reports about 10% processor and memory load at peak.

After initial setup, we experienced an issue with a few XP clients frequently disconnecting from Samba and getting locked out. This was eventually traced to the use of Arch's updated Samba 3.0.23c, which has documented problems with these behaviors per the 3.0.23d changelog. The machine ran properly in all other respects for about ten days - in particular, it displayed no unmount problems with the same heirarchy and fstab.

Here's where things turn into bad science. Last Friday we experienced a power outage. The Samba box had been set up fast and I hadn't yet been able to arrange downtime to put it on the UPS, so the system went down over the weekend. While putting it back up on Monday, I took the opportunity to upgrade Samba to 3.0.23d (via a pacman -Sy samba). Fortunately this solved the Samba issue. Unfortunately, it gives two possible causes for the current issue which are simultaneous from the box's point of view: the rude shutdown and the update to Samba. I did not, repeat not run a pacman -Syu or install or alter any other packages. I don't see how either of these could possibly have affected mount functionality, but they are the only two changes made between OK operation and the appearance of the problem.

Since then, we've had three disconnects - two yesterday and one so far today. As stated above, I haven't been logged in at all when any of the incidents happened, let alone messing around as root or anything. The drives are listed by mount when mounted and not listed after they disappear. They remount happily afterwards with no errors or fscks, leading me to suspect that they are actually being politely unmounted (as opposed to failing outside of software).

My Googling for the issue brings up one dude with something similar happening at some point on Fedora 5, and a gaggle of Apple users encountering MacOS' wonky Firewire and mounting schemes. The only lead I've found is one comment suggesting that something may be unmounting all partitions without open files. This could match the unmount pattern, though I don't know a good way to verify that and it could be a red herring.

After today's disconnect I did run a pacman -Syu and reboot. Among other things I see it's upgraded the kernel and glibc. I hope naively that this will solve the problem, but in the meantime I figured I'd throw it out into the hivemind too.

I know my description is a bit vague in terms of error messages, for the simple reason that I don't know where I should look. In the absence of complete fixes, I'd love to hear suggestions for troubleshooting commands or potentially relevant logfiles. Thanks for reading.

Last edited by HypoCee; 12-06-2006 at 04:06 PM.
 
Old 12-07-2006, 09:58 AM   #2
HypoCee
LQ Newbie
 
Registered: Sep 2005
Distribution: Arch
Posts: 13

Original Poster
Rep: Reputation: 0
A bit early to say, but there have been no drops since the system upgrade. My guess is a kernel issue.
 
Old 12-11-2006, 09:12 AM   #3
HypoCee
LQ Newbie
 
Registered: Sep 2005
Distribution: Arch
Posts: 13

Original Poster
Rep: Reputation: 0
Dropped again. Gah! Vague bug report ahoy.
 
Old 12-19-2006, 03:55 PM   #4
HypoCee
LQ Newbie
 
Registered: Sep 2005
Distribution: Arch
Posts: 13

Original Poster
Rep: Reputation: 0
Error messages or no, the legacy software at the center of the issue runs much faster and more stably on a faster box. This problem appears to have resulted from disk hammering.
 
  


Reply

Tags
arch, mount, samba, unmounting


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
how to see unmounted partitions Vensan Linux - General 1 09-07-2006 01:41 AM
Mounting Local Logical Partitions Reject476 Fedora 1 01-08-2006 02:42 PM
Browsing Other Local Partitions soopafresh Linux - General 1 08-05-2004 10:12 PM
How to open our local drives & its partitions nassha Linux - Distributions 1 06-07-2004 09:12 AM
X spontaneously reboots AhtirTano Linux - Software 4 03-12-2004 11:13 AM


All times are GMT -5. The time now is 12:55 AM.

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