|
1 | 1 | #requires -Version 3
|
2 | 2 | function Get-RubrikVgfClusterStorage
|
3 | 3 | {
|
4 |
| - <# |
5 |
| - .SYNOPSIS |
6 |
| - Returns cluster free space in the case of Volume Group format upgrade |
| 4 | +<# |
| 5 | + .SYNOPSIS |
| 6 | + Returns cluster free space in the case of Volume Group format upgrade |
7 | 7 |
|
8 |
| - .DESCRIPTION |
9 |
| - The Get-RubrikVgfClusterStorage cmdlet is used to return projected space consumption |
10 |
| - on any number of volume groups if they are migrated to use the new format, and the |
11 |
| - cluster free space before and after the migration. If no Volume Group ID or list of |
12 |
| - ID is given, it will report the projected space consumption of migrating all Volume |
13 |
| - Groups that are currently using the old format. |
| 8 | + .DESCRIPTION |
| 9 | + The Get-RubrikVgfClusterStorage cmdlet is used to return projected space consumption |
| 10 | + on any number of volume groups if they are migrated to use the new format, and the |
| 11 | + cluster free space before and after the migration. If no Volume Group ID or list of |
| 12 | + ID is given, it will report the projected space consumption of migrating all Volume |
| 13 | + Groups that are currently using the old format. |
14 | 14 |
|
15 |
| - .NOTES |
16 |
| - Written by Feng Lu for community usage |
17 |
| - github: fenglu42 |
| 15 | + .NOTES |
| 16 | + Written by Feng Lu for community usage |
| 17 | + github: fenglu42 |
18 | 18 |
|
19 |
| - .LINK |
20 |
| - https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/get-rubrikvgfclusterstorage |
| 19 | + .LINK |
| 20 | + https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/get-rubrikvgfclusterstorage |
21 | 21 |
|
22 |
| - .EXAMPLE |
23 |
| - Get-RubrikVgfClusterStorage -VGList VolumeGroup:::e0a04776-ab8e-45d4-8501-8da658221d74, VolumeGroup:::9136a7ef-4ad2-4bb9-bf28-961fb74d4322 |
| 22 | + .EXAMPLE |
| 23 | + Get-RubrikVgfClusterStorage -VGList VolumeGroup:::e0a04776-ab8e-45d4-8501-8da658221d74, VolumeGroup:::9136a7ef-4ad2-4bb9-bf28-961fb74d4322 |
24 | 24 |
|
25 |
| - This will return projected space consumption on volume groups within the given Volume Group ID list, and cluster free space before and after migration. |
| 25 | + This will return projected space consumption on volume groups within the given Volume Group ID list, and cluster free space before and after migration. |
26 | 26 |
|
27 |
| - .EXAMPLE |
28 |
| - Get-RubrikVgfClusterStorage |
| 27 | + .EXAMPLE |
| 28 | + Get-RubrikVgfClusterStorage |
29 | 29 |
|
30 |
| - This will return projected space consumption of migrating all old-format volume groups on the Rubrik cluster, and cluster free space before and after migration. |
| 30 | + This will return projected space consumption of migrating all old-format volume groups on the Rubrik cluster, and cluster free space before and after migration. |
31 | 31 |
|
32 |
| - .EXAMPLE |
33 |
| - Get-RubrikVgfClusterStorage -Hostname 'Server1' |
| 32 | + .EXAMPLE |
| 33 | + Get-RubrikVgfClusterStorage -Hostname 'Server1' |
34 | 34 |
|
35 |
| - This will return projected space consumption of migrating all old-format volume groups from host "Server1", and cluster free space before and after migration. |
| 35 | + This will return projected space consumption of migrating all old-format volume groups from host "Server1", and cluster free space before and after migration. |
36 | 36 |
|
37 |
| - .EXAMPLE |
38 |
| - Get-RubrikVgfClusterStorage -Hostname 'Server1' -SLA Gold |
| 37 | + .EXAMPLE |
| 38 | + Get-RubrikVgfClusterStorage -Hostname 'Server1' -SLA Gold |
39 | 39 |
|
40 |
| - This will return projected space consumption of migrating all old-format volume groups of "Server1" that are protected by the Gold SLA Domain, and cluster free space before and after migration. |
| 40 | + This will return projected space consumption of migrating all old-format volume groups of "Server1" that are protected by the Gold SLA Domain, and cluster free space before and after migration. |
41 | 41 |
|
42 |
| - .EXAMPLE |
43 |
| - Get-RubrikVgfClusterStorage -Relic |
| 42 | + .EXAMPLE |
| 43 | + Get-RubrikVgfClusterStorage -Relic |
44 | 44 |
|
45 |
| - This will return projected space consumption of migrating all old-format, removed volume groups that were formerly protected by Rubrik, and cluster free space before and after migration. |
| 45 | + This will return projected space consumption of migrating all old-format, removed volume groups that were formerly protected by Rubrik, and cluster free space before and after migration. |
46 | 46 |
|
47 |
| - .EXAMPLE |
48 |
| - Get-RubrikVgfClusterStorage -FailedLastSnapshot |
| 47 | + .EXAMPLE |
| 48 | + Get-RubrikVgfClusterStorage -FailedLastSnapshot |
49 | 49 |
|
50 |
| - This will return projected space consumption of migrating all old-format volume groups that needs to be migrated to use fast VHDX format since they have failed the latest snapshot using the legacy backup format, and cluster free space before and after migration. |
| 50 | + This will return projected space consumption of migrating all old-format volume groups that needs to be migrated to use fast VHDX format since they have failed the latest snapshot using the legacy backup format, and cluster free space before and after migration. |
51 | 51 |
|
52 |
| - # UsedFastVhdx not a param |
53 |
| - .EXAMPLE |
54 |
| - Get-RubrikVgfClusterStorage -UsedFastVhdx false |
55 |
| -
|
56 |
| - This will return projected space consumption on volume groups that did not use fast VHDX format in the latest snapshot. |
57 |
| -
|
58 |
| - .EXAMPLE |
59 |
| - Get-RubrikVgfClusterStorage -Id VolumeGroup:::205b0b65-b90c-48c5-9cab-66b95ed18c0f |
60 |
| - |
61 |
| - This will return projected space consumption for the specified VolumeGroup ID, and 0 if this Volume Group uses fast VHDX format (no need for migration). |
62 |
| - #> |
| 52 | + .EXAMPLE |
| 53 | + Get-RubrikVgfClusterStorage -Id VolumeGroup:::205b0b65-b90c-48c5-9cab-66b95ed18c0f |
| 54 | + |
| 55 | + This will return projected space consumption for the specified VolumeGroup ID, and 0 if this Volume Group uses fast VHDX format (no need for migration). |
| 56 | +#> |
63 | 57 |
|
64 | 58 | [CmdletBinding()]
|
65 | 59 | Param(
|
|
0 commit comments