Are xend and xm commands thread-safe? Eg: Can two threads call same xm command simultaneously without causing problems? Thanks. Amitabh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Are xend and xm commands thread-safe? > > Eg: Can two threads call same xm command simultaneously > without causing > problems?Good question. I think xend tries to serializes requests, but I doubt this has been tested much. Mike Wray can probably give a definitive answer. Its certainly something that has been thought about for the design of the new tools. Ian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ian Pratt wrote:>>Are xend and xm commands thread-safe? >> >>Eg: Can two threads call same xm command simultaneously >>without causing >>problems? > > > Good question. I think xend tries to serializes requests, but I doubt > this has been tested much. Mike Wray can probably give a definitive > answer.Xend itself is single-threaded - so it can only do one command at a time. Some commands result in long-lived actions so there is potential for conflict, but the obvious ones are OK as far as I know. For example, you can tell a domain to reboot and then shut it down without reboot or destroy it while the reboot is in progress. Xend will then cancel the reboot. Did you have any specific xm commands you were wondering about?> > Its certainly something that has been thought about for the design of > the new tools. > > IanMike _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I am thinking of calling the xm commands on two different domains in different threads. Each thread is responsible for managing a separate domain. So, is it safe to call two xm commands (same or different) for different domains in different threads? The specific xm commands that I have in mind are: xm create xm shutdown xm destroy xm list xm --live migrate xm save xm restore One thread might be calling `xm destroy` and other thread might be calling `xm list` or any other combination. Thank you, Amitabh From: Mike Wray <mike.wray@hpl.hp.com> To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk> CC: Amitabh Tamhane <amitabh_2k@hotmail.com>,xen-users@lists.xensource.com, ian.pratt@cl.cam.ac.uk Subject: Re: [Xen-users] thread-safe Xend and xm commands? Date: Tue, 29 Mar 2005 09:52:11 +0100 Ian Pratt wrote:>>Are xend and xm commands thread-safe? >> >>Eg: Can two threads call same xm command simultaneously without causing >>problems? > > >Good question. I think xend tries to serializes requests, but I doubt >this has been tested much. Mike Wray can probably give a definitive >answer.Xend itself is single-threaded - so it can only do one command at a time. Some commands result in long-lived actions so there is potential for conflict, but the obvious ones are OK as far as I know. For example, you can tell a domain to reboot and then shut it down without reboot or destroy it while the reboot is in progress. Xend will then cancel the reboot. Did you have any specific xm commands you were wondering about?> >Its certainly something that has been thought about for the design of >the new tools. > >IanMike Amitabh P. Tamhane ''THERE IS NO SHORT-CUT TO SUCCESS!'' _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I have my disk file stored on a NFS server. I have tried these two approaches: A) Mounting the NFS directory in RW mode on a local directory and specifying in my config file the complete path of my disk file. xm create configFile returned with this error: Error: Error creating domain: vbd: Segment not found: uname=file:/MountPoint/diskfile B) As per docs, I then tried NFS Root: I removed the disk="" line from my config file and put in root = "/dev/nfsd" nfs_server = "IP" nfs_root = "/PathOfDiskFile/OnNfsServer" I have already pre-configured static ip, netmask, gateway etc I am getting these errors during domain boot-up: VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "nfsd" or unknown-block(2,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) <0>Rebooting in 1 seconds.. Is there something I am doing wrong or is this a known problem? Thanks, Amitabh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users