Posts

Showing posts from April, 2015

Take snapshot of KVM image

Q: How to take snapshot: A: [root@islpfdbldkvm2 ~]# qemu-img info  /home/Vms/SLES_11_SP0_PSMB_BKP2/SLES11_SP0_BKP2.img                                             image: /home/Vms/SLES_11_SP0_PSMB_BKP2/SLES11_SP0_BKP2.img file format: raw virtual size: 1.0T (1073741824000 bytes) disk size: 21G [root@islpfdbldkvm2 SLES_11_SP0_PSMB_BKP2]# qemu-img create -f qcow2 -b SLES11_SP0_BKP2.img SP0-snapshot.img Formatting 'SP0-snapshot.img', fmt=qcow2 size=1073741824000 backing_file='SLES11_SP0_BKP2.img' encryption=off cluster_size=65536 [root@islpfdbldkvm2 SLES_11_SP0_PSMB_BKP2]# qemu-img info SP0-snapshot.img image: SP0-snapshot.img file format: qcow2 virtual size: 1.0T (1073741824000 bytes) disk size: 148K cluster_size: 65536 backing file: SLES11_SP0_BKP2.img

scan lun in VIOS

$ lspv -size NAME            PVID                                SIZE(megabytes) hdisk0          00c7ed34a649c11b                    140013 hdisk1          00c7ed34fe3395ee                    140013 hdisk2          00c7ed34956f9a40                    140013 hdisk3          00c7ed3408b1659e                    140013 hdisk8          00c7ed34bd7c8966                    512000 hdisk9          00f75469f70b24ce                    20480 hdisk10         00f68d92be57434f                    30720 hdisk6          none                                139776 hdisk11         none                                144384 hdisk12         none                                102400 $ cfgdev $ lspv -size NAME            PVID                                SIZE(megabytes) hdisk0          00c7ed34a649c11b                    140013 hdisk1          00c7ed34fe3395ee                    140013 hdisk2          00c7ed34956f9a40                    140013 hdisk3          00c7ed3408b1659e                    140013 hdi