ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

extending partition size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • extending partition size

    **NOTE this doesnt work on a system volume!
    @#%@#%@#%@#% thats what I need to increase the size of but I though it might interest
    someone here.

    Microsoft has a tool named Diskpart.exe which can be used to increase the size
    of an existing data partition.

    Ever ran out of disk space on a particular partition / volume with ample of free
    space in the server? If yes, the only options are to either backup the data, break
    partitions, and recreate them again with more appropriate size, or to figure out
    ways in which the existing partition which is running out of space can be extended.
    There have been non-Microsoft tools available in the market to extend the partition.
    A similar tool from Microsoft was much desired for uniformity of the tools by a single
    manufacturer.

    Diskpart.exe is a tool introduced by Microsoft, to extend the data volumes in
    Windows 2000, Windows XP and Windows 2003.

    It is a command line utility to extend the existing partitions by using the unallocated
    space displayed in Disk Management.

    Diskpart.exe can be used to extend both Basic as well as Dynamic partitions.
    When extending a NTFS partition, Microsoft recommends to perform the action in
    Safe Mode or Active Directory Restore Mode in order to prevent the open handles
    to the drive from causing to fail the process.

    There are some requirements for extending the partitions by using the Diskpart.exe
    utility with the ‘extend’ command:

    PHP Code:
    The volume must be formatted with the NTFS file system
    PHP Code:
    For Basic volumesthe unallocated space for the extension must be the next 
    contiguous space on the same disk
    . For exampleconsider Fneeds to be extended 
    and there are 3 Hard Disks on the serverFis on the second disk and the unallocated 
    free space is on the third disk
    This does not satisfies the condition for running the 
    Diskpart utility with the extend command
    Also if the F: and the unallocated space 
    are in the same drive
    but there is another partition created in between them
    does not meet the requirement
    PHP Code:
    For Dynamic Volumesthe unallocated space can be any empty space on any 
    Dynamic disk on the system

    PHP Code:
    Only the extension of data volumes is supportedSystem or boot volumes may 
    be blocked from being extended
    , and you may receive the following error:
    Diskpart failed to extend the volumePlease make sure the volume is valid for extending 
    PHP Code:
    You cannot extend the partition if the system page file is located on the partition
    Move the page file to a partition that you do not wish to extend
    Following are the steps to extend the partition using Diskpart:

    1. At a command prompt, type diskpart.exe.

    2. Type list volume to display the existing volumes on the computer.

    3. Type Select volume volume number where volume number is number of the volume
    that you want to extend.

    4. Type extend [size=n] [disk=n] [noerr] . The following describes the parameters:

    size=n

    The space, in megabytes (MB), to add to the current partition.
    If you do not specify a size, the disk is extended to take up all of the
    next contiguous unallocated space.

    disk=n

    The dynamic disk on which to extend the volume. Space equal to size=n
    is allocated on the disk. If no disk is specified, the volume is extended
    on the current disk.

    noerr

    For scripting only. When an error is thrown, this parameter specifies that
    Diskpart continue to process commands as if the error did not occur.
    Without the noerr parameter, an error causes Diskpart to quit with an error code.

    5. Type exit to quit Diskpart.exe.

    Diskpart will notify about the successful completion of the command and the space
    will be added to the existing partition.

    There is a special condition when extending a Simple Volume on a Dynamic Disk in
    Windows 2000 and Windows XP. If the volume was created originally in the Basic Disk
    and then the disk was upgraded to a Dynamic disk, the volume cannot be extended.
    However, if the disk was already Dynamic when the volume was created, then
    Diskpart can be run successfully. The above condition applies only to Simple
    Volumes and not the Striped Sets and the rest. This condition was removed from
    Windows 2003 and does not apply in its case.

    Diskpart comes built-in with Windows 2003 and Windows XP. However, for
    Windows 2000, the utility needs to be downloaded from Microsoft’s web site.

    Diskpart can also be used to perform other disk related tasks like adding disks
    to or breaking a mirror, making a particular partition active, assign drive letters
    to partitions, converting basic disks to dynamic and empty dynamic disks to
    basic and more.
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

  • #2
    Re: extending partition size

    People have been doing this for eons with Partition Magic and it's visual.

    Thanx for the infor Jamie. Where did you get thisn from?
    Bill
    "A good friend will bail you out of jail,
    A true friend would be sitting beside you saying,
    'Wow, that was fun.'"

    Comment


    • #3
      Re: extending partition size

      Ill give you a half dollar if you can partition a 2003 server using partition magic......

      Google is your friend


      We have a remote company with the c drive partitioned to 7 gig .........
      ummmm DUMB!!!! DUMB!! and really DUMB!
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: extending partition size

        I don't do PC stuff. I have a 2003 server at home and several XP desktops/notebooks, it just shares/stores documents/pics, gets backed up once a week for off-site. I don't get into all that Windoze stuff. "Not my job"., thank god.

        Thnx
        Bill
        "A good friend will bail you out of jail,
        A true friend would be sitting beside you saying,
        'Wow, that was fun.'"

        Comment


        • #5
          Re: extending partition size

          Hmmm...windows repartitioning? I'm not sure I trust that. They can't even get their hotmail stuff right. How are they going to handle this?

          I'm gonna suggest waiting for Diskpart.exe SP1 when they fix the first round of bugs.

          PS...Partitioning 2003 server is easy... here are the steps...


          Step 1. Open CD tray.
          Step 2. Insert favorite Linux Server Distro
          Step 3. Close CD tray.
          Step 4. Install Linux Server.

          All done. Your 2003 Server is now repartitioned just the way you like it. Make sure you back up first!
          Your future President
          Bryce

          ---------------------------------------------
          http://www.bravobryce.com

          Comment


          • #6
            Re: extending partition size

            Lol ! ! ! !
            Bill
            "A good friend will bail you out of jail,
            A true friend would be sitting beside you saying,
            'Wow, that was fun.'"

            Comment


            • #7
              Re: extending partition size

              I was going to suggest linux to but brycey beat me to it!
              Ben

              Comment


              • #8
                Re: extending partition size

                Im big fan of linux myself.....just cant seem to get asp running on it
                All my answers were extracted from the "Big Dummy's Guide to the As400"
                and I take no responsibility for any of them.

                www.code400.com

                Comment


                • #9
                  Re: extending partition size

                  yeah, @#%@#%@#%@#% that proprietary thingy. just gets in the way most of the time...

                  If we can convince our Gov to make Microsoft open up their code like the EU did then maybe we could get those open source guys workin on it

                  PS. this is a reference to my donotcall post
                  Your future President
                  Bryce

                  ---------------------------------------------
                  http://www.bravobryce.com

                  Comment


                  • #10
                    Re: extending partition size

                    bryce,

                    Hey! hey! hey! No cross posting!

                    MdnghtPgmr
                    "Tis better to be thought a fool then to open one's mouth and remove all doubt." - Benjamin Franklin

                    Comment

                    Working...
                    X