[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Re: which disks/block device does Xen use at the moment?
Hi, Maybe you'll find these one-liners useful for your case, I've wrote them for machines that use image files as their disks: for i in `xm list | grep -v Name | grep -v Domain | awk '{print $1}'`; do vpath=`xm block-list $i | head -n 2 | tail -n 1 | awk '{print $7}'`; echo $i: `xenstore-read $vpath/params`; done In other words, I do xm block-list domUname | awk '{print $7}' to get virtual paths for domU's block devices and then xenstore-read $vpath/params to find out which image is in use. You can also try xenstore-read $vpath/node I get a name of loop device that image is connected to through this line. "Nico Kadel-Garcia" <nkadel@xxxxxxxxx> wrote in message news:4741B5C7.9010201@xxxxxxxxxxxx > Tomasz Chmielewski wrote: >> Nico Kadel-Garcia schrieb: >> Would be great if Xen registered some "holders" in /sys/block for a >> device it uses - like LVM or RAID does in /sys/block/<device>/holders/ _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |