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

Example 7: Creating a Smart Copy Using Snapshot Borrowing

Page 69 highlights

The following part shows the --broken option, which searches for broken Smart Copies. Because this requires ASMCLI to access the group, you are prompted for a password, # asmcli list smart-copy --broken Password for user user-voladmin on 192.0.2.20: ****** 0 Smart Copies found. If you delete the access credentials for a group, the Smart Copy creation operation will fail. In the last part of this example, group access records are deleted for Group3, and the subsequent attempt to create a Smart Copy fails. # asmcli delete group-access --name Group3 --user-name grpadmin Successfully deleted credentials for user "grpadmin" in group "Group3" in file /etc/equallogic/asm-group-access. # asmcli list group-access Group Access Group name: Group2 IP address: 192.x.x.xx User names: grpadmin Group name: Group3 IP address: 192.x.x.xy User names: Group name: Group4 IP address: 192.x.x.yy in (No stored password) 3 Groups defined. # asmcli create smart-copy --source /test10 Error: Cannot connect to Group3 (192.x.x.xy) : No credentials found Example 7: Creating a Smart Copy Using Snapshot Borrowing When snapshot borrowing is enabled and creating a Smart Copy snapshot exceeds the available snapshot reserve space, the asmcli command attempts to borrow free space. A message displays, either informing you that snapshot borrowing is being used or warning you that borrowed space has crossed the threshold limits. # asmcli create smart-copy --source /user1 Warning: Volume myvol-user1 on group9 (192.x.x.xy) is borrowing snapshot space Suggestion: Please increase snapshot reserve or delete unnecessary snapshots. For scheduled operations, consider using "keep count" (see "asmcli help schedule"). The mount point has been frozen. Created snapshot myvol-user1-2017-08-16-09:44:33.462.1 on group9 The mount point has been thawed. Successfully created a Smart Copy from 1 target. Example 8: Creating a Smart Copy That Exceeds Threshold Limits If creating a Smart Copy snapshot triggers snapshot borrowing that crosses the free pool space threshold and then another snapshot is created, older snapshots might be deleted to recover space. # asmcli create smart-copy --source /user1 Warning: Volume myvol-user1 on windev19grp (192.x.x.xy) is borrowing snapshot space Warning: Free space for snapshot borrowing on group group9 (192.x.x.xy) is running low (99.4% of free space is in use.) Additional snapshots may trigger the snapshot space recovery policy for this volume. Auto-Snapshot Manager Command Line Interface 69

  • 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

The following part shows the
--broken
option, which searches for broken Smart Copies. Because this requires ASMCLI to access the
group, you are prompted for a password,
# asmcli list smart-copy --broken
Password for user user-voladmin on 192.0.2.20: ******
0 Smart Copies found.
If you delete the access credentials for a group, the Smart Copy creation operation will fail. In the last part of this example, group access
records are deleted for Group3, and the subsequent attempt to create a Smart Copy fails.
# asmcli delete group-access --name Group3 --user-name
grpadmin
Successfully deleted credentials for user "grpadmin" in group "Group3"
in file /etc/equallogic/asm-group-access.
# asmcli list group-access
========================================================
Group Access
========================================================
Group name: Group2
IP address: 192.x.x.xx
User names: grpadmin
Group name: Group3
IP address: 192.x.x.xy
User names:
Group name: Group4
IP address: 192.x.x.yy
in (No stored password)
3 Groups defined.
# asmcli create smart-copy --source /test10
Error: Cannot connect to Group3 (192.x.x.xy) : No credentials found
Example 7: Creating a Smart Copy Using Snapshot Borrowing
When snapshot borrowing is enabled and creating a Smart Copy snapshot exceeds the available snapshot reserve space, the
asmcli
command attempts to borrow free space. A message displays, either informing you that snapshot borrowing is being used or warning you
that borrowed space has crossed the threshold limits.
# asmcli create smart-copy --source /user1
Warning: Volume myvol-user1 on group9 (192.x.x.xy) is borrowing snapshot space
Suggestion: Please increase snapshot reserve or delete unnecessary snapshots.
For scheduled operations, consider using "keep count" (see "asmcli help schedule").
The mount point has been frozen.
Created snapshot myvol-user1-2017-08-16-09:44:33.462.1 on group9
The mount point has been thawed.
Successfully created a Smart Copy from 1 target.
Example 8: Creating a Smart Copy That Exceeds Threshold Limits
If creating a Smart Copy snapshot triggers snapshot borrowing that crosses the free pool space threshold and then another snapshot is
created, older snapshots might be deleted to recover space.
# asmcli create smart-copy --source /user1
Warning: Volume myvol-user1 on windev19grp (192.x.x.xy) is borrowing snapshot space
Warning: Free space for snapshot borrowing on group group9 (192.x.x.xy)
is running low (99.4% of free space is in use.)
Additional snapshots may trigger the snapshot space recovery policy for this volume.
Auto-Snapshot Manager Command Line Interface
69