Table of ContentsView in Frames

Administering SVMs from the SVM context

You can administer a Storage Virtual Machine (SVM) and its resources from the context of an SVM by using the vserver context command.

About this task

After you switch to the SVM context, your capabilities will be same as that of the SVM administrator. If you do not specify the user name while executing the vserver context command, then you will have capabilities same as that of the default SVM administrator (vsadmin). If you specify the user name, then you will have capabilities same as that of the role of the user name.

If you want to switch from one SVM to another, you must exit from the first SVM.

Steps

  1. Use the vserver context command to enter into the SVM context.
    Example
    The following example shows how to switch the context from cluster to SVM vs1.example.com:
    cluster1::> vserver context -vserver vs1.example.com -username vsadmin-volume
    
    Info: Use 'exit' command to return.
    
    vs1.example.com::>

    For more information about vserver context command, see the man pages.

    You can use a role of another SVM administrator by specifying the -username option.
    You are in the context of SVM vs1.example.com. Your capabilities will be same as that of the vsadmin-volume role.
  2. Enter the command you want to run from the SVM context.
    Example
    The following example shows how to view the volumes that belong to the SVM vs1.example.com from the SVM vs1.example.com context:
    vs1.example.com::> vol show
      (volume show)
    Vserver          Volume     Aggregate    State      Type  Size  Available Used%
    ---------        ---------- ------------ ---------- ---- ----- ---------- -----
    vs1.example.com   root_vol1  aggr3        online     RW   1GB    972.5MB    5%
    vs1.example.com   vol1       aggr1        online     RW   20MB   18.88MB    5%
    
  3. Type exit at the SVM prompt to exit from the SVM context.