Administrator's Reference

DELETE FILESPACE (Delete Client Node Data from the Server)

Use the DELETE FILESPACE command to delete file spaces from the server. Files that belong to the specified file space are deleted from primary and copy storage pools.

Use the DELETE FILESPACE command to:

The DELETE FILESPACE command creates a server process that deletes one or more file spaces as a series of batch database transactions, thus preventing a rollback or commit for an entire file space as a single action. If the DELETE FILESPACE process is canceled or if a system failure occurs, a partial deletion can occur. In this case, a subsequent DELETE FILESPACE command for the same node or owner can delete the remaining data.

Privilege Class

To issue this command, you must have system privilege, unrestricted policy privilege, or restricted policy privilege for the policy domain to which the client node is assigned.

Syntax

>>-DELete FIlespace--nodename--filespacename-------------------->
 
    .-Type--=--ANY---------------.  .-Wait--=--No-------.
>---+----------------------------+--+-------------------+------->
    '-Type--=--+-ANY----------+--'  '-Wait--=--+-No--+--'
               +-Backup-------+                '-Yes-'
               +-ARchive------+
               +-SPacemanaged-+
               '-Server-------'
 
>----+----------------------+----------------------------------><
     '-OWNer--=--ownername--'
 

Parameters

nodename

Specifies the name of the client node to which the file space belongs. This parameter is required.

filespacename

Specifies the name of the file space to be deleted. This parameter is required.

This name is case-sensitive. It must be entered exactly as it is known to the server. To determine the correct capitalization for the file space to be deleted, use the QUERY FILESPACE command.

You can use a pattern-matching expression to specify this name. All matching file space names are included.

Type=datatype

Specifies the type of data to be deleted. This parameter is optional. The default value is ANY. Possible values are:

ANY

Specifies to delete, in order, only backed-up versions of files and archived copies of files.

To delete space-managed files (files migrated from HSM client nodes), you must specify TYPE=SPACEMANAGED.

To delete files archived on the target server, you must specify TYPE=SERVER.

If you specify DELETE FILESPACE nodename * TYPE=ANY, all backed-up and archived files in all file spaces for that node will be deleted. File spaces will only be deleted if they do not contain files migrated from an HSM client.

Backup

Specifies to delete all backup data.

ARchive

Specifies to delete all archived data on the server.

SPacemanaged

Specifies to delete files migrated from a user's local file system (space-managed files from an HSM client). The OWNER parameter is ignored when you specify TYPE=SPACEMANAGED.

Server

Specifies to delete all archived files in all file spaces for the node that is registered as TYPE=SERVER.

Wait=waitvalue

Specifies whether to wait for the server to complete processing this command in the foreground. This parameter is optional. The default value is No.
Note:You cannot specify Wait=Yes from the server console.
Possible values are:

No

Specifies that the server processes this command in the background. You can continue with other tasks while the command is being processed. Messages created from the background process are displayed either in the activity log or the server console, depending on where messages are logged.

Yes

Specifies that the server processes this command in the foreground. You wait for the command to complete before continuing with other tasks. The server then displays the output messages to the administrative client when the command completes.

OWNer=ownername

Specifies to restrict the data that is deleted from a file space to files belonging to the owner named. This parameter is optional and is ignored when TYPE=SPACEMANAGED. This parameter only applies to multiuser client systems such as AIX and SunOS.

Examples

Task 1

Delete the file space named C_Drive that belongs to the client node HTANG.

Command:
delete filespace htang C_Drive

Task 2

Delete all files migrated from client node APOLLO (that is, all space-managed files).

Command:
delete filespace apollo * type=spacemanaged

Related Commands

Table 75. Commands Related to DELETE FILESPACE
Command Description
CANCEL PROCESS Cancels a background server process.
QUERY ACTLOG Searches for and displays messages from the server activity log.
QUERY FILESPACE Displays information about data in one or more filespaces that belong to a client.
QUERY OCCUPANCY Displays file space information by storage pool.
QUERY PROCESS Displays information about one or all background server processes.
REMOVE NODE Removes a client from the list of registered nodes for a specific policy domain.
RENAME FILESPACE Renames a client filespace on the server.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]