기 능 일 지

2023 지방기능경기대회 2과제 (Storage Space Service, iSCSi Service) 본문

IT네트워크시스템/제2과제

2023 지방기능경기대회 2과제 (Storage Space Service, iSCSi Service)

EnergyKing Park 2023. 4. 9. 22:35

Hyper-v

※powershell 실행 

New-VHD -Path F:\1.vhdx -SizeBytes 10GB

New-VHD -Path F:\2.vhdx -SizeBytes 10GB

New-VHD -Path F:\3.vhdx -SizeBytes 10GB

New-VHD -Path F:\4.vhdx -SizeBytes 10GB

Add-VMHardDiskDrive -VMName vSRV -Path F:\1.vhdx

Add-VMHardDiskDrive -VMName vSRV -Path F:\2.vhdx

Add-VMHardDiskDrive -VMName vSRV -Path F:\3.vhdx

Add-VMHardDiskDrive -VMName vSRV -Path F:\4.vhdx

vSRV

※powershell 실행 

1..4 | foreach { Get-PhysicalDisk -deviceNumber $_ | get-disk | set-disk -isReadonly $false }

1..4 | foreach { Get-PhysicalDisk -deviceNumber $_ | get-disk | set-disk -isoffline $false }

1..4 | foreach { Get-PhysicalDisk -deviceNumber $_ | get-disk | initialize-disk -PartitionStyle GPT -passthru }

파일 및 저장소 서비스
새 저장소 풀
새 볼륨
파랑색 클릭

vSRV

※powershell 실행 

install-windowsfeature FS-iSCSITarget-server -includeManagementtools

New-IscsiServerTarget -TargetName "iSCSiTarget" -InitiatorId "IPAddress:192.168.0.1"

Set-IscsiServerTarget -TargetName "iSCSITarget" -TargetIqn iqn.iscsi

New-IscsiVirtualDisk -path "E:\iscsi.vhdx" -SizeBytes 10GB

Add-IscsiVirtualDiskTargetMapping -TargetName "iScsiTarget" -path "E:\iscsi.vhdx"

DC

#SCSI 디스크 하나 추가 ( 10GB )

※powershell 실행 

Start-Service -name MSISCSI

Set-Service -name MSISCSI -StartupType Automatic

new-IscsiTargetPortal -TargetPortalAddress “192.168.0.3”

Connect-iscsiTarget -NodeAddress iqn.iscsi -isPersistent $True

Set-Disk -Number 1 -isoffline $false

initialize-disk -number 1 -partitionstyle GPT

 New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter

Format-Volume -DriveLetter E -FileSystem NTFS -Force

Comments