All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Paesold <mpaesold@gmx.at>
To: Stefan Berger <stefanb@us.ibm.com>, xen-devel@lists.xensource.com
Subject: [RFD] External device migration for block devices
Date: Fri, 21 Apr 2006 13:13:15 +0200	[thread overview]
Message-ID: <4448BE4B.7050806@gmx.at> (raw)

Hi everyone, hi Stefan!

I want to use Stefan's work on device migration to implement 
block-device migration for devices, where the regular model (hotplug 
add/remove) does not work, i.e. when the device migration script is 
required.
I would like to get some feedback on my ideas.

1) Currently, the device migration script does not get device details 
for the device it should migrate, obviously because it's not needed for 
vtpm. On the other hand, there can be several block devices for each 
domain, and each might have to be handled differently. So the script 
needs to get the details for the device it should migrate.

Should I add a arguments to the device migration script, that will not 
be set for vtpm?

2) I think there should be some way to configure the migration 
capabilities of block devices using the domain config files. Some block 
device might be migrated automatically using regular hotplug add/remove 
(e.g. nbd/enbd). Others might not be migratable at all (e.g., 
phy:/dev/sdb). For my current use case (DRBD), I use phy:/dev/drbd. 
These devices are migratable, but Xend does not know this.

I don't think it is good if all this knowledge must be put into the 
migration scripts itself. So I suggest to add a device config option to 
explicitly tell Xend what to do on migrate.

I suggest adding optional parameters to the end of the block device 
definition, which is currently "phy:UNAME,DEV,MODE"; I would extend that 
to "phy:UNAME,DEV,MODE[,OPTIONS]".

Examples:
phy:sdb,xvda,w,migrate=reject  # reject migration
nbd:sample,xvda1,r,migrate=ok  # migration is ok, done through hotplug
phy:drbd1,xvda,w,migrate=drbd  # migration script called with -type drbd
phy:sdb,xvda,r                 # ok is default, for backwards compatib.

The "reject" argument can be "reject", "ok", or any other string. In the 
latter case, it's assumed to be the type given to the migration script. 
(Which can be used to redirect this to a different shell script.)

I appreciate your comments and suggestions.

Best Regards,
Michael Paesold

             reply	other threads:[~2006-04-21 11:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-21 11:13 Michael Paesold [this message]
2006-04-21 12:06 ` [RFD] External device migration for block devices Stefan Berger
2006-04-21 12:47   ` Michael Paesold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4448BE4B.7050806@gmx.at \
    --to=mpaesold@gmx.at \
    --cc=stefanb@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.