Yes, I could see the volume in the pool. I was able to examine it with qemu-img tool, and it showed both the intended extents and the actual on-disk size.
But inside the vm, the drive did not appear as the intended size, but rather the on-disk size. Anaconda would not partition the drive because it was too small. I ran fdisk -l /dev/sda inside the anaconda shell and it was very small.
On Oct 24, 2016 12:00 PM, Mark Gurevich <gurev...@us.ibm.com> wrote:
>
> Russell,
>
> Were you able to see that the storage pool actually knows about your volume, using "virsh vol-list <pool name>"
>
> You can also run "virsh vol-info <path to qcow2 file>" to check the size.
>
> Mark Gurevich
> Poughkeepsie Development Lab
> HPC Software Development - xCAT
>
> "If we knew what it was we were doing, it would not be called research, would it?"
> --Albert Einstein
>
>
>
>
>
> From: "Russell Auld" <russa...@comcast.net>
> To: "'xCAT Users Mailing list'" <xcat-user@lists.sourceforge.net>
> Date: 10/24/2016 07:52 AM
> Subject: Re: [xcat-user] xCAT and KVM and dir:/// storage pools
> ________________________________
>
>
>
> I was using RHEL6.7 and the storage pool was already defined before I tried to setup a VM with xCAT.
> When I use “vmstorage=nfs://” I noticed that xCAT will create/define the storage pool.
>
>
> From: w...@cn.ibm.com [mailto:w...@cn.ibm.com]
> Sent: Sunday, October 23, 2016 9:25 PM
> To: xcat-user@lists.sourceforge.net
> Subject: Re: [xcat-user] xCAT and KVM and dir:/// storage pools
>
> Yes, we did use 'vmstorage=dir:///' a lot. It works well.
>
> @Mark, could you help on this?
>
> Thanks
> Best Regards
> ----------------------------------------------------------------------
> Wang Xiaopeng (王晓朋)
> IBM China System Technology Laboratory
> Tel: 86-10-82453455
> Email: w...@cn.ibm.com
> Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193
>
>
> ----- Original message -----
> From: "Russell Auld" <russa...@comcast.net>
> To: <xcat-user@lists.sourceforge.net>
> Cc:
> Subject: [xcat-user] xCAT and KVM and dir:/// storage pools
> Date: Sun, Oct 23, 2016 9:18 AM
>
> Hi,
>
> I was unsuccessful using a local storagepool as specified bysomething like “chdef kvm1 vmstorage=dir:///install/vms”
>
> I verified that the pool existed invirsh and virt-manager.
>
> I ran “mkvm kvm1 -s 20G” which created the kvm1.hda.qcow2 file in /install/vms
>
> However, the KVM/QEMU system doesn’t see the storage properly.
>
> When Anaconda runs, it sees the virtual disk as very small, and not as 20G.
>
>
>
> On the other hand, if I set up an NFS exported storage pool, such as “chdef kvm1 vmstorage=nfs://<server-IP>/vms” and otherwise do the same commands, it works fine. Anaconda will run and it sees the virtual disk as 20G.
>
> I looked at /opt/xcat/lib/perl/xCAT_plugin/kvm.pm and it seems that it handles “dir:///” differently than “nfs://”, specifically in “build_pool_xml”.
>
> Does anyone use local storage pool via“dir:///” ?
>
> Is that a non-typical usage?
>
> this is xcat version 2.12.2
>
> Thanks,
>
> Russ
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>
>
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user