[rhn-users] Using tmpfs

Corné Beerse cbeerse at lycos.nl
Wed Sep 15 08:48:38 UTC 2004


Charith Perera wrote:

> Thanks for the response. I tried that but had the same result. 
> 
> Charith.
> 
> 
> On Tuesday 14 September 2004 11:07 am, Corné Beerse wrote:
> 
>>Charith Perera wrote:
>>
>>>Hi everyone,
>>>
>>>I've run into a problem with using a temporary file system for Sybase.
>>>This may turn out to be a Sybase issue, so if you think that is the case
>>>then please point it out immediately. In either case any solutions are
>>>definitely welcome.
>>>
>>>I've put a line in /etc/fstab as follows:
>>>
>>>tmpfs /dev/sybase_tempdb  tmpfs mode=700,rw,size=3G 0 0
>>>
>>>As suggested by this guide : http://www.peppler.org/FAQ/linux.html#q1.19
>>>
>>>
>>>When we attempt to initialize a sybase device for tempdb the following
>>>error is returned. When we use an ext3 partition everything goes fine.
>>>
>>>dopen: open '/dev/sybase_tempdb/tempdb.dat', Invalid argument
>>>udactivate: error starting vidtual disk 2
>>>
>>>>From the sybase website at
>>>
>>>http://www.sybase.com/detail/printthis/1,6907,20336,00.html I found this:
>>>
>>>"Sometimes Sybase Adaptive Server Enterprise reports disk I/O errors when
>>>current disk analysis shows there are no such errors."
>>>
>>>My question to you is, is there a difference from an application's point
>>>of view if a filesystem is tempfs or ext3? My initial guess was that it
>>>should be transparent to the application, but now I doubt that or I'm not
>>>setting up the temporary filesystem properly. I'm about to create files
>>>as the same user being used by the application.
>>
>>No, there is no difference for the app if only the filesystem changes,
>>except for not available capabilities (think writing to a
>>iso-filesystem...). However: if the filesystem is mounted with different
>>options, like your 'mode' setting, it is likely that the app does see it.
>>
>>Hence, try without the 'mode=700' part, better jet: only use the "size=3G"
>>( or more).
>>

I don't know what /dev/sybase_tempdb/tempdb.dat is. Does it have proper size and 
rights? Is it a file, a device or something-else?

Maybe move it to an other locaion, like /dev/shm (shared-memory) or an other 
real device or parition (/dev/sde1) or such.


CBee






More information about the rhn-users mailing list