Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2016
    Location
    Houston Texas
    Posts
    3

    shrinking the redhat linux disk size vmware


    Hi,
    I am a newbie in redhat and vmware. Can anyone help me on how to shrink a disk size of of redhat virtual machine. I have a virtual machine of 200 Gb with filesystem /root = 70G , /var = 30 G, swap= 64G /boot= 1G . /appl = 35G .

    I am trying to reduce to 150Gb.

    I am flexible with reducing any of filesystem above mentioned. How do i do it on the linux vm and also will the vmdk file size decrease after i reduce the filesystem. If not what is the procedure?

    Thanks in advance.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,847
    Code:
     /root = 70G , /var = 30 G, swap= 64G /boot= 1G . /appl = 35G .
    Sorry, 64G swap is really strange. I never came across so much swap partition. Depending on your RAM size, create the swap partition. In past the formula is
    "twice of RAM size". But later this formula is not really valid, people suggest half-of RAM size is enough.

    Even if you are using 32GB RAM, you can safely reduce the swap partition.

    HTH
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    2,185
    What filesystem. If it is XFS forget shrinking. BTW, /boot 1 GB is also way too large.
    Anyhow, since this is RHEL you should give them a call, you are paying money to them, let them earn it.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    -->
    The VMware documentation goes into this in detail. Before you ask us, please RTFM!
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •