Installation manual

Policy for Balancing Capacity
Removing All Policy Objects from a Namespace
CLI Storage-Management Guide 12-47
Removing All Policy Objects from a Namespace
You can use a single command to remove all rules, share farms, and other policy
objects from a namespace. The
remove namespace command has been described in
previous chapters for removing a volume (“Removing a Direct Volume” on page 8-37
or “Removing a Managed Volume” on page 9-71) or an entire namespace
(“Removing a Namespace” on page 7-27); add the optional
policy-only keyword to
remove only the policy objects:
remove namespace name policy-only [timeout seconds] [sync]
where:
name (1-30 characters) is the name of the namespace,
policy-only is the option to remove only the policy objects,
seconds (optional, 300-10,000) sets a time limit on each of the removal’s
component operations, and
sync (optional) waits for the removal to finish before returning. With this
option, the CLI lists the policy objects as it removes them.
The CLI prompts for confirmation before removing the policy objects. Enter yes to
continue. This operation generates a report named “removeNs_namespace_date.rpt”
if you omit the
sync option.
For example, this command sequence exits to priv-exec mode and then synchronously
removes all policy objects from the “insur_bkup” namespace:
prtlndA1k(gbl)# end
prtlndA1k# remove namespace insur_bkup policy-only timeout 600 sync
Remove components from namespace 'insur_bkup'? [yes/no] yes
% INFO: Removing service configuration for namespace insur_bkup
% INFO: Removing volume policies for namespace insur_bkup
% INFO: destroy policy insur_bkup /insurShdw
prtlndA1k# ...