[one-users] vmfs datastore add

Tino Vazquez cvazquez at c12g.com
Wed Oct 23 07:44:48 PDT 2013


Hi,

I think the problem here is due to the BASE_PATH referenced in the DS
templates. Where it reads

BASE PATH      : /var/lib/one/datastores/0

it should read

BASE PATH      : /vmfs/volumes/datastores/0

In order to achieve this, you will need to create another two
datastores (say 100, 101), one of them flagged as system datastore,
and add them to a cluster with a DATASTORE_LOCATION="/vmfs/volumes" in
its template). This is explained at length in [1].

Hope it helps,

-Tino

[1] http://opennebula.org/documentation:rel4.2:system_ds#the_system_datastore_for_multi-cluster_setups
--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at abuse at c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Wed, Oct 23, 2013 at 1:06 PM, cosmin cucu <cosmincucu at yahoo.com> wrote:
> oneadmin at OpenNebula:/root$ /var/lib/one/remotes/datastore/vmfs/monitor
> PERTX0RSSVZFUl9BQ1RJT05fREFUQT48REFUQVNUT1JFPjxJRD4xPC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+ZGVmYXVsdDwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MTwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQX0E+PE9USEVSX1U+MTwvT1RIRVJfVT48T1RIRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48RFNfTUFEPnZtZnM8L0RTX01BRD48VE1fTUFEPnZtZnM8L1RNX01BRD48QkFTRV9QQVRIPi92YXIvbGliL29uZS9kYXRhc3RvcmVzLzE8L0JBU0VfUEFUSD48VFlQRT4wPC9UWVBFPjxESVNLX1RZUEU+MDwvRElTS19UWVBFPjxDTFVTVEVSX0lEPi0xPC9DTFVTVEVSX0lEPjxDTFVTVEVSPjwvQ0xVU1RFUj48VE9UQUxfTUI+MDwvVE9UQUxfTUI+PEZSRUVfTUI+MDwvRlJFRV9NQj48VVNFRF9NQj4wPC9VU0VEX01CPjxJTUFHRVM+PC9JTUFHRVM+PFRFTVBMQVRFPjxCUklER0VfTElTVD48IVtDREFUQVsxOTIuMTY4LjEwLjEwXV0+PC9CUklER0VfTElTVD48RFNfTUFEPjwhW0NEQVRBW3ZtZnNdXT48L0RTX01BRD48RFNfVVNFX1NTSD48IVtDREFUQVt5ZXNdXT48L0RTX1VTRV
> 9TU0g+PFRNX01BRD48IVtDREFUQVt2bWZzXV0+PC9UTV9NQUQ+PFRNX1VTRV9TU0g+PCFbQ0RBVEFbeWVzXV0+PC9UTV9VU0VfU1NIPjxUWVBFPjwhW0NEQVRBW0lNQUdFX0RTXV0+PC9UWVBFPjwvVEVNUExBVEU+PC9EQVRBU1RPUkU+PC9EU19EUklWRVJfQUNUSU9OX0RBVEE+
> 1
> USED_MB=
> TOTAL_MB=
> FREE_MB=
>
> That's it.
>
> Cosmin
>
>
> On Wednesday, October 23, 2013 2:00 PM, Tino Vazquez <cvazquez at c12g.com>
> wrote:
> Hi,
>
> Ok, let's try and debug this. First thing would be to make the monitor
> fail so we get the arguments to the monitor script.
>
> This script resides on /var/lib/one/remotes/datastore/vmfs/monitor,
> please rename it to /var/lib/one/remotes/datastore/vmfs/monitor.bk,
> and check oned.log for the monitor fail, since it won't find the
> monitor script.
>
> You will find a line similar to:
>
> Mon Oct 21 11:31:21 2013 [ImM][I]: Command execution fail:
> /var/lib/one/remotes/datastore/vmfs/monitor P[..large alphanumeric
> string]= 100
>
> After getting the above line, the idea is to rename back the monitor
> script and execute the above line as oneadmin in the front-end. Please
> send us the output for its analysis.
>
> Best regards,
>
> -Tino
>
> --
> OpenNebula - Flexible Enterprise Cloud Made Simple
>
> --
> Constantino Vázquez Blanco, PhD, MSc
> Senior Infrastructure Architect at C12G Labs
> www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
> --
> Confidentiality Warning: The information contained in this e-mail and
> any accompanying documents, unless otherwise expressly indicated, is
> confidential and privileged, and is intended solely for the person
> and/or entity to whom it is addressed (i.e. those identified in the
> "To" and "cc" box). They are the property of C12G Labs S.L..
> Unauthorized distribution, review, use, disclosure, or copying of this
> communication, or any part thereof, is strictly prohibited and may be
> unlawful. If you have received this e-mail in error, please notify us
> immediately by e-mail at abuse at c12g.com and delete the e-mail and
> attachments and any copy from your system. C12G thanks you for your
> cooperation.
>
>
> On Wed, Oct 23, 2013 at 11:10 AM, cosmin cucu <cosmincucu at yahoo.com> wrote:
>> Hello,
>>
>> I am using the online documentation for adding a vmfs datastore, but it
>> doesn't seem to show the correct capacity. I think i may be missing
>> something. /var/log/one/oned.log does not show any errors. Here are the
>> datastores templates:
>>
>>
>> oneadmin at OpenNebula:/root$ onedatastore show 0
>> DATASTORE 0 INFORMATION
>> ID            : 0
>> NAME          : system
>> USER          : oneadmin
>> GROUP          : oneadmin
>> CLUSTER        : -
>> TYPE          : SYSTEM
>> DS_MAD        : -
>> TM_MAD        : vmfs
>> BASE PATH      : /var/lib/one/datastores/0
>> DISK_TYPE      : FILE
>>
>> DATASTORE CAPACITY
>> TOTAL:        : -
>> USED:          : -
>> FREE:          : -
>>
>> PERMISSIONS
>> OWNER          : um-
>> GROUP          : u--
>> OTHER          : ---
>>
>> DATASTORE TEMPLATE
>> BRIDGE_LIST="192.168.10.10"
>> DS_MAD="-"
>> TM_MAD="vmfs"
>> TYPE="SYSTEM_DS"
>>
>> IMAGES
>> oneadmin at OpenNebula:/root$ onedatastore show 1
>> DATASTORE 1 INFORMATION
>> ID            : 1
>> NAME          : default
>> USER          : oneadmin
>> GROUP          : oneadmin
>> CLUSTER        : -
>> TYPE          : IMAGE
>> DS_MAD        : vmfs
>> TM_MAD        : vmfs
>> BASE PATH      : /var/lib/one/datastores/1
>> DISK_TYPE      : FILE
>>
>> DATASTORE CAPACITY
>> TOTAL:        : 0M
>> USED:          : 0M
>> FREE:          : 0M
>>
>> PERMISSIONS
>> OWNER          : um-
>> GROUP          : u--
>> OTHER          : u--
>>
>> DATASTORE TEMPLATE
>> BRIDGE_LIST="192.168.10.10"
>> DS_MAD="vmfs"
>> DS_USE_SSH="yes"
>> TM_MAD="vmfs"
>> TM_USE_SSH="yes"
>> TYPE="IMAGE_DS"
>>
>> IMAGES
>>
>> Thanks,
>> Cosmin
>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list