locked
Creating volumes on a disk located in a storage pool RRS feed

  • Question

  • What is the difference between New-Volume and New-Partition cmdlets?

    I tried to create a volume on a disk that is online with the New-Volume cmdlet, but it says No MSFT_StoragePool objects found, although I have written the name of my storage pool correctly

    The New-Partition cmdlet works, but I assume it doesnt care about any storagepools.

    In addition, I have to format it manually after creating the partition, I suppose the New-Volume does that automatically


    Freddy

    Sunday, May 1, 2016 8:58 PM

Answers

  • Hi Sir,

    >>This is the disk I would like to add a volume to (disk 3)

    This disk is a virtual disk created on existing storage pool , right ?

    "The New-Volume cmdlet creates a volume with the specified file system. The cmdlet manages the creation of the virtual disk with the specified size and resiliency setting, initializes the disk, creates a partition on it and formats the volume with the specified file system, including Cluster Shared Volumes (CSVs)."

    It seems that    command "new-volume" only creating one partition .

    Please try  to follow the Example 1 (use storage pool name) mentioned in  article below :

    " This command creates a new storage space in the CompanyData pool using the Mirror resiliency setting and fixed provisioning, and then formats the volume with the NTFS file system and assigns drive letter M. "

    https://technet.microsoft.com/en-us/library/dn454966(v=wps.630).aspx

    (This command was introduced in server 2012R2 and Win8.1)

    If you want to create partition on disk you may try to use new-partition:

    https://technet.microsoft.com/en-us/library/hh848714(v=wps.630).aspx

    Best Regards,

    Elton


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com .

    • Proposed as answer by Elton_Ji Wednesday, May 18, 2016 6:17 AM
    • Marked as answer by Elton_Ji Wednesday, May 25, 2016 8:15 AM
    Tuesday, May 3, 2016 10:21 PM

All replies

  • Hi Cesar, From memory, I haven't checked for a while the process is. (By cmdlet) 1. Create new-storagepool (from phsical disks) 2. Create a new-virtualdisk 3. Create a new-volume on the new vdisk, choosing file system etc. If you don't follow the above it is unlikely you will find any pool objects for the volume. I will do a run through a little later and confirm this. Yours Ed Please mark as an answer if helpful
    Monday, May 2, 2016 5:25 AM
  • These are the storage pools I have, but the primordial one does not have any disks anymore, I added them to the second pool


    This is the disk I would like to add a volume to

    After showing you what the name of my storage pool is, i try to run this command, please tell me if it is wrong

    It annoys me that I cannot get this to work!! :)

    EDIT: Interesting that on this page, Microsoft uses the method I have used, instead of the New-Volume cmdlet

    https://technet.microsoft.com/en-us/library/jj822938(v=ws.11).aspx#BKMK_Step3

    Monday, May 2, 2016 5:54 PM
  • Hi Sir,

    >>This is the disk I would like to add a volume to (disk 3)

    This disk is a virtual disk created on existing storage pool , right ?

    "The New-Volume cmdlet creates a volume with the specified file system. The cmdlet manages the creation of the virtual disk with the specified size and resiliency setting, initializes the disk, creates a partition on it and formats the volume with the specified file system, including Cluster Shared Volumes (CSVs)."

    It seems that    command "new-volume" only creating one partition .

    Please try  to follow the Example 1 (use storage pool name) mentioned in  article below :

    " This command creates a new storage space in the CompanyData pool using the Mirror resiliency setting and fixed provisioning, and then formats the volume with the NTFS file system and assigns drive letter M. "

    https://technet.microsoft.com/en-us/library/dn454966(v=wps.630).aspx

    (This command was introduced in server 2012R2 and Win8.1)

    If you want to create partition on disk you may try to use new-partition:

    https://technet.microsoft.com/en-us/library/hh848714(v=wps.630).aspx

    Best Regards,

    Elton


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com .

    • Proposed as answer by Elton_Ji Wednesday, May 18, 2016 6:17 AM
    • Marked as answer by Elton_Ji Wednesday, May 25, 2016 8:15 AM
    Tuesday, May 3, 2016 10:21 PM