[ovirt-users] P2V shrink disk

Alex Crow acrow at integrafin.co.uk
Thu Sep 17 12:46:31 UTC 2015


On 17/09/15 13:40, Alex Crow wrote:
>
>
> On 17/09/15 13:32, wodel youchi wrote:
>> Hi,
>>
>> I am not sure if it's the right place to post this question.
>>
>> I tried to do a P2V operation of a Win2k3 server to ovirt 3.5
>>
>>
>> the physical server is RAID5 of 3x146Go configured, about 290 Go 
>> usable space, but the server uses about 20Go only.
>>
>> I am wondering how to shrink the disk of the migrated physical 
>> machine, do I have to do it before using P2V tool?
>>
>> The same question for Linux servers.
>>
>> Thanks.
>>
>
> I just use a parted Live CD. You can do it before or after, whichever 
> is more convenient. I normally do it after a P2V or V2V as it's so 
> easy to use an ISO image in Ovirt.
>
> Cheers
>
> Alex
>

Actually that wouldn't work as such if you're P2V'ing straight to Ovirt. 
I'd suggest P2V'ing into Libvirt/Qemu-KVM, then running Parted Live on 
that VM. Shut down the VM and use qemu-img to shrink the image file, 
then do a V2V into Ovirt.

Cheers

Alex



-- 
This message is intended only for the addressee and may contain
confidential information. Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc. 29
Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608
5300. (Registered office: as above; Registered in England and Wales
under number: 3727592). Authorised and regulated by the Financial
Conduct Authority (entered on the Financial Services Register; no. 190856).

 .




More information about the Users mailing list