Hello
According to the online help [1] , the command is very simple but I can not make it work, this is the output:
PS C:\Users\veeamadmin> Add-HP3Snapshot -Volume $snapvol -Name "Dell_esx_B_SS_1" -Description "snapshot 1"
Add-HP3Snapshot : Cannot bind parameter 'Volume'. Cannot convert the "System.Linq.Enumerable+WhereA
rrayIterator`1[Veeam.Backup.Core.CSanVolume]" value of type "System.Linq.Enumerable+WhereArrayItera
tor`1[[Veeam.Backup.Core.CSanVolume, Veeam.Backup.Core.Common, Version=7.0.0.0, Culture=neutral, Pu
blicKeyToken=bfd684de2276783a]]" to type "Veeam.Backup.Core.CSanVolume".
At line:1 char:24
+ Add-HP3Snapshot -Volume <<<< $snapvol -Name "Dell_esx_B_SS_1" -Description "snapshot 1"
+ CategoryInfo : InvalidArgument: (:) [Add-HP3Snapshot], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.SanPlugin.Hp3PAR.PowerSh
ell.AddHP3Snapshot
[1] http://helpcenter.veeam.com/backup/70/p ... pshot.html
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Oct 19, 2013 11:46 am
- Full Name: Gustavo Olivera
- Contact:
-
- Veeam Software
- Posts: 649
- Liked: 170 times
- Joined: Dec 10, 2012 8:44 am
- Full Name: Nikita Efes
- Contact:
Re: Help to snapshoot HP 3par
How do you get the value of $snapvol variable?
It seems that it has an incorrect type.
It seems that it has an incorrect type.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Oct 19, 2013 11:46 am
- Full Name: Gustavo Olivera
- Contact:
Re: Help to snapshoot HP 3par
Hi , thanks for the reply.
The variable snapvol the get:
PS C : \ Users \ veeamadmin > $ snapvol = "Dell_esx_B"
But eventually publish with variable with the name of the LUN get the same error
PS C:\Users\veeamadmin> Add-HP3Snapshot -Volume "Dell_esx_B" -Name "Dell_esx_B_SS_1" -Description "snapshot 1"
Add-HP3Snapshot : Cannot bind parameter 'Volume'. Cannot convert the "System.Linq.Enumerable+WhereA
rrayIterator`1[Veeam.Backup.Core.CSanVolume]" value of type "System.Linq.Enumerable+WhereArrayItera
tor`1[[Veeam.Backup.Core.CSanVolume, Veeam.Backup.Core.Common, Version=7.0.0.0, Culture=neutral, Pu
blicKeyToken=bfd684de2276783a]]" to type "Veeam.Backup.Core.CSanVolume".
At line:1 char:24
+ Add-HP3Snapshot -Volume <<<< "Dell_esx_B" -Name "Dell_esx_B_SS_1" -Description "snapshot 1"
+ CategoryInfo : InvalidArgument: (:) [Add-HP3Snapshot], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.SanPlugin.Hp3PAR.PowerSh
ell.AddHP3Snapshot
The variable snapvol the get:
PS C : \ Users \ veeamadmin > $ snapvol = "Dell_esx_B"
But eventually publish with variable with the name of the LUN get the same error
PS C:\Users\veeamadmin> Add-HP3Snapshot -Volume "Dell_esx_B" -Name "Dell_esx_B_SS_1" -Description "snapshot 1"
Add-HP3Snapshot : Cannot bind parameter 'Volume'. Cannot convert the "System.Linq.Enumerable+WhereA
rrayIterator`1[Veeam.Backup.Core.CSanVolume]" value of type "System.Linq.Enumerable+WhereArrayItera
tor`1[[Veeam.Backup.Core.CSanVolume, Veeam.Backup.Core.Common, Version=7.0.0.0, Culture=neutral, Pu
blicKeyToken=bfd684de2276783a]]" to type "Veeam.Backup.Core.CSanVolume".
At line:1 char:24
+ Add-HP3Snapshot -Volume <<<< "Dell_esx_B" -Name "Dell_esx_B_SS_1" -Description "snapshot 1"
+ CategoryInfo : InvalidArgument: (:) [Add-HP3Snapshot], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.SanPlugin.Hp3PAR.PowerSh
ell.AddHP3Snapshot
-
- Veeam Software
- Posts: 649
- Liked: 170 times
- Joined: Dec 10, 2012 8:44 am
- Full Name: Nikita Efes
- Contact:
Re: Help to snapshoot HP 3par
Do you have the storage containing this volume in the list of added to Backup console?
If yes, you should get the volume by name like that:
You could also specify additional parameters if you have several volumes with that name.
If not, you should add it's storage first, either via Backup console or via Powershell commandlet
If yes, you should get the volume by name like that:
Code: Select all
$snapvol = Get-HP3Volume | where {$_.name -match "Dell_esx_B"}
If not, you should add it's storage first, either via Backup console or via Powershell commandlet
Code: Select all
Add-HP3Storage
Who is online
Users browsing this forum: No registered users and 12 guests