Thursday, July 4, 2013

Resize XEN Lvm



For extending to 40GB,

From the hardware node using the following commands,

lvresize /dev/xen/vm442_img -L +40G  

resize2fs /dev/xen/vm442_img

resize2fs will ask to run e2fsck first so run e2fsck first

e2fsck -f /dev/xen/vm442_img




In case of a Windows server (VM), e2fsck won't work because of its file system (NTFS). So reboot the server and run check disk in the server command prompt.

chkdsk C: (where c is drive)

Run disk management and extend the current disk partition.

No comments:

Post a Comment