Networking Forums

Networking Forums > Computer Networking > Linux Networking > autofs disk space allocations

Reply
Thread Tools Display Modes

autofs disk space allocations

 
 
gga
Guest
Posts: n/a

 
      06-19-2007, 09:21 AM
I am currently investigating options regarding the creation of a
virtual and networked filesystem on linux.

Currently, I have autofs+nis working for my basic needs. This creates
a virtual filesystem hierarchical structure under a single root, say /
nfs, from multiple servers.

However, I also need a way of managing disk space allocations within
this file system. Basically, I would like a special mkdir command
that:
- Has knowledge of all the servers and the potential
devices
attached to them.
- Already knows (thru a database that I'd manage, say,
with a
weekly cron job) or can quickly check the total disk
space on each device.
- Based on the disk space used on each volume, it picks
to create
the new directory in the one with the most available
space.
- Adds a proper nis autofs mount point for this new
directory.
- Pushes the nis autofs changes to each client.

So, before I go and create my own tool to do the above, I'm wondering
if anyone is familiar with some already written tool which can help
with doing this sort of smart directory creation based on disk space.

 
Reply With Quote
 
 
 
 
Michael Zawrotny
Guest
Posts: n/a

 
      06-20-2007, 05:30 PM
This is more of a sysadmin question than a networking question. It
is probably more on topic in comp.unix.admin. Follow-ups set.

On Tue, 19 Jun 2007 09:21:22 -0000, gga <(E-Mail Removed)> wrote:
> Currently, I have autofs+nis working for my basic needs. This creates
> a virtual filesystem hierarchical structure under a single root, say /
> nfs, from multiple servers.


I wouldn't do that. Users need to know what to access, not where it
comes from. Name the drives based on how they're going to be used,
regardless of whether they are local or remote. Above all else, don't
name them based on the hostname of the server from which it is served.

Madness lies in that direction. Lets say you have server "foo"
serving a disk called "/disks/foo". When "foo" dies and you move the
disk to server "bar", then you have to change the name of the disk
(updating all references to "/disks/foo", which is difficult), leave a
symlink from /disks/bar to /disks/foo on all of the clients (which is
ugly), or have /disks/foo live on server bar (which breaks you
original scheme and confuses people).

> However, I also need a way of managing disk space allocations within
> this file system. Basically, I would like a special mkdir command
> that:


There are a ton of problems with this approach. Some of them are
addressed below.

> - Has knowledge of all the servers and the potential devices
> attached to them.
> - Already knows (thru a database that I'd manage, say, with a
> weekly cron job) or can quickly check the total disk space
> on each device.


How is that knowledge going to get into the tool? Keeping that up to
date is probably more work than you think. If it's only updated
weekly, on average it is more than 3 days out of date. What happens
when you don't have the space the tool thinks you do?

> - Based on the disk space used on each volume, it picks to
> create the new directory in the one with the most available
> space.


Bad idea. Let's say you have two devices, one with 20 GB free space and
the other with 50 GB. Your tool adds two 9 GB chunks to the 50,
leaving 32 GB on one and 20 GB on the other. Later you need to add a
35 GB chunk, but there's no place big enough to hold it. If the two
9's had originally gone onto the 20, you would have room for the 35.

> - Adds a proper nis autofs mount point for this new directory.
> - Pushes the nis autofs changes to each client.


I'm saying cfengine here, but there are other tools available to
automate system configuration. Use cfengine or one of the "run this
command on many hosts" tools to make the mount point. Use nis or ldap
to deliver the maps, or cfengine to copy the map files to the clients.


Mike

--
Michael Zawrotny
Institute of Molecular Biophysics
Florida State University | email: (E-Mail Removed)
Tallahassee, FL 32306-4380 | phone: (850) 644-0069
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to create folder - there is not enough space on the disk MSExchangeStudent Windows Networking 2 08-07-2007 12:59 PM
Help - Primary drive low on disk space Mervin Williams Windows Networking 3 08-25-2006 10:42 PM
Shared Disk Space full when not full Steve Bruce, mct Windows Networking 3 08-25-2005 05:39 PM
heartbeat & autofs Skaghk Linux Networking 0 10-12-2004 12:55 PM
Disk space allocated to mapped network drives Steveb Windows Networking 0 06-07-2004 12:00 AM



1 2 3 4 5 6 7 8 9 10 11