Scratch space management/allocation

NSCEE uses a locally developed utility called ndisk to manage scratch space allocations on elko (and other systems). This utility allows the user to allocate themselves disk space in amounts and for periods of time approved by NSCEE administration.

Warning: Allocations may be deleted at any time after the expiration date. Deletion is permanent and irrevocable. Therefore, make sure you know when your allocation is to be deleted and save files before they are deleted.

Before the allocation expires an e-mail is sent warning of the impending deletion of the directory. It is the users responsibility to ensure that they are able to receive these messages. These messages are sent to the first of the following addresses available.

  1. The address in the file .ndiskwarnings in the users home directory.
  2. The address in the file .forward in the users home directory.
  3. $USER@nscee.edu ($USER is the allocating users login name).

To test which address will be used execute the following command.

ndisk -t -w

To send a test message to the address omit the -t option from the preceeding command.

Users are allowed to create only one allocation.

The path to the space allocated by ndisk will vary from system to system check instructions for a specific host.

To display syntax for the ndisk command type:

ndisk -h    
(See output) 

Users may be allowed to extend, or reduce their allocation, both in size and expiration.

Usage of the ndisk utility

Allocating Space

Check if allowed to allocate 1gb of disk space for 4 days.
elko% ndisk -t -a -m 1g -d 4
allocation tested valid, 1024mb for 4 days
elko%

Allocate 1gb of disk space for 4 days. (note: -t option has been dropped)
elko% ndisk -a -m 1g -d 4
allocation tested valid, 1024mb for 4 days
allocating:
Check current allocation.
elko% ndisk -q
1024mb allocated at 2009-08-07 14:59 expires 2009-08-11 14:59
elko%

Extending Allocation

Extend current allocation by 2 days.
elko% ndisk -e 2d
allocation tested valid, 1024mb for 6 days
Performing allocation:
elko%

Check current allocation.
elko% ndisk -q
1024mb allocated at 2009-08-07 14:59 expires 2009-08-13 15:03
elko%

Removing Allocation

Remove allocation. WARNING: this removes data if there is any.
elko% ndisk -r
elko%

©2010 NSCEE