VMware Cloud Community
baber
Expert
Expert

how convert physical linux server to virtual without change in file system

Hi

i have convert a physical linux machine to virtual but know i run df -h command in linux to display filesystems  my virtual machine now work with no problem but i want to know why my filesystem size has been changed ? how can i convert physical to virtual without change filesystem size? i have attached both pics (before and after) change.

Best regards

Babak

Please mark helpful or correct if my answer resolved your issue.
5 Replies
rcporto
Leadership
Leadership

Based on the pictures, seems like only the device of boot partition has changed and this is the expected behavior, since on virtual machine there is no more a HP Smart Array controller present on physical machine.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
baber
Expert
Expert

thanks

but most of file system size has been changed such as : u01   , u02  , u03   , /tmp and ..... 

why ?

Please mark helpful or correct if my answer resolved your issue.
0 Kudos
baber
Expert
Expert

can i convert without change in partition size?

Please mark helpful or correct if my answer resolved your issue.
0 Kudos
patanassov
VMware Employee
VMware Employee

Hello

First a little correction - df displays the volume size, not the partition size.

There is no straightforward way to specify an exact preservation of the volume size.

Linux P2V conversion is file level and is not meant to preserve the binary layout of the disks (unlike disk based V2V conversions for example). There are many things taken into account that affect the volume size like partition alignment, creating logical volumes (IIRC LVM extent size is not preserved), volume block size is also not preserved. All these little differences and adjustments may pile up and result in slightly different volume size.

I am curious - why do you want exact volume size preservation?

Regards,

Plamen

0 Kudos
IBM_India
Enthusiast
Enthusiast

hope below link will help you

How to Convert a Physical Windows or Linux PC to a Virtual Machine

if you think this post is helpful, please provide points accordingly thanks Zubair Technical Specialist