|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: ConvertTo-NaLun
NAME
ConvertTo-NaLun
SYNOPSIS
Create a LUN from a virtual hard disk (VHD or VHDX).
SYNTAX
ConvertTo-NaLun [-SourceVhd] <String> [-DestinationLun] <String> [-Reserved]
[[-Type] <String>] [-Controller <AbstractController>] [<CommonParameters>]
ConvertTo-NaLun -SourceVhdx <String> [-DestinationLun] <String> [-Reserved]
[[-Type] <String>] [-Controller <AbstractController>] [<CommonParameters>]
DESCRIPTION
Create a LUN from a virtual hard disk (VHD or VHDX). The virtual hard disk
file must reside on a Data ONTAP LUN. The path of the LUN to create must li
e on the same volume as the LUN containing the VHD file or the cmdlet will f
ail.
If the controller supplied in the Controller parameter is not the controller
containing the VHD file, the cmdlet consults the credentials cache and atte
mpts to connect via HTTPS. If credentials are not present in the credential
s cache, an attempt to connect via RPC is made. If a connection cannot be m
ade, the cmdlet will fail.
PARAMETERS
-SourceVhd <String>
Virtual hard disk file to create a new LUN from.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-DestinationLun <String>
The path to give the new LUN. The new LUN must reside in the same volum
e as the LUN containing the source VHD.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Reserved
If specified, the created LUN will have space reservation enabled.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
OS type to give the created LUN. If not specified, the created LUN will
have the type "windows_2008". Issue "help New-NaLun -Parameter Type" f
or more information on LUN OS types. The following types are supported:
windows_2008, hyper_v, linux, aix, hpux, netware, vmware, xen
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <AbstractController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SourceVhdx <String>
VHDX file from which to create a LUN.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.Types.Lun.LunInfo
NOTES
Category: host
-------------- Example 1 --------------
C:\PS>ConvertTo-NaLun E:\VM1.vhd /vol/vol4/fromVhd
Convert the VHD file VM1.vhd into a LUN.
Path TotalSize SizeUsed Protocol
Online Mapped Thin Comment
---- --------- -------- --------
------ ------ ---- -------
/vol/vol4/fromVhd 20.0 GB 136.6 MB windows_2008
True False True
-------------- Example 2 --------------
C:\PS>ConvertTo-NaLun -SourceVhdx F:\VHDX\disk1.vhdx -DestinationLun /vol/vo
l2/luns/disk1 -Type windows_2008
Create a LUN from the given VHDX file.
Path TotalSize SizeUsed Protocol
Online Mapped Thin Comment
---- --------- -------- --------
------ ------ ---- -------
/vol/vol2/luns/disk1 10.0 GB 75.6 MB windows_2008
True False True
RELATED LINKS
ConvertTo-NaVhd
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|