Jump to content

DiskPart and Exdending


Recommended Posts

Posted

I just changed my array to a RAID 5 from RAID 1+0 by adding two more hard

drives to the two I already had. I am using one hard drive as a spare in the

array. I expanded, migrated and extended the array on the physical drives

successfully, and now I have to extend the virtual partition I have on the

Microsoft Server 2003 OS. Disk Management shows C drive with 33.91 GB

capacity with only 2.88 GB free space; E drive (data) with 4 MB capacity and

2 MB free space; and unallocated space of 33.91 GB. I want to extend my

small E drive to include most of the 33.91 GB of unallocated space by using

DiskPart. Below are the commands I entered to do this, but it obviously did

not work. What did I do wrong? I copied and pasted the command prompt

results.

 

Microsoft Windows [Version 5.2.3790]

© Copyright 1985-2003 Microsoft Corp.

 

C:\Documents and Settings\Administrator>diskpart.exe

 

Microsoft DiskPart version 5.2.3790.3959

Copyright © 1999-2001 Microsoft Corporation.

On computer: SWDC

 

DISKPART> list volume

 

Volume ### Ltr Label Fs Type Size

Status Info

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

--------

Volume 0 F LACIE USB 2 NTFS Partition 233 GB Healthy

Volume 1 D CD-ROM 0 B

Healthy

Volume 2 C NTFS Partition 34 GB

Healthy System

Volume 3 E Data NTFS Partition 4064 KB

Healthy

 

DISKPART> select volume 3

 

Volume 3 is the selected volume.

 

DISKPART> size=33,800

 

Microsoft DiskPart version 5.2.3790.3959

 

ADD - Add a mirror to a simple volume.

ACTIVE - Marks the current basic partition as active.

ASSIGN - Assign a drive letter or mount point to the selected volume.

AUTOMOUNT - Enables and disables automatic mounting of basic volumes.

BREAK - Break a mirror set.

CLEAN - Clear the configuration information, or all information, off

the disk.

CONVERT - Converts between different disk formats.

CREATE - Create a volume or partition.

DELETE - Delete an object.

DETAIL - Provide details about an object.

ATTRIBUTES - Manipulate volume attributes.

EXIT - Exit DiskPart

EXTEND - Extend a volume.

GPT - Assigns attributes to the selected GPT partition.

HELP - Prints a list of commands.

IMPORT - Imports a disk group.

INACTIVE - Marks the current basic partition as inactive.

LIST - Prints out a list of objects.

ONLINE - Online a disk that is currently marked as offline.

REM - Does nothing. Used to comment scripts.

REMOVE - Remove a drive letter or mount point assignment.

REPAIR - Repairs a RAID-5 volume with a failed member.

RESCAN - Rescan the computer looking for disks and volumes.

RETAIN - Place a retained partition under a simple volume.

SELECT - Move the focus to an object.

  • Replies 4
  • Created
  • Last Reply
Guest John Toner [MVP]
Posted

Re: DiskPart and Exdending

 

See the following:

 

http://support.microsoft.com/kb/325590

 

Regards,

John

 

Visit my blog: http://msmvps.com/blogs/jtoner

 

"rcir88" <rcir88@discussions.microsoft.com> wrote in message

news:7EA3145B-5129-4A8E-B70D-118457726D7C@microsoft.com...

> I just changed my array to a RAID 5 from RAID 1+0 by adding two more hard

> drives to the two I already had. I am using one hard drive as a spare in

the

> array. I expanded, migrated and extended the array on the physical drives

> successfully, and now I have to extend the virtual partition I have on the

> Microsoft Server 2003 OS. Disk Management shows C drive with 33.91 GB

> capacity with only 2.88 GB free space; E drive (data) with 4 MB capacity

and

> 2 MB free space; and unallocated space of 33.91 GB. I want to extend my

> small E drive to include most of the 33.91 GB of unallocated space by

using

> DiskPart. Below are the commands I entered to do this, but it obviously

did

> not work. What did I do wrong? I copied and pasted the command prompt

> results.

>

> Microsoft Windows [Version 5.2.3790]

> © Copyright 1985-2003 Microsoft Corp.

>

> C:\Documents and Settings\Administrator>diskpart.exe

>

> Microsoft DiskPart version 5.2.3790.3959

> Copyright © 1999-2001 Microsoft Corporation.

> On computer: SWDC

>

> DISKPART> list volume

>

> Volume ### Ltr Label Fs Type

Size

> Status Info

> ---------- --- ----------- ----- ---------- ------- ---------

> --------

> Volume 0 F LACIE USB 2 NTFS Partition 233 GB Healthy

> Volume 1 D CD-ROM 0 B

> Healthy

> Volume 2 C NTFS Partition 34

GB

> Healthy System

> Volume 3 E Data NTFS Partition 4064 KB

> Healthy

>

> DISKPART> select volume 3

>

> Volume 3 is the selected volume.

>

> DISKPART> size=33,800

>

> Microsoft DiskPart version 5.2.3790.3959

>

> ADD - Add a mirror to a simple volume.

> ACTIVE - Marks the current basic partition as active.

> ASSIGN - Assign a drive letter or mount point to the selected volume.

> AUTOMOUNT - Enables and disables automatic mounting of basic volumes.

> BREAK - Break a mirror set.

> CLEAN - Clear the configuration information, or all information, off

> the disk.

> CONVERT - Converts between different disk formats.

> CREATE - Create a volume or partition.

> DELETE - Delete an object.

> DETAIL - Provide details about an object.

> ATTRIBUTES - Manipulate volume attributes.

> EXIT - Exit DiskPart

> EXTEND - Extend a volume.

> GPT - Assigns attributes to the selected GPT partition.

> HELP - Prints a list of commands.

> IMPORT - Imports a disk group.

> INACTIVE - Marks the current basic partition as inactive.

> LIST - Prints out a list of objects.

> ONLINE - Online a disk that is currently marked as offline.

> REM - Does nothing. Used to comment scripts.

> REMOVE - Remove a drive letter or mount point assignment.

> REPAIR - Repairs a RAID-5 volume with a failed member.

> RESCAN - Rescan the computer looking for disks and volumes.

> RETAIN - Place a retained partition under a simple volume.

> SELECT - Move the focus to an object.

>

>

>

Posted

Re: DiskPart and Exdending

 

Thank you, but, if you notice the commands I entered, you'll see I followed

the MS article you cite. One thing I failed to mention, however, is that my

discs are basic type. I may need to convert to dynamic type. The article

states, "For Basic volumes, the unallocated space for the extension must be

the next contiguous space on the same disk." I'm not sure what they mean by

"same disk". This is an RAID 5 environment and though there are three

physical disks, there is only one logical drive on the array.

 

"John Toner [MVP]" wrote:

> See the following:

>

> http://support.microsoft.com/kb/325590

>

> Regards,

> John

>

> Visit my blog: http://msmvps.com/blogs/jtoner

>

> "rcir88" <rcir88@discussions.microsoft.com> wrote in message

> news:7EA3145B-5129-4A8E-B70D-118457726D7C@microsoft.com...

> > I just changed my array to a RAID 5 from RAID 1+0 by adding two more hard

> > drives to the two I already had. I am using one hard drive as a spare in

> the

> > array. I expanded, migrated and extended the array on the physical drives

> > successfully, and now I have to extend the virtual partition I have on the

> > Microsoft Server 2003 OS. Disk Management shows C drive with 33.91 GB

> > capacity with only 2.88 GB free space; E drive (data) with 4 MB capacity

> and

> > 2 MB free space; and unallocated space of 33.91 GB. I want to extend my

> > small E drive to include most of the 33.91 GB of unallocated space by

> using

> > DiskPart. Below are the commands I entered to do this, but it obviously

> did

> > not work. What did I do wrong? I copied and pasted the command prompt

> > results.

> >

> > Microsoft Windows [Version 5.2.3790]

> > © Copyright 1985-2003 Microsoft Corp.

> >

> > C:\Documents and Settings\Administrator>diskpart.exe

> >

> > Microsoft DiskPart version 5.2.3790.3959

> > Copyright © 1999-2001 Microsoft Corporation.

> > On computer: SWDC

> >

> > DISKPART> list volume

> >

> > Volume ### Ltr Label Fs Type

> Size

> > Status Info

> > ---------- --- ----------- ----- ---------- ------- ---------

> > --------

> > Volume 0 F LACIE USB 2 NTFS Partition 233 GB Healthy

> > Volume 1 D CD-ROM 0 B

> > Healthy

> > Volume 2 C NTFS Partition 34

> GB

> > Healthy System

> > Volume 3 E Data NTFS Partition 4064 KB

> > Healthy

> >

> > DISKPART> select volume 3

> >

> > Volume 3 is the selected volume.

> >

> > DISKPART> size=33,800

> >

> > Microsoft DiskPart version 5.2.3790.3959

> >

> > ADD - Add a mirror to a simple volume.

> > ACTIVE - Marks the current basic partition as active.

> > ASSIGN - Assign a drive letter or mount point to the selected volume.

> > AUTOMOUNT - Enables and disables automatic mounting of basic volumes.

> > BREAK - Break a mirror set.

> > CLEAN - Clear the configuration information, or all information, off

> > the disk.

> > CONVERT - Converts between different disk formats.

> > CREATE - Create a volume or partition.

> > DELETE - Delete an object.

> > DETAIL - Provide details about an object.

> > ATTRIBUTES - Manipulate volume attributes.

> > EXIT - Exit DiskPart

> > EXTEND - Extend a volume.

> > GPT - Assigns attributes to the selected GPT partition.

> > HELP - Prints a list of commands.

> > IMPORT - Imports a disk group.

> > INACTIVE - Marks the current basic partition as inactive.

> > LIST - Prints out a list of objects.

> > ONLINE - Online a disk that is currently marked as offline.

> > REM - Does nothing. Used to comment scripts.

> > REMOVE - Remove a drive letter or mount point assignment.

> > REPAIR - Repairs a RAID-5 volume with a failed member.

> > RESCAN - Rescan the computer looking for disks and volumes.

> > RETAIN - Place a retained partition under a simple volume.

> > SELECT - Move the focus to an object.

> >

> >

> >

>

>

>

Guest Edwin vMierlo [MVP]
Posted

Re: DiskPart and Exdending

 

If extending your filesystem is not done, you might want to use "extend

filesystem" command

Microsoft calls this "undocumented" but it actually documented here ;

http://support.microsoft.com/?id=832316

 

HTH,

Edwin

 

 

 

"rcir88" <rcir88@discussions.microsoft.com> wrote in message

news:66519BA0-0608-4D8C-889B-B762F0672B45@microsoft.com...

> Thank you, but, if you notice the commands I entered, you'll see I

followed

> the MS article you cite. One thing I failed to mention, however, is that

my

> discs are basic type. I may need to convert to dynamic type. The article

> states, "For Basic volumes, the unallocated space for the extension must

be

> the next contiguous space on the same disk." I'm not sure what they mean

by

> "same disk". This is an RAID 5 environment and though there are three

> physical disks, there is only one logical drive on the array.

>

> "John Toner [MVP]" wrote:

>

> > See the following:

> >

> > http://support.microsoft.com/kb/325590

> >

> > Regards,

> > John

> >

> > Visit my blog: http://msmvps.com/blogs/jtoner

> >

> > "rcir88" <rcir88@discussions.microsoft.com> wrote in message

> > news:7EA3145B-5129-4A8E-B70D-118457726D7C@microsoft.com...

> > > I just changed my array to a RAID 5 from RAID 1+0 by adding two more

hard

> > > drives to the two I already had. I am using one hard drive as a spare

in

> > the

> > > array. I expanded, migrated and extended the array on the physical

drives

> > > successfully, and now I have to extend the virtual partition I have on

the

> > > Microsoft Server 2003 OS. Disk Management shows C drive with 33.91 GB

> > > capacity with only 2.88 GB free space; E drive (data) with 4 MB

capacity

> > and

> > > 2 MB free space; and unallocated space of 33.91 GB. I want to extend

my

> > > small E drive to include most of the 33.91 GB of unallocated space by

> > using

> > > DiskPart. Below are the commands I entered to do this, but it

obviously

> > did

> > > not work. What did I do wrong? I copied and pasted the command

prompt

> > > results.

> > >

> > > Microsoft Windows [Version 5.2.3790]

> > > © Copyright 1985-2003 Microsoft Corp.

> > >

> > > C:\Documents and Settings\Administrator>diskpart.exe

> > >

> > > Microsoft DiskPart version 5.2.3790.3959

> > > Copyright © 1999-2001 Microsoft Corporation.

> > > On computer: SWDC

> > >

> > > DISKPART> list volume

> > >

> > > Volume ### Ltr Label Fs Type

> > Size

> > > Status Info

> > > ---------- --- ----------- ----- ---------- ------- ---------

> > > --------

> > > Volume 0 F LACIE USB 2 NTFS Partition 233 GB

Healthy

> > > Volume 1 D CD-ROM

0 B

> > > Healthy

> > > Volume 2 C NTFS Partition

34

> > GB

> > > Healthy System

> > > Volume 3 E Data NTFS Partition 4064

KB

> > > Healthy

> > >

> > > DISKPART> select volume 3

> > >

> > > Volume 3 is the selected volume.

> > >

> > > DISKPART> size=33,800

> > >

> > > Microsoft DiskPart version 5.2.3790.3959

> > >

> > > ADD - Add a mirror to a simple volume.

> > > ACTIVE - Marks the current basic partition as active.

> > > ASSIGN - Assign a drive letter or mount point to the selected

volume.

> > > AUTOMOUNT - Enables and disables automatic mounting of basic

volumes.

> > > BREAK - Break a mirror set.

> > > CLEAN - Clear the configuration information, or all information,

off

> > > the disk.

> > > CONVERT - Converts between different disk formats.

> > > CREATE - Create a volume or partition.

> > > DELETE - Delete an object.

> > > DETAIL - Provide details about an object.

> > > ATTRIBUTES - Manipulate volume attributes.

> > > EXIT - Exit DiskPart

> > > EXTEND - Extend a volume.

> > > GPT - Assigns attributes to the selected GPT partition.

> > > HELP - Prints a list of commands.

> > > IMPORT - Imports a disk group.

> > > INACTIVE - Marks the current basic partition as inactive.

> > > LIST - Prints out a list of objects.

> > > ONLINE - Online a disk that is currently marked as offline.

> > > REM - Does nothing. Used to comment scripts.

> > > REMOVE - Remove a drive letter or mount point assignment.

> > > REPAIR - Repairs a RAID-5 volume with a failed member.

> > > RESCAN - Rescan the computer looking for disks and volumes.

> > > RETAIN - Place a retained partition under a simple volume.

> > > SELECT - Move the focus to an object.

> > >

> > >

> > >

> >

> >

> >

Guest John Toner [MVP]
Posted

Re: DiskPart and Exdending

 

I did read the steps you used and you're missing the word "extend" from your

"DISKPART> size=33,800" step as it states in 325590. This should be

"DISKPART> extend size=33,800" instead. Just typing size= is a syntax error

and this is why diskpart is spewing out the help page.

 

Regards,

John

 

Visit my blog: http://msmvps.com/blogs/jtoner

 

"rcir88" <rcir88@discussions.microsoft.com> wrote in message

news:66519BA0-0608-4D8C-889B-B762F0672B45@microsoft.com...

> Thank you, but, if you notice the commands I entered, you'll see I

followed

> the MS article you cite. One thing I failed to mention, however, is that

my

> discs are basic type. I may need to convert to dynamic type. The article

> states, "For Basic volumes, the unallocated space for the extension must

be

> the next contiguous space on the same disk." I'm not sure what they mean

by

> "same disk". This is an RAID 5 environment and though there are three

> physical disks, there is only one logical drive on the array.

>

> "John Toner [MVP]" wrote:

>

> > See the following:

> >

> > http://support.microsoft.com/kb/325590

> >

> > Regards,

> > John

> >

> > Visit my blog: http://msmvps.com/blogs/jtoner

> >

> > "rcir88" <rcir88@discussions.microsoft.com> wrote in message

> > news:7EA3145B-5129-4A8E-B70D-118457726D7C@microsoft.com...

> > > I just changed my array to a RAID 5 from RAID 1+0 by adding two more

hard

> > > drives to the two I already had. I am using one hard drive as a spare

in

> > the

> > > array. I expanded, migrated and extended the array on the physical

drives

> > > successfully, and now I have to extend the virtual partition I have on

the

> > > Microsoft Server 2003 OS. Disk Management shows C drive with 33.91 GB

> > > capacity with only 2.88 GB free space; E drive (data) with 4 MB

capacity

> > and

> > > 2 MB free space; and unallocated space of 33.91 GB. I want to extend

my

> > > small E drive to include most of the 33.91 GB of unallocated space by

> > using

> > > DiskPart. Below are the commands I entered to do this, but it

obviously

> > did

> > > not work. What did I do wrong? I copied and pasted the command

prompt

> > > results.

> > >

> > > Microsoft Windows [Version 5.2.3790]

> > > © Copyright 1985-2003 Microsoft Corp.

> > >

> > > C:\Documents and Settings\Administrator>diskpart.exe

> > >

> > > Microsoft DiskPart version 5.2.3790.3959

> > > Copyright © 1999-2001 Microsoft Corporation.

> > > On computer: SWDC

> > >

> > > DISKPART> list volume

> > >

> > > Volume ### Ltr Label Fs Type

> > Size

> > > Status Info

> > > ---------- --- ----------- ----- ---------- ------- ---------

> > > --------

> > > Volume 0 F LACIE USB 2 NTFS Partition 233 GB

Healthy

> > > Volume 1 D CD-ROM

0 B

> > > Healthy

> > > Volume 2 C NTFS Partition

34

> > GB

> > > Healthy System

> > > Volume 3 E Data NTFS Partition 4064

KB

> > > Healthy

> > >

> > > DISKPART> select volume 3

> > >

> > > Volume 3 is the selected volume.

> > >

> > > DISKPART> size=33,800

> > >

> > > Microsoft DiskPart version 5.2.3790.3959

> > >

> > > ADD - Add a mirror to a simple volume.

> > > ACTIVE - Marks the current basic partition as active.

> > > ASSIGN - Assign a drive letter or mount point to the selected

volume.

> > > AUTOMOUNT - Enables and disables automatic mounting of basic

volumes.

> > > BREAK - Break a mirror set.

> > > CLEAN - Clear the configuration information, or all information,

off

> > > the disk.

> > > CONVERT - Converts between different disk formats.

> > > CREATE - Create a volume or partition.

> > > DELETE - Delete an object.

> > > DETAIL - Provide details about an object.

> > > ATTRIBUTES - Manipulate volume attributes.

> > > EXIT - Exit DiskPart

> > > EXTEND - Extend a volume.

> > > GPT - Assigns attributes to the selected GPT partition.

> > > HELP - Prints a list of commands.

> > > IMPORT - Imports a disk group.

> > > INACTIVE - Marks the current basic partition as inactive.

> > > LIST - Prints out a list of objects.

> > > ONLINE - Online a disk that is currently marked as offline.

> > > REM - Does nothing. Used to comment scripts.

> > > REMOVE - Remove a drive letter or mount point assignment.

> > > REPAIR - Repairs a RAID-5 volume with a failed member.

> > > RESCAN - Rescan the computer looking for disks and volumes.

> > > RETAIN - Place a retained partition under a simple volume.

> > > SELECT - Move the focus to an object.

> > >

> > >

> > >

> >

> >

> >


×
×
  • Create New...