In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Basic commands for installing HYPER V Core SERVER- Hyper V 2012 R21. Basic commands Install cluster failover roles
Install-WindowsFeature -name Failover-Clustering -IncludeManagementTools
turn off the firewall
netsh advfirewall set allprofiles state off
Turn off IPv6
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters -Name DisabledComponents -PropertyType DWord -Value 0xffffffff
install SNMP
Add-WindowsFeature -Name SNMP-Service -IncludeAllSubFeature -IncludeManagementTools
Check the accuracy of the region and time before joining the domain, for example:
Set-Date -date "6/17/2018 5:10 AM
Make sure you have the latest Update Rollup, hotfixes installed, including critical patches.
https://social.technet.microsoft.com/wiki/contents/articles/20885.hyper-v-update-list-for-windows-server-2012-r2.aspx
Ensure that the latest network card drivers are installed. For example:
Tip: to check Fibre HBA driver versions, use "Get-WmiObject -class MSFC_FCAdapterHBAAttributes -computername MyTestServer -namespace "root\WMI" | Select-Object DriverVersion, FirmwareVersion, Manufacturer, Model, SerialNumber | Format-Table -AutoSize"
Scan available disks
"rescan" | diskpart
2. Network renaming of network cards, for example
Rename-NetAdapter -Name "Ethernet 5" -NewName iSCSI1
Configure NIC IP
$netadapter = Get-NetAdapter -Name iSCSI1
$netadapter | New-NetIPAddress -AddressFamily IPv4 -IPAddress 192.168.10.2 -PrefixLength 24 -Type Unicast
Configure DNS for network cards
Set-DnsClientServerAddress -InterfaceAlias -ServerAddresses ,
Jumbo frames enabled
Set-NetAdapterAdvancedProperty -Name iSCSI1 -RegistryKeyword "*JumboPacket" -RegistryValue 9014
Disable file and print sharing for iSCSI NIC-download NVSPbind: http://archive.msdn.microsoft.com/nvspbind/, copy to local server-run nvspbind.exe . List all network card information, enabled/disabled protocols. Find NIC ID (or check registry)-Disable file and print sharing: For example: nvspbind - d {913D8F46-BFC7-4359-A024-90485C276984} ms_server Update NIC binding order, Rules: iSCSI -bottom, cluster -middle,"NIC for external links" -top-View current order: nvspbind /o ms_tcpip-Move to top: nvspbind /++ "Local Area Connection" ms_tcpip-Move up once: nvspbind /+ "Local Area Connection" ms_tcpip-Move to bottom: "nvspbind /-- "iSCSI1" ms_tcpip"hvr.inf Create NIC Teaming:
New-NetLbfoTeam -name AdminTeam -TeamMembers VM1,VM2 -TeamingMode SwitchIndependent -LoadBalancingAlgorithm HyperVPort
Converged fabric switch:
''' New-VMSwitch "ConvergedSwitch" -NetAdapterName "ConvergedTeam" -MinimumBandwidthMode Weight -AllowManagementOS $false'''
''' Set-VMSwitch -Name "ConvergedSwitch" -DefaultFlowMinimumBandwidthWeight 0 '''
Join Virtual Network Card:Add-VMNetworkAdapter -ManagementOS -Name "LiveMigration" -SwitchName "ConvergingSwitch"Add-VMNetworkAdapter -ManagementOS -Name "ClusterCSV" -SwitchName "ConvergingSwitch"Set-VMNetworkAdapter -ManagementOS -Name "LiveMigration" -MinimumBandwidthWeight 50Set-VMNetworkAdapter -ManagementOS -Name "ClusterCSV" -MinimumBandwidthWeight 50New-NetIPAddress -InterfaceAlias "vEthernet (LiveMigration)" -IPAddress 10.40.1.123-PrefixLength "16"New-NetIPAddress -InterfaceAlias "vEthernet (ClusterCSV)" -IPAddress 10.30.1.133-PrefixLength "16" View weights for virtual NIC configuration: "Get-vmnetworkadapter -ManagementOS| fl"3. iSCSI Configuration Set-Service -Name MSiSCSI -StartupType AutomaticStart-Service MSiSCSIInstall-WindowsFeature Multipath-IOEnable-WindowsOptionalFeature -Online -Featured Name MultiPathIOEnable-MSDSMAutomatic Claim-BusType iSCSISet-MSDSMGlobalDefaultLoadBalancePolicy -Policy RSset-MPIOSetting-NewDiskTimeout 60Connecting to an iSCSI SAN: - New-IscsiTargetPortal -TargetPortalAddress 192.168.30.10 - Get-IscsiTarget | fl - Use 'iscsicpl' to configure iSCSI targets or, as an example, connect using something like: "Connect-IscsiTarget -NodeAddress iqn.2001-05.com.equallogic:8-cb2b76-66f2c8e4a-67859b190555933f-vm2012 -AuthenticationType ONEWAYCHAP -ChapUsername liquid_chap2012 -ChapSecret chappassword-IsMultipathEnabled $True -IsPersistent $True" - Initialize a disk, if it's new: "Get-Disk | Where partitionstyle -eq 'raw' | Initialize-Disk -PartitionStyle MBR -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel "VMs2012-2" -Confirm:$false"4. optical fiber arrangement - Install-WindowsFeature Multipath-IO - Enable-WindowsOptionalFeature -Online -FeatureName MultiPathIO - Set-MSDSMGlobalDefaultLoadBalancePolicy -Policy RR - Set-MPIOSetting -NewDiskTimeout 60 - Update-MPIOClaimedHW (and restart the server) - Launch mpiocpl. If the expected device (COMPELNT, for example) isn't in the devices list, click on the "Discover Multi-Paths" tab and add the FC SAN from the Others list (COMPELNT, for example). Restart the server. - To rescan available disks, use " "rescan" | diskpart " - Initialize a disk, if it's new: "Get-Disk | Where partitionstyle -eq 'raw' | Initialize-Disk -PartitionStyle MBR -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel "VMs2012-2" -Confirm:$false"
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.