Martin Dziobek
2005-Dec-21 17:41 UTC
[Xen-users] /dev/loopX not released when domU terminates ?
Hello all, I have some DomU''s with root and swap images on files under Xen 3.0.0 Investigating some cases of boot failure of domUs, I stumbled upon the fact that when a domU is shutdown via xm shutdown, not all of its images are released from their /dev/loopX - devices. That is, for i in /dev/loop*; do losetup $i; done still shows output for that image. It seems to me that the image mounted first when the domU starts up is released properly on shutdown; the second one stays connected to its /dev/loop even after shutdown. Bug or feature ? Or doesnt matter at all ? Any clarification appreciated ... Thanks, Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Till Franke
2006-Jan-04 07:56 UTC
Re: [Xen-users] /dev/loopX not released when domU terminates ?
Hello, Martin Dziobek wrote:> Hello all, > > I have some DomU''s with root and swap images > on files under Xen 3.0.0 > > Investigating some cases of boot failure of domUs, > I stumbled upon the fact that when a domU is shutdown > via xm shutdown, not all of its images are released > from their /dev/loopX - devices.Same issue here, also when domains are migrated between servers. Sometimes the loop devices can be cleaned up (with losetup -d <loopdev>), after a while I get "ioctl: LOOP_CLR_FD: Device or resource busy" for more and more loopdevs. Of three loop devices in use per domU, always at least one remains set up after migration finishes. Does anyone have an idea or fix about this? XEN-7608 on SUSE Linux 10.0. And it does matter, after a while no loop devices are usable and the system has to be rebooted... Regards, Till.> > That is, > for i in /dev/loop*; do losetup $i; done > still shows output for that image. > > It seems to me that the image mounted > first when the domU starts up is released > properly on shutdown; the second one stays > connected to its /dev/loop even after shutdown. > > Bug or feature ? Or doesnt matter at all ? > > Any clarification appreciated ... > > Thanks, > Martin > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Till Franke SUSE Linux GmbH Novell http://www.novell.com/open _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users