<div dir="ltr">List,<div><br></div><div>I am in the process of   uploading  OS and data LVM  disk image from ovirt(KVM) files  fo our OpenStack Ussuri setup with  KVM and glance.</div><div><br></div><div><br></div><div>I am able to upload the disk ( qcow2 images and profile the VM image). But I could not  able to get the logical volume visible to the populated VM.</div><div><br></div><div>Here  the data volume is LVM partition as another disk image handed over to us by our service provider. </div><div><br></div><div><br></div><div><br></div><div>here the steps I followed to get the LVM partition (/dev/vdc2)  in question to get visible to our VM without success. </div><div><br></div><div>Kindly help to solve this issue.</div><div><br></div><div><br></div><div>##################################################</div><div><br></div><div>[root@ma-app ~]# fdisk -l<br><br>Disk /dev/vda: 64.4 GB, 64424509440 bytes, 125829120 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk label type: dos<br>Disk identifier: 0x0009e4d7<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/vda1   *        2048   125829086    62913519+  83  Linux<br><br>Disk /dev/vdb: 10.7 GB, 10737418240 bytes, 20971520 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br><br><br>Disk /dev/vdc: 53.7 GB, 53687091200 bytes, 104857600 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk label type: dos<br>Disk identifier: 0x000ac064<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/vdc1   *        2048     2099199     1048576   83  Linux<br>/dev/vdc2         2099200   104857599    51379200   8e  Linux LVM<br>[root@ma-app ~]# vgs<br>  VG   #PV #LV #SN Attr   VSize   VFree<br>  rhel   1   2   0 wz--n- <49.00g    0 <br>[root@ma-app ~]# vgs<br>  VG   #PV #LV #SN Attr   VSize   VFree<br>  rhel   1   2   0 wz--n- <49.00g    0 <br>[root@ma-app ~]# df -h<br>Filesystem      Size  Used Avail Use% Mounted on<br>/dev/vda1        59G  1.5G   56G   3% /<br>devtmpfs        3.9G     0  3.9G   0% /dev<br>tmpfs           3.9G     0  3.9G   0% /dev/shm<br>tmpfs           3.9G  8.5M  3.9G   1% /run<br>tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup<br>tmpfs           783M     0  783M   0% /run/user/0<br>[root@ma-app ~]# vgs<br>  VG   #PV #LV #SN Attr   VSize   VFree<br>  rhel   1   2   0 wz--n- <49.00g    0 <br>[root@ma-app ~]# lvs<br>  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert<br>  root rhel -wi------- <44.00g                                                    <br>  swap rhel -wi-------   5.00g                                                    <br>[root@ma-app ~]# vgs<br>  VG   #PV #LV #SN Attr   VSize   VFree<br>  rhel   1   2   0 wz--n- <49.00g    0 <br>[root@ma-app ~]# df -h<br>Filesystem      Size  Used Avail Use% Mounted on<br>/dev/vda1        59G  1.5G   56G   3% /<br>devtmpfs        3.9G     0  3.9G   0% /dev<br>tmpfs           3.9G     0  3.9G   0% /dev/shm<br>tmpfs           3.9G  8.5M  3.9G   1% /run<br>tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup<br>tmpfs           783M     0  783M   0% /run/user/0<br>[root@ma-app ~]# lvdisplay <br>  --- Logical volume ---<br>  LV Path                /dev/rhel/swap<br>  LV Name                swap<br>  VG Name                rhel<br>  LV UUID                Q2X9BK-7VXr-g9BB-JA5v-K7yR-yRBf-G61vZV<br>  LV Write Access        read/write<br>  LV Creation host, time localhost, 2018-04-19 12:01:04 -0400<br>  LV Status              NOT available<br>  LV Size                5.00 GiB<br>  Current LE             1280<br>  Segments               1<br>  Allocation             inherit<br>  Read ahead sectors     auto<br>   <br>  --- Logical volume ---<br>  LV Path                /dev/rhel/root<br>  LV Name                root<br>  VG Name                rhel<br>  LV UUID                laUf04-Ecwg-OHDc-vr1s-SB85-yN8O-Us116d<br>  LV Write Access        read/write<br>  LV Creation host, time localhost, 2018-04-19 12:01:05 -0400<br>  LV Status              NOT available<br>  LV Size                <44.00 GiB<br>  Current LE             11263<br>  Segments               1<br>  Allocation             inherit<br>  Read ahead sectors     auto<br>   <br>[root@ma-app ~]# lvscan <br>  inactive          '/dev/rhel/swap' [5.00 GiB] inherit<br>  inactive          '/dev/rhel/root' [<44.00 GiB] inherit<br>[root@ma-app ~]# pvscan <br>  PV /dev/vdc2   VG rhel            lvm2 [<49.00 GiB / 0    free]<br>  Total: 1 [<49.00 GiB] / in use: 1 [<49.00 GiB] / in no VG: 0 [0   ]<br>[root@ma-app ~]# df -h<br>Filesystem      Size  Used Avail Use% Mounted on<br>/dev/vda1        59G  1.5G   56G   3% /<br>devtmpfs        3.9G     0  3.9G   0% /dev<br>tmpfs           3.9G     0  3.9G   0% /dev/shm<br>tmpfs           3.9G  8.5M  3.9G   1% /run<br>tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup<br>tmpfs           783M     0  783M   0% /run/user/0<br>[root@ma-app ~]# lvscan <br>  inactive          '/dev/rhel/swap' [5.00 GiB] inherit<br>  inactive          '/dev/rhel/root' [<44.00 GiB] inherit<br>[root@ma-app ~]# vgchange -ay rhel<br>  2 logical volume(s) in volume group "rhel" now active<br>[root@ma-app ~]# lvscan <br>  ACTIVE            '/dev/rhel/swap' [5.00 GiB] inherit<br>  ACTIVE            '/dev/rhel/root' [<44.00 GiB] inherit<br>[root@ma-app ~]# fdisk -l<br><br>Disk /dev/vda: 64.4 GB, 64424509440 bytes, 125829120 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk label type: dos<br>Disk identifier: 0x0009e4d7<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/vda1   *        2048   125829086    62913519+  83  Linux<br><br>Disk /dev/vdb: 10.7 GB, 10737418240 bytes, 20971520 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br><br><br>Disk /dev/vdc: 53.7 GB, 53687091200 bytes, 104857600 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk label type: dos<br>Disk identifier: 0x000ac064<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/vdc1   *        2048     2099199     1048576   83  Linux<br>/dev/vdc2         2099200   104857599    51379200   8e  Linux LVM<br><br>Disk /dev/mapper/rhel-swap: 5368 MB, 5368709120 bytes, 10485760 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br><br><br>Disk /dev/mapper/rhel-root: 47.2 GB, 47240445952 bytes, 92266496 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br><br>[root@ma-app ~]# df -h<br>Filesystem      Size  Used Avail Use% Mounted on<br>/dev/vda1        59G  1.5G   56G   3% /<br>devtmpfs        3.9G     0  3.9G   0% /dev<br>tmpfs           3.9G     0  3.9G   0% /dev/shm<br>tmpfs           3.9G  8.5M  3.9G   1% /run<br>tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup<br>tmpfs           783M     0  783M   0% /run/user/0<br>[root@ma-app ~]# mount /dev/vdc1 /mnt<br>[root@ma-app ~]# df -h<br>Filesystem      Size  Used Avail Use% Mounted on<br>/dev/vda1        59G  1.5G   56G   3% /<br>devtmpfs        3.9G     0  3.9G   0% /dev<br>tmpfs           3.9G     0  3.9G   0% /dev/shm<br>tmpfs           3.9G  8.5M  3.9G   1% /run<br>tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup<br>tmpfs           783M     0  783M   0% /run/user/0<br>/dev/vdc1      1014M  178M  836M  18% /mnt<br>[root@ma-app ~]# umount /mnt<br>[root@ma-app ~]# mount /dev/vdc2 /mnt<br>mount: unknown filesystem type 'LVM2_member'<br>[root@ma-app ~]# <br></div><div><br></div><div>How to make this /dev/vdc2(LVM partiton) attached to the VM.  ?</div><div><br></div><div><br></div><div>Thank you,</div><div>Kris</div><div><br></div><div><br></div><div><br></div><div><br></div></div>