Hi folks
Looking at using SmartOS for something, and a question arose that I
haven't yet looked into beyond RTFM. If this is a solved problem,
please ... point me in the right direction.
Suppose I've got 2 LX branded zones, and wanted to configure them in
a "HA" arrangement. For simplicity right now, lets assume these zones
are on the same host ... not real HA, but simplifying the network side
for now. Each zone would have an OS disk, and a "storage disk", both
constructed in the usual manner.
I need to be able to attach and detach the storage disk to one or the
other LX branded zone. Both zones would not attach to the storage disk
simultaneously (e.g. not active-active) unless it was possible to start
one in rw and the other in ro, and then switch them later. I don't
think it is, and there is all sorts of pain if this fails to operate
correctly. Happy to be able to just detach a storage disk from a failed
(STOZITH: Shoot The Other Zone In The Head) zone, and attach it to a
working zone.
The level of HA here would be fairly simple, basically a small daemon
running under SMF in the GZ would query the 2 LX branded zones (using a
very simple heartbeat), and if one of them failed, what I would like to
do is this:
a) turn off the failed zone
b) detach the storage disk (attached to a zone, but not the OS disk)
from one zone, and attach it to the partner zone
c) turn on the required services for the newly attached zone
Happily, I can run the services on separate ports, and I don't actually
need to take over the IP of the failed zone for this project. So its
really pretty straightforward to some degree.
The questions are
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?
2) can I then attach (preferably live) the same storage disk to the
partner zone?
Both of these will need to be LX branded zones due to the software
stack. I can't change that.
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.
#1 and #2 are more critical though for this application.
Thanks in advance!
Joe
--
Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics, Inc.
e: [email protected]
w: http://scalableinformatics.com
t: @scalableinfo
p: +1 734 786 8423 x121
c: +1 734 612 4615
-------------------------------------------
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