Hi, I have deleted existing default datastores (ID: 0,1,2) and created 2 new datastore for image and system with the base path set to NFS mount point. Below is the details of the new datastore.
[oneadmin@server ~]$ onedatastore list ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM 102 ds-sys-nfs-01 50G 96% - 0 sys - shared 103 ds-img-nfs-01 1.8T 100% - 2 img fs shared [oneadmin@server ~]$ onedatastore show 102 DATASTORE 102 INFORMATION ID : 102 NAME : ds-sys-nfs-01 USER : oneadmin GROUP : oneadmin CLUSTER : - TYPE : SYSTEM DS_MAD : - TM_MAD : shared BASE PATH : /one/datastores/102 DISK_TYPE : FILE DATASTORE CAPACITY TOTAL: : 50G FREE: : 48.2G USED: : 0M LIMIT: : - PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE BASE_PATH="/one/datastores/" SHARED="YES" TM_MAD="shared" TYPE="SYSTEM_DS" IMAGES [oneadmin@server ~]$ onedatastore show 103 DATASTORE 103 INFORMATION ID : 103 NAME : ds-img-nfs-01 USER : oneadmin GROUP : oneadmin CLUSTER : - TYPE : IMAGE DS_MAD : fs TM_MAD : shared BASE PATH : /one/datastores/103 DISK_TYPE : FILE DATASTORE CAPACITY TOTAL: : 1.8T FREE: : 1.8T USED: : 399M LIMIT: : - PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE BASE_PATH="/one/datastores/" CLONE_TARGET="SYSTEM" DISK_TYPE="FILE" DS_MAD="fs" LN_TARGET="NONE" TM_MAD="shared" TYPE="IMAGE_DS" IMAGES 0 1 As we can see, both DS is using new path but the DS capacity info for DS 102 is wrong - it displaying the size of /var/lib/one When I deploy the VM, I got the following error messages. [root@server one]# tail 0.log Wed Sep 17 15:03:06 2014 [Z0][DiM][I]: New VM state is ACTIVE. Wed Sep 17 15:03:06 2014 [Z0][LCM][I]: New VM state is PROLOG. Wed Sep 17 15:03:06 2014 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/shared/clone server.mimos.local:/one/datastores/103/01420afc51ab1be828f0e877cb980113 server.mimos.local:/var/lib/one//datastores/102/0/disk.1 0 103 Wed Sep 17 15:03:06 2014 [Z0][TM][I]: clone: Cloning /var/lib/one/datastores/103/01420afc51ab1be828f0e877cb980113 in server.mimos.local:/var/lib/one//datastores/102/0/disk.1 Wed Sep 17 15:03:06 2014 [Z0][TM][E]: clone: Command "cd /var/lib/one/datastores/102/0; cp /var/lib/one/datastores/103/01420afc51ab1be828f0e877cb980113 /var/lib/one/datastores/102/0/disk.1" failed: Warning: Permanently added 'server.mimos.local,192.168.254.94' (ECDSA) to the list of known hosts. Wed Sep 17 15:03:06 2014 [Z0][TM][I]: cp: cannot stat '/var/lib/one/datastores/103/01420afc51ab1be828f0e877cb980113': No such file or directory Wed Sep 17 15:03:06 2014 [Z0][TM][E]: Error copying server.mimos.local:/one/datastores/103/01420afc51ab1be828f0e877cb980113 to server.mimos.local:/var/lib/one//datastores/102/0/disk.1 Wed Sep 17 15:03:06 2014 [Z0][TM][I]: ExitCode: 1 Wed Sep 17 15:03:06 2014 [Z0][TM][E]: Error executing image transfer script: Error copying server.mimos.local:/one/datastores/103/01420afc51ab1be828f0e877cb980113 to server.mimos.local:/var/lib/one//datastores/102/0/disk.1 Wed Sep 17 15:03:06 2014 [Z0][DiM][I]: New VM state is FAILED >From the above message, I can see that it is still referring to /var/lib/one/ >directory. What I have missed here? The BASE_PATH in DS page is for what >actually? Note: Management and Node on the same server. -- Regards, Anandharaj ________________________________ DISCLAIMER: This e-mail (including any attachments) is for the addressee(s) only and may be confidential, especially as regards personal data. If you are not the intended recipient, please note that any dealing, review, distribution, printing, copying or use of this e-mail is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original message (including any attachments). MIMOS Berhad is a research and development institution under the purview of the Malaysian Ministry of Science, Technology and Innovation. Opinions, conclusions and other information in this e-mail that do not relate to the official business of MIMOS Berhad and/or its subsidiaries shall be understood as neither given nor endorsed by MIMOS Berhad and/or its subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts responsibility for the same. All liability arising from or in connection with computer viruses and/or corrupted e-mails is excluded to the fullest extent permitted by law. ------------------------------------------------------------------ - - DISCLAIMER: This e-mail (including any attachments) is for the addressee(s) only and may contain confidential information. If you are not the intended recipient, please note that any dealing, review, distribution, printing, copying or use of this e-mail is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original message. MIMOS Berhad is a research and development institution under the purview of the Malaysian Ministry of Science, Technology and Innovation. Opinions, conclusions and other information in this e- mail that do not relate to the official business of MIMOS Berhad and/or its subsidiaries shall be understood as neither given nor endorsed by MIMOS Berhad and/or its subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts responsibility for the same. All liability arising from or in connection with computer viruses and/or corrupted e-mails is excluded to the fullest extent permitted by law.
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org