GithubHelp home page GithubHelp logo

xdisk's Introduction

Build status

#xDisk has been deprecated and replaced by xStorage

#xDisk

The** xDisk** module is a part of the Windows PowerShell Desired State Configuration (DSC) Resource Kit, which is a collection of DSC Resources. This module contains the xDisk and xWaitforDisk resources. These resources enable you to wait for a disk to become available and then initialize, format, and bring it online using PowerShell DSC.

NOTE: This resource follows a process to detect the existance of a RAW disk, initialize the disk, create a volume of maximum size, and then format the new volume. Before beginning that operation, the disk is marked 'Online' and if it is set to 'Read-Only', that property is removed. While this is intended to be non-destructive, as with all expiremental resources the scripts contained should be thoroughly evaluated and well understood before implementing in a production environment or where disk modifications could result in lost data.

All of the resources in the DSC Resource Kit are provided AS IS, and are not supported through any Microsoft standard support program or service. The "x" in xDisk stands for experimental, which means that these resources will be fix forward and monitored by the module owner(s).

Resources

xDisk resource has following properties:

  • DiskNumber: Specifies the identifier for which disk to modify.
  • DriveLetter: Specifies the preffered letter to assign to the disk volume.

xWaitforDisk resource has following properties:

  • DiskNumber: Specifies the identifer for which disk to wait for.
  • RetryIntervalSec: Specifies the number of secods to wait for the disk to become available.
  • Count: The number of times to loop the retry interval while waiting for the disk.

Versions

1.0

  • Initial release with the following resources
    • xDisk
    • xWaitforDisk

Examples

Wait for disk 2 to become available, and then make the disk available as a new formatted volume.

Configuration DataDisk
{
    
    Import-DSCResource -ModuleName xDisk
 
    Node localhost
    {
        xWaitforDisk Disk2
        {
             DiskNumber = 2
             RetryIntervalSec = 60
             Count = 60
        }
        xDisk GVolume
        {
             DiskNumber = 2
             DriveLetter = 'G'
        }
    }
}
 
DataDisk -outputpath C:\DataDisk
Start-DscConfiguration -Path C:\DataDisk -Wait -Force -Verbose

Contributing

Please check out common DSC Resources contributing guidelines.

xdisk's People

Contributors

karolkaczmarek avatar vors avatar powershellteam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.