Dell EqualLogic PS6210XS EqualLogic Host Integration Tools for Linux Version 1 - Page 90

asmcli unmount smart-copy Command Syntax, Example: Unmounting a Smart Copy

Page 90 highlights

asmcli unmount smart-copy Command Syntax The command syntax is as follows: # asmcli unmount smart-copy [--group-access-file file-location | -g] [--limit number ] [--nologout] [--output always | error] [--retry-count n | -r] [--retry-wait n | -w] [--user-name user-name | -u] Search option parameters also apply to this command. For information, see ASMCLI Search Options. The following table describes the optional command parameters. Table 32. Unmount Smart Copy Optional Command Parameters Parameter Abbr. --group-access-file -g Argument file-location Description Specifies the location of the group access file that contains the user names and encrypted passwords. --limit number Limits the number of Smart Copies ASM will unmount to this number. CAUTION: Use caution when limiting a large number of Smart Copies. You might inadvertently unmount all Smart Copies by specifying too large a number. --nologout --output none none none always | error --retry-count -w --retry-wait -r --user-name -u n n user-name Keeps sessions logged in after the volume is unmounted. Specifies whether or not to suppress output. For scheduled operations, it is often useful to suppress output to the console unless the operation fails (--output error). The default is --output always, indicating that output is always shown. Specifies the number of times to retry a failed operation. For example, if you are creating a Smart Copy snapshot of two separate volumes and one is offline, the operation will attempt to connect every n seconds Specifies the number of seconds to wait before retrying a failed operation. Specifies a particular user identity when multiple user names have been stored in the group access file. Example: Unmounting a Smart Copy To unmount a Smart Copy, you need to specify the Object ID. 1. Locate the object ID (Objectid) of the Smart Copy by listing the Smart Copies in very verbose mode: # asmcli list smart-copy --verbose 2 Smart Copies Source: hostname.mycompany.com : /source/VolA Snapshot: 14-Dec-2016 10:46:44.839798 Status: Mounted as /snapshots/VolA ObjectId:5-392e06-8244f99a7-88d5834731b41690 Directory: /var/lib/equallogic/asm/smart-copies/asm-le-hosta./sourcea-5d5e2d-874d8ac30-0d2df1dc89f8932c/ File: 20161214-154644.839798-5-392e06-8244f99a7-88d5834731b41690.bcd vola --> vola-2016-12-14-10:46:48.1421.1 on GroupA 1 Smart Copy found. 90 Auto-Snapshot Manager Command Line Interface

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127

asmcli unmount smart-copy Command Syntax
The command syntax is as follows:
# asmcli unmount smart-copy
[--group-access-file
file-location
| -g]
[--limit
number
]
[--nologout]
[--output always | error]
[--retry-count
n
| -r]
[--retry-wait
n
| -w]
[--user-name
user-name
| -u]
Search option parameters also apply to this command. For information, see
ASMCLI Search Options
.
The following table describes the optional command parameters.
Table 32. Unmount Smart Copy Optional Command Parameters
Parameter
Abbr.
Argument
Description
--group-access-file
-g
file-location
Specifies the location of the group access file that contains the user
names and encrypted passwords.
--limit
number
Limits the number of Smart Copies ASM will unmount to this number.
CAUTION:
Use caution when limiting a large number of Smart
Copies. You might inadvertently unmount all Smart Copies by
specifying too large a number.
--nologout
none
none
Keeps sessions logged in after the volume is unmounted.
--output
none
always | error
Specifies whether or not to suppress output. For scheduled operations, it
is often useful to suppress output to the console unless the operation fails
(
--output error
). The default is
--output always
, indicating
that output is always shown.
--retry-count
-w
n
Specifies the number of times to retry a failed operation. For example, if
you are creating a Smart Copy snapshot of two separate volumes and
one is offline, the operation will attempt to connect every
n
seconds
--retry-wait
-r
n
Specifies the number of seconds to wait before retrying a failed
operation.
--user-name
-u
user-name
Specifies a particular user identity when multiple user names have been
stored in the group access file.
Example: Unmounting a Smart Copy
To unmount a Smart Copy, you need to specify the Object ID.
1.
Locate the object ID (
Objectid
) of the Smart Copy by listing the Smart Copies in very verbose mode:
# asmcli list smart-copy --verbose 2
========================================================
Smart Copies
========================================================
Source: hostname.mycompany.com : /source/VolA
Snapshot: 14-Dec-2016 10:46:44.839798
Status: Mounted as /snapshots/VolA
ObjectId:5-392e06-8244f99a7-88d5834731b41690
Directory: /var/lib/equallogic/asm/smart-copies/asm-le-hosta./source-
a-5d5e2d-874d8ac30-0d2df1dc89f8932c/
File: 20161214-154644.839798-5-392e06-8244f99a7-88d5834731b41690.bcd
vola --> vola-2016-12-14-10:46:48.1421.1 on GroupA
1 Smart Copy found.
90
Auto-Snapshot Manager Command Line Interface