[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What/How Files to Remove for a Xen Guest



On Sat, Jan 09, 2016 at 06:05:51PM -0800, ray wrote:
I would like to remove a specific domU (test01--pv--guest) from my machine.  I am not sure how far/to what extent to remove files.  Here are the files and properties it seems I should remove:

For this task, you're actually better off using higher-level tools than you're using. Try 'lvdisplay' to list logical volumes and 'lvremove' to delete them.

HOWEVER, before you go doing that, consider going one step higher and asking Xen to do the work for you (that way, any metadata associated with the guest should also be deleted)... Oh. According to some searching, the ability for Xen to delete guests was removed. It seems the correct way to do it IS to use lvremove. Odd.


lrwxrwxrwx 1 root root 10 Jan  9 11:05 /dev/disk/by-id/dm-name-xenvg-test01--pv--guest--disk -> ../../dm-3

lrwxrwxrwx 1 root root 10 Jan  9 01:03 /dev/disk/by-id/dm-name-xenvg-test01--pv--guest--swap -> ../../dm-2

lrwxrwxrwx 1 root root 7 Jan  9 11:05 /dev/mapper/xenvg-test01--pv--guest--disk -> ../dm-3

lrwxrwxrwx 1 root root 7 Jan  9 01:03 /dev/mapper/xenvg-test01--pv--guest--swap -> ../dm-2

lrwxrwxrwx 1 root root 7 Jan  9 11:05 /dev/xenvg/test01-pv-guest-disk -> ../dm-3

The above point to dm-2 and dm-3.
brw-rw---- 1 root disk 254, 0 Jan  9 01:03 /dev/dm-0
brw-rw---- 1 root disk 254, 1 Jan  9 01:03 /dev/dm-1
brw-rw---- 1 root disk 254, 2 Jan  9 01:03 /dev/dm-2
brw-rw---- 1 root disk 254, 3 Jan  9 11:05 /dev/dm-3
brw-rw---- 1 root disk 254, 4 Jan  9 01:03 /dev/dm-4
brw-rw---- 1 root disk 254, 5 Jan  9 01:03 /dev/dm-5
brw-rw---- 1 root disk 254, 6 Jan  9 01:03 /dev/dm-6
brw-rw---- 1 root disk 254, 7 Jan  9 01:03 /dev/dm-7
Will they be deleted automatically or should/can I remove them?

How do I check the need for the other dm-? files?

I also found this set in /etc/lvm/archive/:
-rw------- 1 root root 2909 Oct 17 00:41 Relaise-vg_00000-1453251236.vg
-rw------- 1 root root 2929 Oct 24 22:08 Relaise-vg_00001-1530642081.vg
-rw------- 1 root root 2924 Oct 25 19:33 Relaise-vg_00002-328450675.vg
-rw------- 1 root root 2901 Oct 26 19:53 Relaise-vg_00003-1555350964.vg
-rw------- 1 root root 2902 Oct 26 19:53 Relaise-vg_00004-1044927704.vg
-rw------- 1 root root  877 Oct 26 19:59 xenvg_00000-1591222470.vg
-rw------- 1 root root  889 Oct 26 20:21 xenvg_00001-832188200.vg
-rw------- 1 root root 1303 Oct 26 21:20 xenvg_00002-1939380730.vg
-rw------- 1 root root  890 Oct 26 21:22 xenvg_00003-627623137.vg
-rw------- 1 root root 1305 Oct 26 21:36 xenvg_00004-1046275525.vg
-rw------- 1 root root  889 Oct 26 21:37 xenvg_00005-1623887945.vg
-rw------- 1 root root 1303 Oct 26 21:45 xenvg_00006-458563004.vg
-rw------- 1 root root  889 Oct 26 21:47 xenvg_00007-646940886.vg
-rw------- 1 root root 1301 Oct 30 04:31 xenvg_00008-132058722.vg
-rw------- 1 root root 1294 Oct 30 04:31 xenvg_00009-1148349450.vg
-rw------- 1 root root 1323 Oct 30 04:35 xenvg_00010-327226014.vg
-rw------- 1 root root 1735 Oct 30 04:35 xenvg_00011-1925204888.vg
Some of these seem like duplicates.  This may be due to multiple attempts to build the volumes.  Is there a way to determine if all of the are useful?

Ray


--
For more information, please reread.

Attachment: signature.asc
Description: PGP signature


Reply to: