This discussion is archived
7 Replies Latest reply: Aug 6, 2012 4:35 AM by pradip010189 RSS

Create Disks for ASM

pradip010189 Newbie
Currently Being Moderated
Hello Friends,

I want to create disks for ASM installation.
I have query my disk using diskpart utility on my window server.


DISKPART> list disk

Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
* Disk 0 Online 68 GB 0 B

It displays 0B free on disk.

DISKPART> list partition

Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 27 GB 32 KB
Partition 2 Primary 41 GB 27 GB

In Partition 1 15GB free space and In partition 2 30GB free space available.

DISKPART> list volume

Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 E DVD-ROM 0 B Healthy
Volume 1 C NTFS Partition 27 GB Healthy System
Volume 2 D NTFS Partition 41 GB Healthy


I want to create new partition on disk. so how can i do this.??
Thanks in advance.

--
Pradip Patel
  • 1. Re: Create Disks for ASM
    Balazs Papp Expert
    Currently Being Moderated
    DISKPART> help select
    DISKPART> help shrink
    DISKPART> help create
    alternatively, you can use the GUI (Disk Management)
  • 2. Re: Create Disks for ASM
    pradip010189 Newbie
    Currently Being Moderated
    Hello balazs,

    Shrink is not command in diskpart utility.

    --
    Pradip Patel
  • 3. Re: Create Disks for ASM
    Balazs Papp Expert
    Currently Being Moderated
    what version of windows do you use?
    C:\windows\system32>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
    OS Name:                   Microsoft Windows 7 Home Premium
    OS Version:                6.1.7601 Service Pack 1 Build 7601
    
    C:\windows\system32>diskpart
    
    Microsoft DiskPart version 6.1.7601
    Copyright (C) 1999-2008 Microsoft Corporation.
    On computer: BALAGE-G560
    
    DISKPART> help shrink
    
        Reduces the size of the volume with focus by the specified amount. Makes
        free disk space available from unused space at the end of the volume.
    
    Syntax:  SHRINK [DESIRED=<N>] [MINIMUM=<N>] [NOWAIT] [NOERR]
            SHRINK QUERYMAX [NOERR]
    
        DESIRED=<N> Specifies the desired amount of space in megabytes (MB) to
                    reduce the size of the volume by. If a desired amount is not
                    specified, the volume will be reduced by the maximum amount of
                    free space available on the volume.
    
        MINIMUM=<N> Specifies the minimum amount of space in MB to reduce the size
                    of the volume by.
    
        QUERYMAX    Returns the maximum number of bytes that the volume can be
                    reduced by (the free space available on the volume). This
                    value may change if applications are currently accessing the
                    volume.
    
        NOWAIT      Forces the command to return immediately while the shrink
                    process is still in progress.
    
        NOERR       For scripting only. When an error is encountered, DiskPart
                    continues to process commands as if the error did not occur.
                    Without the NOERR parameter, an error causes DiskPart to exit
                    with an error code.
    
        If a MINIMUM amount is not specified, the volume will be reduced by either
        the DESIRED amount (if specified), or by the maximum amount of free space
        available on the volume. If a MINIMUM amount is specified but not enough
        free space is available, the command will fail.
    
        This command works on basic volumes, and on simple or spanned dynamic
        volumes. You can reduce the size of a volume only if it is formatted using
        the NTFS file system or if it does not have a file system.
    
        A volume must be selected for this operation to succeed.
    
        This command does not operate on OEM, ESP or recovery partitions.
    
    Examples:
    
        SHRINK DESIRED=500 MINIMUM=250
        SHRINK QUERYMAX
    
    DISKPART>
  • 4. Re: Create Disks for ASM
    pradip010189 Newbie
    Currently Being Moderated
    My windows diskpart version is 5.2.3790.3959
    check supportedd command for this below.


    DISKPART> help

    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.
  • 5. Re: Create Disks for ASM
    pradip010189 Newbie
    Currently Being Moderated
    and platform is:

    F:\>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
    OS Name: Microsoft(R) Windows(R) Server 2003 Standard x64 Edit ion
    OS Version: 5.2.3790 Service Pack 2 Build 3790

    Tell me is it possible to shrink on this platform !?
    is there any other way to create partition on my disk !?

    --
    Pradip Patel
  • 6. Re: Create Disks for ASM
    Balazs Papp Expert
    Currently Being Moderated
    older versions of diskpart (such as in Windows XP, Windows Server 2003) doesnt support the SHRINK operation
    you can try some other 3rd party tools for this
  • 7. Re: Create Disks for ASM
    pradip010189 Newbie
    Currently Being Moderated
    I got one link from web.

    http://www.partition-tool.com/resource/shrink-windows-server-2003-partition.htm

    using this tool we can shrink disk or disk partition.

    --
    Pradip Patel

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points