Kai Schaetzl
2008-May-13 17:47 UTC
[Xen-users] Show which image/disk is attached to a DomU?
There doesn''t seem to be a good way to determine which image/disk/lv a xenstore-managed DomU uses. With a DomU I "create" I can always look in the configuration file, but with DomU''s that are in xenstore there''s no good way to check the configuration. xenstore-ls or xenstore-list are of no real help as they list arbitrary information in highly unorganised order and there''s almost no documentation apart from this: http://kb.xensource.com/entry.jspa?externalID=181 Is there a good and easy way to list the images/block devices a DomU uses/is configured to use? Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nick Anderson
2008-May-13 17:54 UTC
Re: [Xen-users] Show which image/disk is attached to a DomU?
Kai Schaetzl wrote:> There doesn''t seem to be a good way to determine which image/disk/lv a > xenstore-managed DomU uses. With a DomU I "create" I can always look in > the configuration file, but with DomU''s that are in xenstore there''s no > good way to check the configuration. xenstore-ls or xenstore-list are of > no real help as they list arbitrary information in highly unorganised > order and there''s almost no documentation apart from this: > http://kb.xensource.com/entry.jspa?externalID=181 > > Is there a good and easy way to list the images/block devices a DomU > uses/is configured to use? > > Kai >xenstor-ls | grep params seems to pull up the lvs its using -- Nick Anderson <nick@anders0n.net> http://www.cmdln.org http://www.anders0n.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nick Anderson
2008-May-13 17:56 UTC
Re: [Xen-users] Show which image/disk is attached to a DomU?
Nick Anderson wrote:> xenstor-ls | grep params > seems to pull up the lvs its usingI guess it does not exactly tell you which domain it belongs to though -- Nick Anderson <nick@anders0n.net> http://www.cmdln.org http://www.anders0n.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kai Schaetzl
2008-May-13 19:11 UTC
Re: [Xen-users] Show which image/disk is attached to a DomU?
Nick Anderson wrote on Tue, 13 May 2008 12:56:04 -0500:> I guess it does not exactly tell you which domain it belongs to thoughIndeed, and it lists information that doesn''t fit at all. :-( For instance, xm list shows two DomUs, vm1 and vm2. vm1 is running, vm2 is not. xenstore-ls |grep params shows only params = "/dev/xenvm/vm1", the information for the running vm. However, if I grep in the output for vm2 or vm3 or vm4 it finds something for them as well. This means, I can get this information from xenstore-ls only for running domains and at the same time it contains information for DomU that don''t exist at all (they did, but were removed). A mess. Nevertheless, thanks for the params grep. I had tried some, but had overlooked that. It may be useful at least sometimes. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-May-13 19:59 UTC
Re: [Xen-users] Show which image/disk is attached to a DomU?
xenstore-ls /local/domain/<domID>/device/vbd http://wiki.xensource.com/xenwiki/XenStoreReference http://wiki.xensource.com/xenwiki/XenStore runningxen.com ;) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-May-13 21:10 UTC
Re: [Xen-users] Show which image/disk is attached to a DomU?
what about xm list --long That should give you the information you need right? Cheers, Todd On Tue, May 13, 2008 at 3:59 PM, Todd Deshane <deshantm@gmail.com> wrote:> xenstore-ls /local/domain/<domID>/device/vbd > > http://wiki.xensource.com/xenwiki/XenStoreReference > http://wiki.xensource.com/xenwiki/XenStore > runningxen.com ;) >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users