FreeNAS 9.10

Changed out NAS version to FreeNAS 9.10
Documented FreeNAS build
pull/45/head
DemitasseNZ 2016-07-25 07:00:03 +12:00
parent 48804a4758
commit aa8fd39877
3 changed files with 118 additions and 0 deletions

View File

@ -339,6 +339,7 @@ If ($SRM -ne $True){
if ($CreateDS) { if ($CreateDS) {
Write-BuildLog "Creating iSCSI datastores." Write-BuildLog "Creating iSCSI datastores."
$iSCSILUNs = get-scsilun -vmhost $VMHost -CanonicalName "t10.*" $iSCSILUNs = get-scsilun -vmhost $VMHost -CanonicalName "t10.*"
if ($iSCSILUNs -eq $Null) {$iSCSILUNs = get-scsilun -vmhost $VMHost -CanonicalName "naa.*"}
if ($vmhostobj.version.split(".")[0] -ne "4") { if ($vmhostobj.version.split(".")[0] -ne "4") {
if (((Get-Datastore | where {$_.Name -eq "iSCSI1"}) -eq $null) ) { if (((Get-Datastore | where {$_.Name -eq "iSCSI1"}) -eq $null) ) {
$null = New-Datastore -VMHost $VMHost -Name iSCSI1 -Path $iSCSILUNs[0].CanonicalName -Vmfs -FileSystemVersion 5 $null = New-Datastore -VMHost $VMHost -Name iSCSI1 -Path $iSCSILUNs[0].CanonicalName -Vmfs -FileSystemVersion 5

117
SRC/NAS/NASBuild.md Normal file
View File

@ -0,0 +1,117 @@
# NAS VM Build for AutoLab #
Using FreeNAS V 9.10
## VM Hardware Config ##
1 vCPU
512MB RAM
Boot Disk 8GB IDE
NFS Disk 80GB SCSI
iSCSI Disk 200GB SCSI
1 NIC on VMNet3
## Disk Config ##
NFS disk mounts as /mnt/LABVOL
iSCSI disk mounts as /mnt/iSCSI
## Services ##
Enabled Services
- CIFS
- iSCSI
- NFS
- SSH
## Network Config ##
**Interface Name:** Management
**IP Address:** 192.168.199.7
**Netmask:** 255.255.255.0
**Alias IP Address:** 172.17.199.7
**Alias Netmask:** 255.255.255.0
**Default Route:** 192.168.199.2
**Name Server:** Leave Blank
## SSH Config ##
- Allow root login with password
Open SSH connection as root
Create folders:
- /mnt/LABVOL/NFS01
- /mnt/LABVOL/NFS02
- /mnt/LABVOL/NFS03
- /mnt/LABVOL/NFS04
- /mnt/LABVOL/Build
Change permissions on Build to allow everyone RW
## NFS Config ##
**/mnt/LABVOL**
- All Dircetories Shared
- No network restrictions
**Sub Folders**
- Build
- NFS01
- NFS02
- NFS03
- NFS04
## CIFS Config ##
**/mnt/LABVOL/Build**
- Exported
- Browseable
- Allow guest access
## iSCSI Config ##
**File Extents**
**Name:** iSCSI1
- **Path:** /mnt/iSCSI/iSCSi1
- **Size:** 60GB
**Name:** iSCSI2
- **Path:** /mnt/iSCSI/iSCSi2
- **Size:** 30GB
**Name:** iSCSI3
- **Path:** /mnt/iSCSI/iSCSi3
- **Size:** 30GB
**Name:** iSCSI4
- **Path:** /mnt/iSCSI/iSCSi4
- **Size:** 30GB
**Targets**
- One Target per extent
- Target Name matches Extent name
**Portal**
- **Name: ** IP Storage
- **IP Address:** 172.17.199.7