Till disk do us part


Mijn pover homelab bestaat uit onder anderen uit een i5 NUC met 64Gb aan RAM en een QNAP met 4TB aan schijven, een HP Procurve switch ertussen. De NUC moet het rekenwerk doen met windows 2019 hyper-v core, de NAS is bedoeld als storage vooral (al ga ik ooit nog eens uitneuzelen wat dat apparaat allemaal nog meer kan). 

Na uitgezocht te hebben hoe je eenvoudig een iSCSI lun kunt configureren op de NAS was het de beurt aan mijn Nucje voor zijn stukje. De Windows 2019 Hyper-V core heeft zoals beloofd geen GUI, dus is vooral CLI only, met wat onderdelen die je gewoon kunt gebruiken als Notepad, configuratiescherm etc.

Het begint met de iSCSI Initiator Configuration Tool, die tegenwoordig native in Windows zit. Deze start je met de opdracht

C:\>iscsicpl

Afbeelding 1. iScscicpl. Klik Refresh. Klik Connect. Done.

Ik heb daarna eenvoudig de discovery gemaakt en de eerder gecreeƫrde LUN op mijn NAS connect. De verbinding kan nog met CHAP beveiligd worden, dat heb ik voor nu achterwege gelaten.

Okay computer. Hoe maken we hier een D:\ van? Diskpart!

C:\>diskpart

Microsoft DiskPart version 10.0.17763.1

Copyright (C) Microsoft Corporation.

On computer: 

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt

  --------  -------------  -------  -------  ---  ---

  Disk 0    Online          119 GB      0 B

  Disk 1    Offline        1024 GB  1024 GB

Okay. Hoe krijgen we de nieuwe disk online?

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> online disk

DiskPart successfully onlined the selected disk.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt

  --------  -------------  -------  -------  ---  ---

  Disk 0    Online          119 GB      0 B

* Disk 1    Online         1024 GB  1024 GB

BAM! Online. Nu een partitie aanmaken met

DISKPART> create partition primary

DiskPart has encountered an error: The media is write protected.

See the System Event Log for more information.

Ach ja. Pets.

DISKPART> attributes disk clear readonly

Disk attributes cleared successfully.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> list partition

  Partition ###  Type              Size     Offset

  -------------  ----------------  -------  -------

* Partition 1    Primary           1023 GB  1024 KB

Und jetzt, tijd voor wat meer volume.

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info

  ----------  ---  -----------  -----  ----------  -------  ---------  --------

  Volume 0         System Rese  NTFS   Partition    549 MB  Healthy    System

  Volume 1     C                NTFS   Partition    118 GB  Healthy    Boot

* Volume 2                      RAW    Partition   1023 GB  Healthy

DISKPART> select volume 2

Volume 2 is the selected volume.

DISKPART> format fs=ntfs

  100 percent completed

DiskPart successfully formatted the volume.

**Dit duurde heel lang**. Nu is het tijd om de schijf te koppelen.

DISKPART> assign

DiskPart successfully assigned the drive letter or mount point.

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info

  ----------  ---  -----------  -----  ----------  -------  ---------  --------

  Volume 0         System Rese  NTFS   Partition    549 MB  Healthy    System

  Volume 1     C                NTFS   Partition    118 GB  Healthy    Boot

* Volume 2     D                NTFS   Partition   1023 GB  Healthy

DISKPART> Exit

C:\>d:

D:\> YES!!!

Reacties

Populaire posts van deze blog

Breaking: Tailwind Traders acquiers Northwind!

Do it your way

Pension tension