Lab 4 File Server and Storage
Lab 4 File Server and Storage
1 Hr 49 Min Remaining
Instructions Resources Help 100%
Disclaimer
The content in this lab is presented as designed by Microsoft. Any bugs or errors contained in these
materials are maintained by Microsoft. The content provided has been adapted to LODS’
environment, optimizing user experience within the platform. If lab issues are identified that do not
pertain directly to LODS’ platform, you can send feedback to Microsoft Learning through the Partner
Resource Center at https://www.microsoft.com/en-us/learning/certification-and-training-help.aspx.
Be sure to revert the virtual machines (VMs) between each exercise. Due to most of the VMs being
Windows Server 2019 Server Core, the time it takes to revert and restart is faster than attempting to
undo changes made to the storage environment in the exercises.
9. Right-click or access the context menu for the Labfiles directory, and then select Give
access to. In the next context menu, select Specific people….
10. In the Type a name and then Click Add, or click the arrow to find someone text box,
type Users and click Add.
15. Note that the prompt changes with the PS cursor to let you know you are now in
Windows PowerShell.
powershell
Get-Disk
powershell
Initialize-Disk -Number 1
powershell
New-Partition -DiskNumber 1 -UseMaximumSize -DriveLetter M
powershell
Format-Volume -DriveLetter M -FileSystem ReFS
powershell
Exit
17. In the Command Prompt window, enter the following command, selecting Enter after
each line:
1. Return to SEA-ADM1
2. In the Server Manager console tree, right-click or access the context menu for File and
Storage Services, and then from the context menu select Disks
3. In the Disks pane, select SEA-SVR3, Number column 1.
4. In the Volumes pane, right-click or access the context menu for the M volume, and then
from the context menu, select Configure Data Deduplication.
powershell
Start-DedupJob m: -Type Optimization –Memory 50
13. Wait for five to ten minutes to allow the deduplication job to run.
16. To verify the Data Deduplication status, run the following commands, pressing Enter at
the end of each line:
powershell
Get-DedupStatus –Volume M: | fl
powershell
Get-DedupVolume –Volume M: |fl
powershell
Get-DedupMetadata –Volume M: |fl
17. In Server Manager, select File and Storage Services, select disk 1, and then select
Volume M.
Note: When you have finished the exercise, revert the VMs to their initial state.
Note: In the following command, drive Y is placeholder text only. The drive letter to use will be
returned to you in the results of the second command.
powershell
Initialize-Disk -Number 2
New-Partition -DiskNumber 2 -UseMaximumSize -AssignDriveLetter
Format-Volume -DriveLetter Y -FileSystem ReFS
(Y = Tên partition vừa mới tạo ở lệnh thứ 2)
6. Repeat step 5 for disk 3, replacing 2 with the number 3.
powershell
New-NetFirewallRule -DisplayName "iSCSITargetIn" -Profile "Any" -Direction
Inbound -Action Allow -Protocol TCP -LocalPort 3260
powershell
New-NetFirewallRule -DisplayName "iSCSITargetOut" -Profile "Any" -Direction
Outbound -Action Allow -Protocol TCP -LocalPort 3260
powershell
Exit-PSSEssion
2. In Server Manager, in the console tree, select File and Storage Services, and then
under Disks pane, select the SEA-DC1 server. Note that the server only contains the boot and
system volume drive C.
3. In the same pane, select the SEA-SVR3 server. Note that disks 2, 3, and 4 are still offline.
4. Right-click or access the context menu for each disk, and in the context menu,
select Bring online.
7. In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location page,
under the SEA-SVR3 server, select the E: volume, and then select Next.
8. In the Specify iSCSI virtual disk name page, in the Name text box, enter iSCSIDisk1, and
then select Next.
9. On the Specify iSCSI virtual disk size page, in the Size text box, enter 5. Leave all other
settings as they are, and then select Next.
10. On the Assign iSCSI target page, ensure the New iSCSI target radio button is selected,
and then select Next.
20. Create the second iSCSI virtual disk (F:), by repeating steps 4 through 9 and then step 17,
using the following settings:
o Storage Location: F:
o Name: iSCSIDisk2
o Disk size: 5 GB, Dynamically Expanding
o iSCSI target: iSCSIFarm
powershell
Start-Service msiscsi
powershell
iscsicpl
Note: The iscsicpl command will open an iSCSI Initiator Properties dialog box.
3. Notice the two new 5 GB disks on the SEA-DC1 server that are offline. Notice that the
bus entry is iSCSI.
powershell
Get-Disk
Note: Both disks are present and healthy, but offline. To use them, you need to initialize and
format them on SEA-DC1.
6. In the Windows PowerShell window, enter the following commands, selecting Enter
after each command:
powershell
Initialize-Disk -Number 1
powershell
New-Partition -DiskNumber 1 -UseMaximumSize -DriveLetter E
powershell
Format-Volume -DriveLetter E -FileSystem ReFS
8. Return to SEA-ADM1.
9. In server Manager, refresh the page in the Tasks drop-down, and note that both the
drives are now Online.
Note: When you have finished the exercise, revert the VMs to their initial state.
Task 1: Create a storage pool by using the iSCSI disks attached to the server
3. In the Disks pane, scroll down, and note that the SEA-SVR3 disks 1 through 4 are set
to Unknown.
4. Right-click or access the context menu for each offline disk, select Bring Online, and
then in the Bring Disk Online window, select Yes.
5. Verify that all disks are now online, and then in Server Manager, in the navigation pane,
select File and Storage Services, and then select Storage Pools.
9. On the Select physical disks for the storage pool page, select the check box for the
top three disks, and then select Next.
11. Select Close.
9. On the Specify the size of the virtual disk page, in the Specify size text box, enter 25,
and then select Next.
17. On the Assign to a drive letter or folder page, select Drive letter, select T, and then
select Next.
Task 3: Copy a file to the volume, and verify visibility in File Explorer
2. In the Command Prompt window, enter the following command, and then select Enter:
netsh advfirewall firewall set rule group="File and Printer Sharing" new
enable=Yes
3. Return to SEA-ADM1.
4. In the taskbar, select the File Explorer icon.
6. Right-click or access the context menu in the empty details pane, and then select New
Folder. Name the folder Test data, and then select Enter.
8. Right-click or access the context menu for the empty details pane, select New, and
then Text Document. Name the new document document1, and then select Enter.
4. In the PHYSICAL DISKS pane, right-click the top disk in the list, and then select Remove
disk.
8. Open Document1.txt, add some text, and then save and close the file.
7. Open Document1, add some additional text, and then save and close the file.
10. In the Command Prompt window, enter the following command, and then select Enter:
11. T:
12.
13. Cd "test data"
14.
dir
16. In the Command Prompt window, enter the following command, and then select Enter:
.\Document1.txt
17. When the document opens in Notepad, verify that all the text additions you made
earlier are present, and then close Notepad.
Note: When you have finished the exercise, revert the VMs to their initial state.
SEA-DC1
SEA-SVR1
SEA-SVR2
SEA-SVR3
SEA-ADM1
1. On SEA-ADM1, in Server Manager, in the console tree, select All Servers, and verify
that SEA-SVR1, SEA-SVR2, and SEA-SVR3 have a Manageability of Online – Performance
counters not started before continuing.
3. In the Disks pane, scroll until you find SEA-SVR3 disks 1 through 4, and note that they
are set to Unknown.
4. Right-click or access the context menu for each offline disk, select Bring Online, and
then in the Bring Disk Online window, select Yes.
Note: The script is divided into numbered steps. There are eight steps, and each step has a
number of commands. Run the commands by highlighting each command and pressing F8, one
after the other in accordance with the following instructions. Ensure each step finishes, that is,
goes from Stop operation (a red square) to a Run selection (green arrow) in the menu bar,
before starting the next.
9. Select the line in step 1, that is, highlight the entire line, starting with the first Invoke-
Command, and then select F8.
10. Wait until the installation finishes, and then verify that the output of the command
includes four lines (one for each server) with Success as True.
11. Select the second line in step 1, starting with second Invoke-Command, and then
select F8.
Note: When you start the second command to restart the servers, you can run the third
command to install the console without waiting for the second command's restarts to finish.
12. Select the third line in step 1, starting with Install, and then select F8.
13. Wait a few minutes while the servers restart and the Failover Cluster Manager tool is
added to SEA-ADM1.
14. Leave the Windows PowerShell ISE console open for the remainder of the exercise.
5. Verify that the output of the command only includes warnings and that the last line is a
validation report in HTML format.
4. There should be no output from the command, and ignore any warning message that
opens.
12. Verify that in the output of the command is the attribute FileSystemLabel, with a value
of CSV.
13. In the Failover Cluster Manager window, select Disks.
5. Verify the existence of S2D-SOFS. This also verifies that the command was successful.
10. Verify the existence of VM01. This also verifies that the command was successful.
2. In File Explorer, in the address bar, enter \\s2d-sofs\VM01, and then select Enter.
3. Create a new folder named VMFolder, and then open it.
5. At the Windows PowerShell command prompt, enter the following command, and then
select Enter:
powershell
Stop-Computer -ComputerName SEA-SVR3
7. In the Servers list, select SEA-SVR3.
11. In Failover Cluster Manager, select Disks, and then select Cluster Virtual Disk (CSV).
12. Verify that for the Cluster Virtual Disk (CSV), the Health Status is Warning,
and Operational Status is Degraded. (Operational Status might also display as Incomplete.)
14. In Microsoft Edge, in the Favorites menu, select the Windows Admin Center (WAC) tab.
Note: Initially, the connection under the current user will be denied.
19. In the Specify your credentials window, select the Use another account for this
connection radio button. In the Username text box, enter Contoso\Administrator, in
the Password text box, enter Pa55w.rd, and then select Enter.
20. Clear the check box for Also add servers in the cluster (they are already included), and
then select Add.
22. Verify that when the page loads, the Dashboard appears has an alert for SEA-
SVR3 being offline.
23. Start SEA-SVR3. (While SEA-SVR3 should start quickly, it may take a few minutes for the
alert to be removed.)
Congratulations!
You have successfully completed this Module, to mark the lab as complete click End.
Live Chat