Remove-Datastore -Datastore openfiler-nfs2 -VMHost an. In order to remove a NFS datastore we can invoke the Remove-Datastore cmdlet to specify the datastore to remove on the ESXi host, where I am invoking the command without requiring user confirmation. Get-Datastore | where Īs below, we can confirm the new NFS datastore has been created. To create this datastore on all VMhosts in the cluster, I could use this command: New-Datastore -Nfs -VMHost (Get-VMHost Select-Object -ExpandProperty Name) -Name 'NewDatastore' -Path '/vol/NewDataStore' -NfsHost 192.168.131. To confirm the NFS datastore has been create we can invoke the Get-Datastore cmdlet to retrieve a collection of datastore where the type is ‘NFS’. As I alluded to earlier, typically you are going to want to add a datastore to all ESXi hosts at once. New-Datastore -VMHost -Nfs -Name openfiler-nfs2 -NfsHost 10.0.0.6 -Path /mnt/nfs/nfs2/vmfs/ NAS volume openfiler-nfs2 deleted.Īlternatively using PowerCLI we can invoke the New-Datastore cmdlet to create a new NFS datastore on the ESXi Host ‘’. To which on deletion you will receive confirmation as below. We can remove the NFS datastore by invoking the ‘esxcfg-nas -d’ and specifying the datastore name. Openfiler-nfs2 is /mnt/nfs/nfs2/vmfs/ from 10.0.0.6 mounted available Once created, you should receive confirmation the NAS datastore has been created and connected as below: Connecting to NAS volume: openfiler-nfs2 In this example I will look at creating an NFS datastore using both esxcfg command line interface and PowerCLI to which I will use the following parameters.īy connecting to an ESXi hosts console session we can invoke the esxcfg command line interface to create the new NFS datastore by invoking the esxcfg-nas switch.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |