Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

코드 블럭
engine.ovirt.local

# su postgres psql
postgres=# \c engine
engine=#

engine=# SELECT disk_id, disk_alias, disk_description FROM public.base_disks WHERE disk_id ='47dd801f-f765-45cd-a756-b867d8500058';
               disk_id                | disk_alias |                    disk_description
--------------------------------------+------------+---------------------------------------------------------
 47dd801f-f765-45cd-a756-b867d8500058 | test       | CentOS 7 Generic Cloud Image v2009 for x86_64 (0748fd4)

engine=# SELECT image_group_id, image_guid, size FROM public.images WHERE image_group_id = '47dd801f-f765-45cd-a756-b867d8500058';
            image_group_id            |              image_guid              |    size
--------------------------------------+--------------------------------------+------------
 47dd801f-f765-45cd-a756-b867d8500058 | 1fb644c5-d170-4e82-ac80-b1f0dc761073 | 8589934592


코드 블럭
n1.ovirt.local

# cd /rhev/data-center/mnt/glusterSD/n1.ovirt.local:_vmstore/926b54a8-611c-4919-ad18-bf0d818c1dfe/images/47dd801f-f765-45cd-a756-b867d8500058
 
# scp old-vmhost:/path/to/img/vmdisk.qcow2 .
# chown vdsm:kvm *

# qemu-img info vmdisk.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)

# vmdisk.qcow2 1fb644c5-d170-4e82-ac80-b1f0dc761073

# vi 1fb644c5-d170-4e82-ac80-b1f0dc761073.meta
## change CAP=10737418240



engine.ovirt.local

# su postgres psql
postgres=# \c engine
engine=#

UPDATE public.base_disks 
SET disk_alias       = '068_doku.qcow2',
    disk_description = ''
WHERE disk_id ='47dd801f-f765-45cd-a756-b867d8500058';

UPDATE public.images 
SET size = 10737418240
WHERE image_group_id = '47dd801f-f765-45cd-a756-b867d8500058';