Проект

Общее

Профиль

Libvirt blockresize » История » Редакция 2

Редакция 1 (Андрей Волков, 2013-06-27 18:46) → Редакция 2/4 (Андрей Волков, 2013-06-27 18:47)

h1. Libvirt blockresize 

 host: # *lvresize -L +44g mirror/kvm602-guest-storage* 

 <pre> 
 Using stripesize of last segment 64.00 KiB 
 Extending logical volume kvm602-guest-storage to 92.00 GiB 
 Logical volume kvm602-guest-storage successfully resized 
 </pre> 

 host: # *lvs --units k mirror/kvm602-guest-storage* 

 <pre> 
   LV                         VG       Attr     LSize            Origin             Snap%    Move Log Copy%    Convert 
   kvm602-guest-storage       mirror -wi-ao 96468992.00k 
 </pre> 

 host:~# *virsh* 

 <pre> 
 Welcome to virsh, the virtualization interactive terminal. 

 Type:    'help' for help with commands 
        'quit' to quit 
 </pre> 

 virsh # *list* 

 <pre> 
 virsh # list 
  Id      Name                             State 
 ---------------------------------------------------- 
 ... 
  7       kvm602-guest                     running 
 ... 
 </pre> 

 virsh # *domblklist kvm602-guest* 

 <pre> 
 Target       Source 
 ------------------------------------------------ 
 vda          /dev/mirror/kvm602-guest-root 
 vdb          /dev/mirror/kvm602-guest-storage 
 </pre> 

 virsh # *blockresize kvm602-work-backup --path /dev/mirror/kvm602-guest-storage --size 96468992* 

 <pre> 
 Block device '/dev/mirror/kvm602-work-storage' is resized 
 </pre> 

 guest # *dmesg |tail* 

 <pre> 
 [838729.810179] vdb: detected capacity change from 51539607552 to 98784247808 
 </pre>