

# Monitoring volumes
<a name="viewing-volumes"></a>

You can see the volumes that are currently on your file system using the Amazon FSx console, the AWS CLI, and the Amazon FSx API and SDKs.

**To monitor the volumes on your file system:**
+ **Using the console** – Choose a file system to view the **File systems** detail page. Choose the **Volumes** tab to list all the volumes on the file system, and then choose the volume you want to view.
+ **Using the CLI or API** – Use the [describe-volumes](https://docs.aws.amazon.com/cli/latest/reference/fsx/describe-volumes.html) CLI command or the [DescribeVolumes](https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeVolumes.html) API operation.

  ```
  $ aws fsx describe-volumes 
  {
      "Volumes": [
          {
              "CreationTime": "2024-03-04T20:17:44+00:00",
              "FileSystemId": "fs-abcdef0123a0bb087",
              "Lifecycle": "CREATED",
              "Name": "SVM8_ext_root",
              "OntapConfiguration": {
                  "FlexCacheEndpointType": "NONE",
                  "JunctionPath": "/",
                  "SecurityStyle": "NTFS",
                  "SizeInMegabytes": 1024,
                  "StorageEfficiencyEnabled": false,
                  "StorageVirtualMachineId": "svm-01234567890abcdef",
                  "StorageVirtualMachineRoot": true,
                  "TieringPolicy": {
                      "Name": "NONE"
                  },
                  "UUID": "42ce3de0-da64-11ee-a22d-7f7cdfb8d381",
                  "OntapVolumeType": "RW",
                  "SnapshotPolicy": "default",
                  "CopyTagsToBackups": false,
                  "VolumeStyle": "FLEXVOL",
                  "AggregateConfiguration": {
                      "Aggregates": [
                          "aggr1"
                      ]
                  },
                  "SizeInBytes": 1073741824
              },
              "ResourceARN": "arn:aws:fsx:us-east-2:111122223333:volume/fs-abcdef0123a0bb087/fsvol-abcdef0123456789a",
              "VolumeId": "fsvol-abcdef0123456789a",
              "VolumeType": "ONTAP"
          }
      ]
  }
  ```

# Viewing offline volumes
<a name="offline-volumes"></a>

You can't create or delete volume backups when the source volume is offline. You can use the [https://docs.netapp.com/us-en/ontap-cli-9131/volume-show.html](https://docs.netapp.com/us-en/ontap-cli-9131/volume-show.html) ONTAP CLI command to determine a volume's current status.

```
volume show -vserver svm-name
```

For information about accessing the ONTAP CLI on your file system, see [Using the NetApp ONTAP CLI](managing-resources-ontap-apps.md#netapp-ontap-cli).

```
FsxIdabc12345::> volume show -vserver vs1
Vserver   Volume       Aggregate    State      Type       Size  Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
vs1       vol1         aggr1        online     RW          2GB      1.9GB    5%
vs1       vol1_dr      aggr0_dp     online     DP        200GB    160.0GB   20%
vs1       vol2         aggr0        online     RW        150GB    110.3GB   26%
vs1       vol2_dr      aggr0_dp     online     DP        150GB    110.3GB   26%
vs1       vol3         aggr1        online     RW        150GB    120.0GB   20%
vs1       vol3_dr      aggr1_dp     online     DP        150GB    120.0GB   20%
vs1       vol4         aggr1        online     RW        200GB    159.8GB   20%
7 entries were displayed.
```

To bring an offline volume back online, use the [https://docs.netapp.com/us-en/ontap-cli-9131/volume-online.html](https://docs.netapp.com/us-en/ontap-cli-9131/volume-online.html) ONTAP CLI command, as shown in the following example. If only one SVM (Vserver) exists, you do not need to specify the `-vserver` parameter.

```
FsxID-abcdef123456::> volume online -volume volume_name -vserver svm_name
   
Volume 'vs1:vol1' is now online.
```