Está en la página 1de 10

1.

Laboratorio: Configuraci�n de almacenamiento local


Gui�n:

Su gerente le ha pedido que agregue espacio en disco a un servidor de archivos que


se ejecuta en una m�quina virtual. Esta m�quina virtual crecer� significativamente
en tama�o en los pr�ximos meses y es posible que necesite flexibilidad en sus
opciones de almacenamiento. Su gerente le ha pedido que optimice el tama�o del
cl�ster y el sector para el uso de m�quinas virtuales para acomodar archivos de
gran tama�o para el almacenamiento en m�quinas virtuales. Debe evaluar las mejores
opciones de almacenamiento y la facilidad de expansi�n para un posible uso futuro.

Siguiente ejercicio

2. Ejercicio 1: creaci�n y gesti�n de vol�menes


Tarea 1: crear un volumen y formato de disco duro para ReFS

Cambie a LON-SVR1 .

Haga clic con el bot�n derecho en Inicio y luego haga clic en Windows PowerShell
(Administrador) .

Para enumerar todos los discos disponibles que a�n no se han inicializado, en el
s�mbolo del sistema de Windows PowerShell, escriba el siguiente comando y luego
presione Entrar :
Get-Disk | Where-Object PartitionStyle -Eq "RAW"

Para inicializar el disco 2, en el s�mbolo del sistema de Windows PowerShell,


escriba el siguiente comando y luego presione Entrar :
Initialize-disk 2

Para revisar el tipo de tabla de particiones, en el s�mbolo del sistema de Windows


PowerShell, escriba el siguiente comando y luego presione Entrar :
Get-disk

Para crear un volumen de Sistema de archivos resistente (ReFS) utilizando todo el


espacio disponible en el disco 1, en el s�mbolo del sistema de Windows PowerShell,
escriba el siguiente comando y luego presione Entrar :
New-Partition -DiskNumber 2 -UseMaximumSize -AssignDriveLetter | Format-Volume
-NewFileSystemLabel "Simple" -FileSystem ReFS

En la barra de tareas, haga clic en Explorador de archivos .

Si recibe el mensaje, �desea formatearlo? , haga clic en Cancelar .

En la barra de tareas, haga clic en Explorador de archivos .


Pregunta : �Qu� letra de unidad se ha asignado al volumen reci�n creado?

Respuesta : Las respuestas pueden variar, pero se supone que es la unidad F.

Ejercicio anteriorSiguiente ejercicio

3. Ejercicio 1: creaci�n y gesti�n de vol�menes


Tarea 2: crear un volumen reflejado

Haga clic con el bot�n derecho en Inicio y luego haga clic en Administraci�n de
discos .
En la mitad inferior de la pantalla, despl�cese hacia abajo y haga clic con el
bot�n derecho en Disco 3 y luego haga clic en En l�nea .

Repita para el disco 4.

Cierre y vuelva a abrir Administraci�n de discos .

En el cuadro de di�logo Inicializar disco , haga clic en Aceptar para inicializar


los discos 3 y 4.

En el Disco 3, haga clic con el bot�n derecho en No asignado y luego haga clic en
Nuevo volumen reflejado .

En el Asistente para nuevo volumen reflejado , haga clic en Siguiente .

En la p�gina Seleccionar discos , en la lista disponible, haga clic en Disco 4 y


luego en Agregar> .

En el cuadro Seleccione la cantidad de espacio en MB , acepte el valor


predeterminado y luego haga clic en Siguiente .

En la p�gina Asignar letra de unidad o ruta , en el cuadro Asignar la siguiente


letra de unidad , haga clic en M y luego en Siguiente .

En la p�gina Dar formato al volumen , en el cuadro de texto Etiqueta de volumen ,


escriba MIRROR .

Seleccione la casilla de verificaci�n Realizar un formateo r�pido y luego haga clic


en Siguiente .

Haga clic en Finalizar para crear su volumen reflejado.

En el cuadro de di�logo Administraci�n de discos , haga clic en S� para convertir


ambos discos en discos din�micos.
Ejercicio anteriorSiguiente ejercicio

4. Ejercicio 2: Cambiar el tama�o de los vol�menes


Tarea 1: crear un volumen simple y cambiar su tama�o

Cambie a Windows PowerShell (administrador) .

En el s�mbolo del sistema de Windows PowerShell, escriba el siguiente comando y


luego presione Entrar :
Initialize-disk 5

En el s�mbolo del sistema de Windows PowerShell, escriba el siguiente comando y


luego presione Entrar :
Diskpart

En el s�mbolo del sistema, escriba el siguiente comando y luego presione Entrar :


List disk

En el s�mbolo del sistema, escriba el siguiente comando y luego presione Entrar :


Select disk 5

En el s�mbolo del sistema, escriba el siguiente comando y luego presione Entrar :


Convert dynamic
En el s�mbolo del sistema, escriba el siguiente comando y luego presione Entrar :
Create volume simple size=10000 disk=5

En el s�mbolo del sistema, escriba el siguiente comando y luego presione Entrar :


Assign letter=z

En el s�mbolo del sistema, escriba el siguiente comando y luego presione Entrar :


Format

Cambie a Administraci�n de discos. Verifique la presencia de un volumen NTFS en el


Disco 5 con un tama�o de aproximadamente 10 gigabytes (GB).

En el s�mbolo del sistema de Windows PowerShell, escriba el siguiente comando y


luego presione Entrar :
Extend size 10000

Cambie a Administraci�n de discos.

Verifique la presencia de un volumen NTFS en el Disco 5 con un tama�o de


aproximadamente 20 GB.
Ejercicio anteriorSiguiente ejercicio

5. Ejercicio 2: Cambiar el tama�o de los vol�menes


Tarea 2: Reducir un volumen

En el s�mbolo del sistema de Windows PowerShell, escriba el siguiente comando y


luego presione Entrar :
Shrink desired=15000

Cambie a Administraci�n de discos .

Verifique la presencia de un volumen NTFS en el Disco 5 con un tama�o de


aproximadamente 5 GB.

Cierre la ventana de Windows PowerShell (Admin) .


Ejercicio anteriorSiguiente ejercicio

6. Ejercicio 2: Cambiar el tama�o de los vol�menes


Tarea 3: Prep�rese para el pr�ximo ejercicio

En la computadora host, inicie Microsoft Hyper-V Manager .

En la lista de M�quinas virtuales , haga clic con el bot�n derecho en 20740C-LON-


DC1 y luego haga clic en Revertir .

En el cuadro de di�logo Revertir m�quina virtual , haga clic en Revertir .

Repita los pasos 2 y 3 para 20740C-LON-SVR1 .

Reinicie su computadora y seleccione 20740C-LON-HOST1 cuando se le solicite.

Inicie sesi�n como administrador con la contrase�a Pa55w.rd .


Ejercicio anteriorSiguiente ejercicio

7. Ejercicio 3: administraci�n de discos duros virtuales


Tarea 1: instalar el m�dulo Hyper-V
En LON-SVR1, haga clic en Inicio y luego en Administrador del servidor .

En el Administrador del servidor, haga clic en Agregar roles y caracter�sticas .

En el Asistente para agregar roles y caracter�sticas , en la p�gina Antes de


comenzar , haga clic en Siguiente .

En la p�gina Seleccionar tipo de instalaci�n , haga clic en Siguiente .

En la p�gina Seleccionar servidor de destino , haga clic en Siguiente .

En la p�gina Seleccionar roles de servidor , seleccione la casilla de verificaci�n


Hyper-V , haga clic en Agregar caracter�sticas y luego en Siguiente .

En la p�gina Seleccionar caracter�sticas , haga clic en Siguiente .

En la p�gina de Hyper-V , haga clic en Siguiente .

En la p�gina Crear conmutadores virtuales , haga clic en Siguiente .

En la p�gina Migraci�n de m�quinas virtuales , haga clic en Siguiente .

En la p�gina Tiendas predeterminadas , haga clic en Siguiente .

En la p�gina Confirmar selecciones de instalaci�n , seleccione Reiniciar el


servidor de destino autom�ticamente si es necesario , haga clic en S� y luego en
Instalar .
Nota: Es posible que su computadora se reinicie varias veces despu�s de la
instalaci�n de los componentes de Hyper-V.

Inicie sesi�n como administrador con la contrase�a Pa55w.rd .


Ejercicio anteriorSiguiente ejercicio

8. Ejercicio 3: administraci�n de discos duros virtuales


Tarea 2: crear un disco duro virtual

En LON-SVR1, haga clic con el bot�n derecho en Inicio y luego haga clic en Windows
PowerShell (Administrador) .

En el s�mbolo del sistema de Windows PowerShell, escriba el siguiente comando y


luego presione Entrar :
New-VHD -Path c:\sales.vhd -Dynamic -SizeBytes 10Gb | Mount-VHD -Passthru |
Initialize-Disk -Passthru |New-Partition -AssignDriveLetter -UseMaximumSize |
Format-Volume -FileSystem NTFS -Confirm:$false -Force
Nota: Si recibe un cuadro de di�logo emergente de Microsoft Windows que le solicita
que formatee el disco, ci�rrelo y contin�e.

Ejercicio anteriorSiguiente ejercicio

9. Ejercicio 3: administraci�n de discos duros virtuales


Tarea 3: Reconfigure el disco duro virtual

Nota: estos pasos son un duplicado de los pasos de alto nivel.


Para desmontar el disco duro virtual, en el s�mbolo del sistema de Windows
PowerShell, escriba el siguiente comando y luego presione Entrar :
Dismount-vhd C:\Sales.vhd

Para verificar las propiedades del disco duro virtual, en el s�mbolo del sistema de
Windows PowerShell, escriba el siguiente comando y luego presione Entrar :
Get-vhd C:\Sales.vhd

Pregunta : �Cu�l es el tama�o del sector f�sico?


Respuesta : Las respuestas variar�n, pero es probable que sean 512.

Para convertir a un archivo .vhdx, en el s�mbolo del sistema de Windows PowerShell,


escriba el siguiente comando y luego presione Entrar :
Convert-VHD -Path C:\Sales.vhd -DestinationPath c:\Sales.vhdx

Para cambiar el tama�o del sector, en el s�mbolo del sistema de Windows PowerShell,
escriba el siguiente comando y luego presione Entrar :
Set-VHD -Path c:\Sales.vhdx -PhysicalSectorSizeBytes 4096

Para verificar las propiedades del archivo .vhdx, en el s�mbolo del sistema de
Windows PowerShell, escriba el siguiente comando y luego presione Entrar :
Get-vhd C:\Sales.vhdx
Pregunta : �Cu�l es el tama�o del sector f�sico?

Respuesta : Las respuestas variar�n, pero es probable que sea 4096.

Para optimizar el archivo .vhdx, en el s�mbolo del sistema de Windows PowerShell,


escriba el siguiente comando y luego presione Entrar :
Optimize-VHD -Path c:\Sales.vhdx -Mode Full
Ejercicio anteriorSiguiente ejercicio

10. Ejercicio 3: administraci�n de discos duros virtuales


Tarea 4: Prep�rese para el pr�ximo m�dulo

Reinicie su computadora y, cuando se le solicite, elija Windows Server 2016.

Ejercicio anterior

[20740C] Module 02: Configuring Local Storage


1. Lab: Configuring local storage
Scenario:

Your manager has asked you to add disk space to a file server that is running on a
virtual machine. This virtual machine will potentially grow significantly in size
in the upcoming months and you might need flexibility in your storage options. Your
manager has asked you to optimize the cluster and sector size for virtual machines
usage to accommodate large file sizes for storage on virtual machines. You need to
assess the best options for storage and ease of expansion for potential future use.

Next Exercise
2. Exercise 1: Creating and managing volumes
Task 1: Create a hard disk volume and format for ReFS

Switch to LON-SVR1.

Right-click Start, and then click Windows PowerShell (Admin).

To list all the available disks that have yet to be initialized, at the Windows
PowerShell command prompt, type the following command, and then press Enter:
Get-Disk | Where-Object PartitionStyle -Eq "RAW"

To initialize disk 2, at the Windows PowerShell command prompt, type the following
command, and then press Enter:
Initialize-disk 2

To review the partition table type, at the Windows PowerShell command prompt, type
the following command, and then press Enter:
Get-disk

To create a Resilient File System (ReFS) volume by using all available space on
disk 1, at the Windows PowerShell command prompt, type the following command, and
then press Enter:
New-Partition -DiskNumber 2 -UseMaximumSize -AssignDriveLetter | Format-Volume
-NewFileSystemLabel "Simple" -FileSystem ReFS

On the taskbar, click File Explorer.

If you receive the prompt, Do you want to format it?, click Cancel.

On the taskbar, click File Explorer.


Question : What drive letter has been assigned to the newly created volume?

Answer : Answers might vary, but it is assumed to be drive F.

Previous ExerciseNext Exercise

3. Exercise 1: Creating and managing volumes


Task 2: Create a mirrored volume

Right-click Start, and then click Disk Management.

In the lower half of the display, scroll down and right-click Disk 3, and then
click Online.

Repeat for Disk 4.

Close and reopen Disk Management.

In the Initialize Disk dialog box, click OK to initialize disks 3 and 4.

On Disk 3, right-click Unallocated, and then click New Mirrored Volume.


In the New Mirrored Volume Wizard, click Next.

On the Select Disks page, in the available list, click Disk 4, and then click Add
>.

In the Select the amount of space in MB box, accept the default value, and then
click Next.

On the Assign Drive Letter or Path page, in the Assign the following drive letter
box, click M, and then click Next.

On the Format Volume page, in the Volume label text box, type MIRROR.

Select the Perform a quick format check box, and then click Next.

Click Finish to create your mirrored volume.

In the Disk Management dialog box, click Yes to convert both disks to dynamic
disks.
Previous ExerciseNext Exercise

4. Exercise 2: Resizing volumes


Task 1: Create a simple volume and resize it

Switch to Windows PowerShell (Admin).

At the Windows PowerShell command prompt, type the following command, and then
press Enter:
Initialize-disk 5

At the Windows PowerShell command prompt, type the following command, and then
press Enter:
Diskpart

At the command prompt, type the following command, and then press Enter:
List disk

At the command prompt, type the following command, and then press Enter:
Select disk 5

At the command prompt, type the following command, and then press Enter:
Convert dynamic

At the command prompt, type the following command, and then press Enter:
Create volume simple size=10000 disk=5

At the command prompt, type the following command, and then press Enter:
Assign letter=z

At the command prompt, type the following command, and then press Enter:
Format

Switch to Disk Management. Verify the presence of an NTFS volume on Disk 5 of size
approximately 10 gigabytes (GB).
At the Windows PowerShell command prompt, type the following command, and then
press Enter:
Extend size 10000

Switch to Disk Management.

Verify the presence of an NTFS volume on Disk 5 of size approximately 20 GB.


Previous ExerciseNext Exercise

5. Exercise 2: Resizing volumes


Task 2: Shrink a volume

At the Windows PowerShell command prompt, type the following command, and then
press Enter:
Shrink desired=15000

Switch to Disk Management.

Verify the presence of an NTFS volume on Disk 5 of size approximately 5 GB.

Close the Windows PowerShell (Admin) window.


Previous ExerciseNext Exercise

6. Exercise 2: Resizing volumes


Task 3: Prepare for the next exercise

On the host computer, start Microsoft Hyper-V Manager.

In the Virtual Machines list, right-click 20740C-LON-DC1, and then click Revert.

In the Revert Virtual Machine dialog box, click Revert.

Repeat steps 2 and 3 for 20740C-LON-SVR1.

Restart your computer and select 20740C-LON-HOST1 when prompted.

Sign in as Administrator with the password Pa55w.rd.


Previous ExerciseNext Exercise

7. Exercise 3: Managing virtual hard disks


Task 1: Install the Hyper-V module

On LON-SVR1, click Start, and then click Server Manager.

In Server Manager, click Add roles and features.


In the Add Roles and Features Wizard, on the Before you begin page, click Next.

On the Select installation type page, click Next.

On the Select destination server page, click Next.

On the Select server roles page, select the Hyper-V check box, click Add Features,
and then click Next.

On the Select features page, click Next.

On the Hyper-V page, click Next.

On the Create Virtual Switches page, click Next.

On the Virtual Machine Migration page, click Next.

On the Default Stores page, click Next.

On the Confirm installation selections page, select Restart the destination server
automatically if required, click Yes, and then click Install.
Note: Your computer might restart several times following installation of the
Hyper-V components.

Sign in as Administrator with the password Pa55w.rd.


Previous ExerciseNext Exercise

8. Exercise 3: Managing virtual hard disks


Task 2: Create a virtual hard disk

On LON-SVR1, right-click Start, and then click Windows PowerShell (Admin).

At the Windows PowerShell command prompt, type the following command, and then
press Enter:
New-VHD -Path c:\sales.vhd -Dynamic -SizeBytes 10Gb | Mount-VHD -Passthru |
Initialize-Disk -Passthru |New-Partition -AssignDriveLetter -UseMaximumSize |
Format-Volume -FileSystem NTFS -Confirm:$false -Force
Note: If you receive a Microsoft Windows pop-up dialog box prompting you to format
the disk, close it and continue.

Previous ExerciseNext Exercise

9. Exercise 3: Managing virtual hard disks


Task 3: Reconfigure the virtual hard disk

Note- These steps are a duplicate of the high-level steps.

To dismount the virtual hard disk, at the Windows PowerShell command prompt, type
the following command, and then press Enter:
Dismount-vhd C:\Sales.vhd

To check the properties of the virtual hard disk, at the Windows PowerShell command
prompt, type the following command, and then press Enter:
Get-vhd C:\Sales.vhd

Question :What is the physical sector size?


Answer : Answers will vary, but it is likely to be 512.

To convert to a .vhdx file, at the Windows PowerShell command prompt, type the
following command, and then press Enter:
Convert-VHD -Path C:\Sales.vhd -DestinationPath c:\Sales.vhdx

To change the sector size, at the Windows PowerShell command prompt, type the
following command, and then press Enter:
Set-VHD -Path c:\Sales.vhdx -PhysicalSectorSizeBytes 4096

To check the properties of the .vhdx file, at the Windows PowerShell command
prompt, type the following command, and then press Enter:
Get-vhd C:\Sales.vhdx
Question : What is the physical sector size?

Answer : Answers will vary, but it is likely to be 4096.

To optimize the .vhdx file, at the Windows PowerShell command prompt, type the
following command, and then press Enter:
Optimize-VHD -Path c:\Sales.vhdx -Mode Full
Previous ExerciseNext Exercise

10. Exercise 3: Managing virtual hard disks


Task 4: Prepare for the next module

Restart your computer, and when prompted, choose Windows Server 2016.

Previous Exercise

También podría gustarte