Líneas de comandos de operación Snapshot
Los comandos de la SnapDrive para UNIX se usan para las operaciones de Snapshot.
La siguiente tabla da varias opciones de línea de comandos para las operaciones de Snapshot.
Funcionamiento | Opciones de línea de comandos |
---|---|
Cree |
`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]` |
Mostrar/Lista |
`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{show |
list} [-verbose] [-lun |
-vg |
-dg |
-fs |
-lvol |
-hostvol] file_spec [file_spec…]` |
Conecte |
`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: En un comando SnapDrive snap connect, el nombre de la LUN debe tener el formato |
`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] ==== El argumento fspec_set tiene el siguiente formato: `[-vg |
-dg |
-fs |
-lvol |
-hostvol] src_file_spec[dest_file_spec] [{-destdg |
-destvg} dgname] [{-destlv |
-desthv} lvname]` ==== |
Cambiar el nombre |
|
Restaurar |
`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]]` |
Desconectar |
`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}]` |
Eliminar |