Skip to contentSkip to conversation

Use a consistent directory for dumps

PATCH In review Jeremy Katz 3 participants 3 messages Oct 26, 2006 – Oct 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use a consistent directory for dumps

Instead of scattering xen bits all across the filesystem, we should try to be a bit more consistent. This makes the default location for dumps /var/lib/xen/dump instead of /var/xen/dump as nothing else is using /var/xen

Jeremy

tools/Makefile +1 -1
diff -r a5a3f48e92c9 tools/Makefile
@@ -38,7 +38,7 @@ install: check
 		$(MAKE) -C $$subdir $@; \
 	done
 	$(MAKE) ioemuinstall
-	$(INSTALL_DIR) -p $(DESTDIR)/var/xen/dump
+	$(INSTALL_DIR) -p $(DESTDIR)/var/lib/xen/dump
 	$(INSTALL_DIR) -p $(DESTDIR)/var/log/xen
 
 .PHONY: clean
tools/debugger/gdb/README +1 -1
diff -r a5a3f48e92c9 tools/debugger/gdb/README
@@ -33,6 +33,6 @@ To debug a crashed domU guest:
  1. Add '(enable-dump yes)' to /etc/xen/xend-config.sxp before
     starting xend.
  2. When the domain crashes, a core file is written to
-    '/var/xen/dump/<domain-name>.<domain-id>.core'.
+    '/var/lib/xen/dump/<domain-name>.<domain-id>.core'.
  3. Run 'gdbserver-xen 127.0.0.1:9999 --file <core-file>'.
  4. Connect to the server as for a running guest.
tools/python/xen/xend/XendDomainInfo.py +1 -1
diff -r a5a3f48e92c9 tools/python/xen/xend/XendDomainInfo.py
@@ -986,7 +986,7 @@ class XendDomainInfo:
         try:
             if not corefile:
                 this_time = time.strftime("%Y-%m%d-%H%M.%S", time.localtime())
-                corefile = "/var/xen/dump/%s-%s.%s.core" % (this_time,
+                corefile = "/var/lib/xen/dump/%s-%s.%s.core" % (this_time,
                                   self.info['name'], self.domid)
                 
             if os.path.isdir(corefile):

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hi, Jeremy

Quoted 5 lines

Instead of scattering xen bits all across the filesystem, we should try to be a bit more consistent. This makes the default location for dumps /var/lib/xen/dump instead of /var/xen/dump as nothing else is using /var/xen

I agree your patch.

But I have one comment. DomU dumpfile is big,
so I think better that we can specify the default directory in /etc/xen/xend-config.sxp.
How about you?

Best Regards,

Akio Takebe

#2 lore raw
Quoted 1 line
Quoted 1 line

Instead of scattering xen bits all across the filesystem, we should

try

Quoted 10 lines
Quoted 4 lines

to be a bit more consistent. This makes the default location for dumps /var/lib/xen/dump instead of /var/xen/dump as nothing else is using /var/xen

I agree your patch.

But I have one comment. DomU dumpfile is big,
so I think better that we can specify the default directory in /etc/xen/xend-config.sxp.
How about you?

That's a great idea. Allowing override in the guest config file wouldn't be a bad idea either.

Ian