Skip to main content
Snapdrive for Unix

Snapshot operation command lines

Contributors

SnapDrive for UNIX commands are used for Snapshot operations.

The following table gives various command-line options for Snapshot operations.

Operation Command-line options

Create

snapdrive snap create [-lun | -dg | -vg | -hostvol | -lvol | -fs] file_spec [file_spec …​] [{-lun | -dg | -vg | -hostvol | -lvol | -fs} file_spec [file_spec …​] …​] -snapname snap_name [-force [-noprompt]] [-unrelated] [-fstype type] [-vmtype type]

Show/List

snapdrive snap { show | list } -filervol filervol [filervol…​][-verbose]

snapdrive snap { show | list } [-verbose] {-vg | -dg | -fs | -lvol | -hostvol} file_spec [file_spec…​] [-fstype type] [-vmtype type]

snapdrive snap [-verbose] [-snapname] long_snap_name [snap_name …​]

snapdrive snap{show|list} [-verbose] [-lun | -vg | -dg | -fs | -lvol | -hostvol] file_spec [file_spec…​]

Connect

snapdrive snap connect -lun s_lun_name d_lun_name [[-lun] s_lun_named_lun_name …​] -snapname long_snap_name[-devicetype {shared | dedicated}] [-split] [-clone {lunclone | optimal | unrestricted}] [-prefixfvprefixstr] [-verbose]

Note In a snapdrive snap connect command, the LUN name should be in the format lun_name or qtree_name/lun_name.

snapdrive snap connect fspec_set [fspec_set…​] -snapname long_snap_name[-devicetype {shared | dedicated}] [-autoexpand] [-autorename] [-nopersist] [-mntopts options] [{-reserve | -noreserve}] [-readonly] [-split] [-clone {lunclone | optimal | unrestricted}] [-prefixfv prefixstr] [-verbose]

Note

The fspec_set argument has the following format:

[-vg | -dg| -fs | -lvol | -hostvol] src_file_spec[dest_file_spec] [{-destdg | -destvg} dgname] [{-destlv | -desthv} lvname]

Rename

snapdrive snap rename -old_long_snap_name new_snap_name [-force [-noprompt]]

Restore

snapdrive snap restore [-lun | -dg | -vg | -hostvol | -lvol | -fs | -file] file_spec [file_spec …​] [{-lun | -dg | -vg | -hostvol | -lvol | -fs | -file} file_spec [file_spec …​] …​] -snapname snap_name [-force [-noprompt]] [-mntopts options][{-reserve | -noreserve}] [-devicetype {shared | dedicated}] [-vbsr [preview|execute]]

Disconnect

snapdrive snap disconnect -lun long_lun_name [lun_name…​] [-devicetype {shared | dedicated}] [-fstype type] [-vmtype type][-split]

snapdrive snap disconnect {-dg| -vg | -hostvol | -lvol | -fs} file_spec [file_spec …​] [{-dg | -vg | -hostvol | -lvol | -fs} file_spec [file_spec …​] …​] [-full] [-fstype type] [-vmtype type] [-split] [-devicetype {shared | dedicated}]

Delete

snapdrive snap delete [-snapname] _long_snap_name [snap_name…​][-verbose] [-force [-noprompt]]