Link to home
Start Free TrialLog in
Avatar of iguimarfernandes
iguimarfernandes

asked on

howto resize a disk partion on xencenter or xenserver

I have a 900MB partition on a storage, which host is a citrix xenserver 6.1. That partion has data. I want to expand it because is almost full, it is with 85 of its capacity.
With the vm that has the partion down, I went to xencenter choose the  partition, went to proprieties tab and tha resize and location option.  I changed the size of the partition, but when I restart the vm, the size didn´t change and for my surprise, when I back to proprities, the size was the same size of the original one, it didn´t change either.
How can I rezise a disk data has data, using xencenter or a xenserver command console?
Thank you.
Avatar of Dirk Kotte
Dirk Kotte
Flag of Germany image

after increasing the vDisk-Size within XenCenter you have to go to "computer-configuration / Storage" at the VM and resize the Partition. (you should see some free space behind your partition now)
Once you've resized the drive in XenCenter, you'll have to run DISKPART from the command line on the Citrix VM and extend the partition.  You may be able to do it in Disk Management as well, but the command line option definitely works.
Avatar of iguimarfernandes
iguimarfernandes

ASKER

I could use diskpart on a vm citrix . When I type diskpart shows me a message that command not found. How can I use diskpart on a citrix vm?
Sorry by I tried computer-configuration/storage, but I couldn´t find that option on xencerter painel. Could you please be more specific?
Thanks
You would run that command on the VM itself, after you have changed the drive size in XenCenter for that VM.
Yes I have tried that, but my vm is a linux one, not a windows one. So when I try to run the command it fails saying command not found. Is this command only for windows? How I could do it in a linux vm? or am I doing something wrong?
Thank you so much.
Sorry, I didn't catch that you were referring to a Linux VM.

First off, take a snapshot are backup the VM.

For Linux, I'd use a disk management utility such as Gparted.

http://ccm.net/faq/2036-how-to-resize-a-partition-using-gparted-on-linux
It seems a good tool. I had a car accident, so I cannot try it right now at my job. But could you say me if it is able to recognize storage partitions, or only local partition from the host where is the cd with the gparted?
I am asking that because I had a car accident, and I am not able to test it at my jog right now. I will be out for 45 days, but I am trying to discover how to resize the disk so when I back to work, I can do that till then they will have to keep control of the disk size to not be full.
Thank you again.
ASKER CERTIFIED SOLUTION
Avatar of Brian CTXSupport
Brian CTXSupport
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great expert, helped a lot