tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: MFS options in fstab
@ 2001-10-17 10:37 Jonathan Nicholson
  0 siblings, 0 replies; only message in thread
From: Jonathan Nicholson @ 2001-10-17 10:37 UTC (permalink / raw)
  To: tru64-unix-managers


Thanks to all that replied!

On v5.1 you can pass several arguments to mfs by separating them with
commas eg:-

-i256,-s65536 /mnt mfs rw 0 0

This doesn't work on v4.0 (the system I need this on is 4.0g)

An intriguing suggestion from James Sainsbury:-

> If you set the filesystem type to some unkown type the mount
> command attempts to exec /sbin/mount_ufs (which doesn't exist.)
> So for example a fstab entry:
>
>   -Tmfs,s10000,i345,perm=700   /mnt    memfs   rw,noexec,nodev,nosuid,nogrpid  1 0
>                                 *****
> Will be passed to /sbin/mount_ufs as
> /sbin/mount_ufs -F 28 -Tmfs,s10000,i345,perm=700 /mnt
>
> If you create a script (or binary) /sbin/mount_ufs to parse this and run
> mfs with the passed -F flags (noexec=0x4,nosuid=0x8,nodev=0x10,grpid=0x4000)
> and -i flags you can Also chmod/chown the mounted filesystems.

Sounds like a good idea, I've just written it into the sendmail rc script!

Regards,

Jonathan

!---------------------------------------------------------------------------
= Jonathan Nicholson - Team Leader : System Support "Special Projects"       =
= The Sanger Centre, Wellcome Trust Genome Campus, Hinxton, Cambs, CB10 1SA  =
= Email: jjn@sanger.ac.uk -=- Tel: 01223 834244 x4987  -=- Fax: 01223 494919 =
 ----------------------------------------------------------------------------

---------- Forwarded message ----------
Date: Wed, 17 Oct 2001 13:08:00 +1000 (EST)
From: James Sainsbury <J.Sainsbury@chem.usyd.edu.au>
To: Jonathan Nicholson <jjn@sanger.ac.uk>
Subject: Re: MFS options in fstab


I am not sure whether this is of any use to you.


I would go for the startup script myself  :)

RGDS

On Tue, 16 Oct 2001, Jonathan Nicholson wrote:

>
> I want to create a mfs filesystem with a large number of Inodes (this is
> for the hoststatus information maintained by sendmail).
>
> I can do this on the command line with something like:-
>
> mfs -i256 -s65536 /hoststatus
>
> which will create 1 inode for every 256 bytes (host status information is
> just a directory entry) and 32Mb of space.
>
> I cannot work out how to get this into an FSTab entry so it is mounted on
> boot.
>
> Also mfs will create the FS with the default permissions of 1777, which
> are too permissive for sendmail, it needs 700.
>
> I could do this in a startup script, but that just seems messy...
>
> Any ideas?
>
> !---------------------------------------------------------------------------
> = Jonathan Nicholson - Team Leader : System Support "Special Projects"       =
> = The Sanger Centre, Wellcome Trust Genome Campus, Hinxton, Cambs, CB10 1SA  =
> = Email: jjn@sanger.ac.uk -=- Tel: 01223 834244 x4987  -=- Fax: 01223 494919 =
>  ----------------------------------------------------------------------------
>
>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-17 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-17 10:37 SUMMARY: MFS options in fstab Jonathan Nicholson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox