Date: Mon, 29 Feb 2016 12:23:20 +0100 From: =?UTF-8?Q?Gustau_P=c3=a9rez?= <gustau.perez@gmail.com> To: FreeBSD XEN <freebsd-xen@freebsd.org> Subject: Re: Porting the block-iscsi hotplug script Message-ID: <56D42A28.8050701@gmail.com> In-Reply-To: <56D04E5F.8070901@citrix.com> References: <553DEB97.5000300@entel.upc.edu> <5540A053.4080409@entel.upc.edu> <5540F3FC.80606@citrix.com> <5541FC8A.8080009@citrix.com> <5542365D.10403@entel.upc.edu> <55423ECD.6000404@citrix.com> <5556F21D.2050005@entel.upc.edu> <555EEFBA.5080902@citrix.com> <555EF542.3090002@citrix.com> <555F9B3F.1000600@entel.upc.edu> <55602512.1090702@citrix.com> <56C6FA2F.8040900@gmail.com> <56CAC8CB.8030107@gmail.com> <56CADEDA.4050007@citrix.com> <56CB0057.1060509@gmail.com> <56CB041E.1020009@citrix.com> <56CB2D90.5080809@gmail.com> <56CB34BA.6060809@citrix.com> <56CC24BD.6050609@gmail.com> <56CC32E5.5010101@citrix.com> <56CC7637.3080408@gmail.com> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> <56D03D95.9090509@gmail.com> <56D04E5F.8070901@citrix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El 26/02/16 a les 14:08, Roger Pau Monné ha escrit: > It shouldn't be too hard, as I said the code is already there. The > only issue I foresee is that you will have to find somewhere to store > the information about the disk you have locally-attached, so you can > remove it when the guest is destroyed. Hi Roger, I applied the hotplug patches to xen-[kernel|tools] and the machine is stable. However, when I try to create a HVM domU domain with a simple block script it fails (. I have some questions: * The arguments of the block script are path and action, am I right? * Do the block scripts for Linux and NetBSD receive the same arguments as the FreeBSD script? * I see the device has a type (phy, file, iscsi) in the definition of the domain, but I'm not sure how to check its type in the block script (I can check if the file is a block device or a regular file, but what about iscsi?, check if the target param is set?) * Also. I have a domain defined with two disks. In the block script I try to execute xenstore-ls and I'd expect to see two disks there, but there's only the first one. I assume this is because the block script is called for each disk in the domain definition Finally, I ended having a disk defined in the xenstore (/var/db/xenstore) which I can't remove. I removed xen-tools and removed /var/db/xen{store} but it keeps complaining. I'd have expected that the store was under /var/db/ but perhaps I'm missing something. Thank you, Gustau
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56D42A28.8050701>