Identify Online Snapshots Using the NimbleOS CLI

You can identify snapshots that are online by using the NimbleOS CLI.
  1. Enter the command snap --list --vol <volume_name> | awk '$4 == "Yes"'
    This command displays only the online snapshots for the volume you specify with volume_name parameter .
  2. If you are running NimbleOS 2.3.x or later, you can narrow the snapshot list down so that it displays only the online unmanaged snapshots on a specific volume. Enter:
    snap --list --unmanaged --vol <volume_name> | awk '$4 == "Yes"'
  3. Determine the state of the snapshot and whether it has actively connected initiators by entering:
    snap --info <snapshot_name> --vol <volume_name>
  4. 4. If there are active connectors, complete the operation that is in progress; for example migrating or moving data.
  5. Determine whether there is a reason to have the online snapshot in the future:
    • Is the snapshot required by an application or script. If it is, take the following actions:
      1. Check the retention schedule to make sure the snapshot will be removed at a future date.
      2. Disconnect the snapshot from the host before the next snapshot deletion operation is scheduled to occur.
    • Is this the only common snapshot between the upstream array and the downstream array. If it is, then deleting the snapshot would cause the volume to need a full re-seed.
  6. If you do not need to maintain an online snapshot, perform the following steps:
    1. Disconnect the snapshot from the host.
    2. Make it offline.
    3. Delete it.