dsccommunity / StorageDsc

DSC resource module is used to manage storage on Windows Servers.
https://dsccommunity.org
MIT License
70 stars 51 forks source link

Disk- Creating a new disk only respects drive letter param #179

Closed eschrader closed 5 years ago

eschrader commented 5 years ago
    WaitForDisk Disk2
    {
         DiskId = 2
         RetryIntervalSec = 60
         RetryCount = 60
    }
    Disk FVolume
    {
         DiskId = 2
         DriveLetter = 'F'
         FSLabel = 'DATA'
         FSFormat = 'NTFS'
         AllocationUnitSize = 64KB
         DependsOn = '[WaitForDisk]Disk2'
    }

This code keeps creating a drive F (no label) in File System format RAW with full capacity. Why does it not apply the label? image

eschrader commented 5 years ago

Possibly related to #157

eschrader commented 5 years ago

Actually, I just waited about 27 minutes and its all fixed now it looks like. Maybe it just takes a long time?

\\"Message\\": \\"The PowerShell DSC resource \\u0027[Disk]FVolume\\u0027 with SourceInfo \\u0027::15::9::Disk\\u0027 threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.\\",\r\n

PlagueHO commented 5 years ago

Hi @eschrader - it shouldn't usually take that long to partition and format a disk. It usually takes under 10 seconds. Was the disk a virtual disk? Could you ask DSC to output the verbose logs as that should tell us the particular disk task that is taking so long (e.g. the initialization, partitioning, volume creation).

eschrader commented 5 years ago

Hi @eschrader - it shouldn't usually take that long to partition and format a disk. It usually takes under 10 seconds. Was the disk a virtual disk? Could you ask DSC to output the verbose logs as that should tell us the particular disk task that is taking so long (e.g. the initialization, partitioning, volume creation).

Yea I am using an Azure IaaS VM with a new data disk. I was using Azure Automation, so maybe that's why it took so long.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.

stale[bot] commented 5 years ago

This issue has been automatically closed because it is has not had activity from the community in the last 40 days.