On 5 Dec 2017, at 3:38, Chad Leigh Shire.Net LLC wrote:

> On Dec 4, 2017, at 5:53 PM, Brian Bennett <[email protected]> wrote:

Chad,

Welcome to SmartOS!

First of all, I'd like to say that for the global zone especially, make sure to use SmartOS documentation first, and foremost. If there's a SmartOS specific command you should use it over anything else, if at all possible. For example, don't use zoneadm or zonecfg when you can use vmadm.

That being said, to add a shared filesystem to zones, add the following property to your vm json before you create it.

   "filesystems": [
     {
       "type": "lofs",
       "source": "/zones/mailstore",
       "target": "/local/mailstore"
     }
   ]

For more information, see the filesystems parameter in vmadm(1m).

Thank you. When I create new zones I will do this. Does the update command on vmadm work for filesystems? It appears not to ("update: no” for each filesystem property). How would you add shared filesystems to an already configured and runnable zone using vmadm?


Use "add_filesystems" followed by vmadm update <Zone-UUID> -f <json-file>

The example above would read:

    "add_filesystems": [
      {
        "type": "lofs",
        "source": "/zones/mailstore",
        "target": "/local/mailstore"
      }
    ]

and to remove existing filesystems, use "remove_filesystems". IIRC in this case you can just specify the "type" and "target" fields, though specifying the source as well doesn't hurt.


-------------------------------------------
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