Revision 98d0b695
ID | 98d0b695e2da3f3ffdafce04c72064daa63c8553 |
Hotplug: cmdlib support
Hotpluging is done by functions invoked by ApplyContainerMods(). In
order hotpluging to take place a --hotplug option must be passed.
If no --hotplug is passed during gnt-instance modify the modifications
will take place after reboot.
Before hotpluging a Disk it must be assembled. During
LuInstanceSetParams() newly created disks are not added to the instance
so ExpandCheckDisks() in AssembleInstanceDisks() will fail. So we make
this check optional only for this case.
In order to remove a disk (with blockdev_remove) it must be shutdown. So
after unpluging the disk ShutdownDiskInstanceDisks() must be invoked.
Everything else is just like NIC hotplugging.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Files
- added
- modified
- copied
- renamed
- deleted