On 4/29/15 10:05 , Joe Landman wrote:
>     1) can I detach (easily without too much pain, ala
> https://wiki.smartos.org/display/DOC/Using+vmadm+to+manage+virtual+machines#Usingvmadmtomanagevirtualmachines-AddadisktoaVMthenremoveit
> ) a storage disk from a zone?

That's strictly for KVM, not for OS virtualized instances. So, no this
model doesn't work. There's no direct equivalent of a disk. There is a
delegated dataset, but that's scoped to the instance itself.

You could instead create your own floating delegated dataset and use the
zoneadm and zfs tools yourself to manage it. You'll also likely need
something inside of the guest to forcibly unount it and mount it on the
other side. But you won't be able to manage it with vmadm.

>     2) can I then attach (preferably live) the same storage disk to the
> partner zone?

Again, not a disk, but a zfs file system, presumably. You'd again need
logic in the guest or go into the guest to mount it.

> And also of great interest (the networking question):
> 
>     3) could we export (for remote attachment) the storage disk over the
> network as a block device?  This one would be nice, and quite helpful,
> but for the near term I am willing to skip it if needed.

No, because it's not a block device -- it's just a ZFS file system. You
could instead share it with NFS.

But in general, I'd note, this model of trying to build HA doesn't
really fit in with the general model of SmartOS. You'll likely find
yourself fighting against it, not that it means it's impossible.

Robert


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