====== VM Change Disk Size ====== you can change VM Disk Size from your admin panel . {{ :wiki:change_disk_button.png?400 |}} * current XenServer Version doesn't allow Size shrinking for now , so you can only enlarge the size. * remember that this command will reboot your vm * if you want to change disk size, please put the new __entire size__ disk size , and not only the additional size. ---- after increasing your VM disk size , a new __unallocated area__ will be added to this vm Disk , our xenicastart script on your VM will automatically expand the default disk with this extra space after automatic reboot. if for any reason this mechanism is not worked perfectly , you still can allocated it manually either by adding it to an existing drive or to create a new drive for it : __Windows VMs :__ from vm control panel > administrative tools > computer management > Disk management you will find the unallocated part , from here you can create as new drive or you can expand the previous drive with its space : {{ :extend_disk.png?400 |}} __Linux VMs :__ for CentOS6 : pvcreate VolGroup /dev/xvda4 vgextend VolGroup /dev/xvda4 lvextend -r -l +100%FREE /dev/mapper/VolGroup/lv_root