Your web space is part of your AFS space. Your AFS account is allowed to use a fixed amount of space on the AFS servers. Web space, like your office or desktop space, and needs to be spring cleaned once in a while. Large graphics that are no longer in use, old files, etc. can eat up your space quickly.
Every AFS account is assigned a quota (amount of AFS disk space) when it is created. Undergraduate students have a quota of 10 Mb (usually expressed by the server as 5000 [1K blocks]); graduate students and Faculty/Staff get a 100 Mb quota, and department/group accounts get a 10 Mb quota (expressed as 10000 [1K blocks]).
If you exceed your quota, you will not be able to add to your AFS space (including your webspace) or edit files in your webspace.
There are a number of ways you can use to check what your quota is and see how much you're using.
The simplest is to go to the web page http://www.lehigh.edu/account/
and click on Disk Quotas. Under AFS Disk Usage & Quotas,
it will tell you:
AFS disk usage for userid is xxxx Kb, with a quota of 10000 Kb.
AFS partition fs4.CC.Lehigh.EDU:/vicepb is xx% full.
The amount of space you have alloted to you is the 'Quota'; 'Usage' is how much of it you are currently using.
The 'Partition' figure is not something you can do anything about, but if you are having trouble writing to your AFS space and your Partition number reaches or exceeds 95%, call Client Services at x3990; a computer consultant may need to take steps to fix that. (This is a rare problem.)
From the Compute Server in AFS space or on an AFS machine, you can see how
much of your usage is in each subdirectory with the
command:du
To do this from the Network Server:
shell
cd /ahome/userid/
du
exit to go back to the Network
Server menu.
If you are at or exceeding your AFS quota, you can do one of two things: delete files or get more space. In most cases, deleting files you do not use will solve your problem quickly (see below). However, once in a while, research, project, or department needs may require the use of large files or large numbers of files in your web pages. There is a provision for getting more space if you really need it for academic purposes. Client Services can also temporarily increase your quota for a few days while you figure out how to decrease your usage.
To have your quota increased, you need to fill out a form called 'Form 1c: Request for Change to Computer Account', which you can get from the Client Services office in 194 Fairchild-Martindale Computing Center. Be aware that you have to provide significant justification for increasing your quota.
This is important. You will not get a quota increase simply in order to put up big graphic files, or large executables-- these should be served from an anonymous ftp server, if they really need to be put up at all. You must prove that there are legitimate and pressing academic or administrative needs that require the quota increase.
If the reason that your department or personal space is overflowing is that you have pages for multiple classes, sub-programs, etc. in your space, you may be able to get a separate account for those uses-- fill out the 'Application for a Network Server INFO account', which is available from the Client Services office. It is strongly recommended that official department and group pages have their own accounts; hosting such pages in personal accounts is strongly discouraged.
It's easy for files to build up, like tartar, in your web space, even after you aren't using them any more. It's important to periodically 'houseclean' your webspace, at least once a semester, so that the old files don't get away from you and use up your quota.
If you don't have an index.html (or a symbolic link to index.html) file in
your directories, you can check for unwanted files using the web. Simply browse
to http://www.lehigh.edu/~userid/ and scan for old or unwanted
files; click on files to view their contents. (You'll have to get into your
AFS space directly with a connection via a secure shell or secure file transfer
program to delete them.)
If you DO have an index.html file or a symbolic link called index.html, you won't be able to scan your directory over the web. The way to see your directory in that case is to use a secure file transfer (scp) program, such as SSH File Transfer.
You can download and/or view files from here. Downloading the files will not delete them from your webspace; you will have to specifically use the delete function to remove them.
In PC SSH:
Download is in the Operations menu, or you can drag files into a Windows Explorer
window. Delete files by clicking on them once and hitting the delete key. To
view files, double-click on them and they will be opened in whatever program
your computer has selected for that file type.
There is a directory called 'yesterday' (/ahome/userid/yesterday) in your AFS space. In that directory is a complete copy of how your AFS space looked... at 2 a.m. this morning.
Before you start thinking that that would be a good place to delete files, remember: a) the yesterday files don't count toward your quota and b) they just get copied in again at 2 am anyway!
This means that if you accidentally delete a file or overwrite it, you can retrieve a backup file from yesterday. (Of course, if you create a file and then immediately overwrite it the same day, you're out of luck!)
There is a simple procedure for retrieving materials from /ahome/userid/yesterday.
shell to get to a UNIX prompt.
cd /home/userid
cd /ahome/userid/
cp
yesterday/directory/filename
public/www-data/directory/filename
directory/filename is the subdirectory and
filename of the thing you
want to retrieve.
If you lose files and don't notice for several days,
you can generally have them recovered from the tape backup of AFS space.
To request recovery of files,
go to Client Services and fill out the form for recovery from backup.
MAINTAINER: www@lehigh.edu
Last updated: January 23, 2001