I am having a problem using “vmadm” to create a Zone on a differentZpool.   
There are 2 Zpools on the system:
NAME            SIZE  ALLOC   FREE EXPANDSZ   FRAG    CAP DEDUP  HEALTH  
ALTROOTencrypted-area 29.8G   396M  29.4G        -     0%     1% 1.00x  ONLINE  
-zones           928G  17.5G   911G        -     0%     1% 1.00x  ONLINE  - If 
I specify ( "zpool": "zones" ) in theJSON file the Zone gets created OK { 
"brand":"joyent", "alias":"test1", 
"image_uuid":"62f148f8-6e84-11e4-82c5-efca60348b9f", "zpool":"zones", 
"hostname":"test1", "max_physical_memory": 64, "quota":20, If I specify ( 
"zpool": "encrypted-area") in the JSON file the Zone creation fails with the 
following error: Invalid value(s) for: image_uuid Any idea on how to create 
Zones on a Zpool other than the default?
       From: Josh Wilsdon via smartos-discuss 
<[email protected]>
 To: "[email protected]" <[email protected]>; 
George Linn <[email protected]> 
 Sent: Sunday, March 15, 2015 7:09 PM
 Subject: [smartos-discuss] Re: [smartos-discuss] vmadm – specify Zpool 
location for Non KVM Zones?
   


Once the Zone is created I have found procedures on how tomove it to a new 
Zpool but is there a way to specify the pool location whilecreating the Zone?


Yes, as the man page says:
       zpool:
           This defines which ZFS pool the VM's zone dataset will be created in 
          For OS VMs, this dataset is where all the data in the zone will live. 
          For KVM VMs, this is only used by the zone shell that the VM runs in.
           type: string (zpool name)           vmtype: OS,KVM           
listable: yes           create: yes           update: no           default: 
zones
So you should be able to use that for any VM.
 

Under the “vmadm JSON Quick Reference” documentation found 
@http://wiki.smartos.org/display/DOC/vmadm+JSON+Quick+Referencethere is a 
“Zpool” option but it specifies that is applies only to “KVM” Zones.


The best place to look for documentation on vmadm is the man page. That guide 
you're looking at was referring to the disk and NIC options for KVM and doesn't 
include other options. It's really quite incomplete and therefore misleading. 
I'll ask around here about removing it.
Thanks,Josh


|  smartos-discuss | Archives | Modify Your Subscription |  |



  


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to