[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Re: [LUG] Deleted qemu image
- To: list@xxxxxxxxxxxxx
- Subject: Re: [LUG] Deleted qemu image
- From: Mark Andrew Smith via list <list@xxxxxxxxxxxxx>
- Date: Fri, 17 Jul 2020 07:18:36 +0100
- Autocrypt: addr=marksmithlinux@xxxxxxxxx; keydata= mQENBF4Qw8ABCACwsCKCaTsriES03Lqk5T8cDcw/6hnwqnIuSqLNxEwiQ9ogG8JPjVMA88Md lWWpKUXZbr7CaH4BkI4mYsm/E5ulOMYm7XXoYYkOBaDKb4U1hJFtjRHh8JbdTgI7XRiU4ZZR VgzWo+GhZvWGwTD5elVglExawt0BzF/UNYUMOCf8qDl3U8AeqjzJjeh29G3IFlDa58avUmyq ds9Kxptgsr+caLxtbXJH4GJBFrHj5PlBqbIEvCaSk5sRbXY1QT/T4guy+qz2byhqvtuVh6Le ET8e6zG5SEFtM1Se15Gc/qJeCqIsYz87vrf+1XieVSg6IwFlY8ciuPFuYAKb4+bioLgNABEB AAG0JU1hcmsgU21pdGggPG1hcmtzbWl0aGxpbnV4QGdtYWlsLmNvbT6JAVQEEwEIAD4WIQQ3 8E+uvPlSW9NLYkoLGVR13BzgVgUCXhDDwAIbIwUJA8NzAAULCQgHAgYVCgkICwIEFgIDAQIe AQIXgAAKCRALGVR13BzgVsFxCACPMaA5hc3G1ft8/0k961xR9xaCfBjTe3Upf8lxKQwsTAFK ORfefxwuF06DCW2G/Ch6BKcAJB3b2geUgq9d/7b8T1+2BDaMeCx8gjddJ1SArRWAyATIHY1k Y2ULKL/UQe1GDqY+vRdPOIccyDMPp/cnTyM19JPwQApB+Q+fbW3NGV0FNuCRPaVJwBDu2XEr jLnlvGkV9qQ2XqbDMV8j0P3H1glmmJLhQIClKxJLIsBLxB154mg9zhU4K5hjg2f+WheP6rqD gzI+Q3RPJzyOmMN1+u6fe4sboPXq5ExCtEq1or7lek6hKNSPF98W5wyVI5hliHO0bjV7/2gw rTcyV+sFuQENBF4Qw8ABCADYYRc4MH5KxMfmG91FczM4IrLYBXwGPqkZLAsubcblfXXXOMDT OoCA+VsBgtJqejy1aL8cJgw5fajP1VbneMm6g+0tMD+0I7pVlGGZ13xr51TwmsQqM9gqWRIT Ja54cJyy12F0bECqcqO2hg5x6mWV3Tiiij5KooCoT97aAHIhjwmchjQDNVcOqeIDXsNz1uj4 XZafQovmzBXN/5JAY7JllEy3Uq2GgSqxH0Qx52yJ4V0HALYa0jNtKu/eIFg6Xu9aF8+9jbmN 1usVsMqglPv6hpDRTZK0WaH7HhVnDS8iqccWRS3N0EavBHhRTGPULAyzazqmv6z8KhxWPHyf iWWhABEBAAGJATwEGAEIACYWIQQ38E+uvPlSW9NLYkoLGVR13BzgVgUCXhDDwAIbDAUJA8Nz AAAKCRALGVR13BzgVqq2CACFkjEJfHLSHqFI36WMl65Xyj85rLPtNbSz56YJDNXtXIIIlIb3 j6+2ntjTQSaoWiNAbNzY44GBMd5miOrk1p3C7+mPjf+uwVu2fUh7ugAMsIWhOAxAICIAgUKE LKAI9GUfIgXCFxp40991QmV/XSx+UKf+89gqnIXenNZueBVB9qJ9H02DfzOHyxrxjHUbHlMA IrGt4FAvsmPAIdXeJ65e8J4uOToclODKdPmn30AyqTGc4VadtDL/C6RnyQYTDStN7XxnLs/K tt7w1qKlJCuSYfY131DTOcBT/ypNJ9whUn4x6gR43aAU57KlF8s9v5afrf5/Hxx8mI2Axjk+ +VE1
- Cc: Mark Andrew Smith <marksmithlinux@xxxxxxxxxxxxxx>
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dcglug.org.uk; s=1586423162; h=Sender:Content-Type:Cc:Reply-To:From: List-Subscribe:List-Help:List-Post:List-Unsubscribe:List-Id:Subject: In-Reply-To:MIME-Version:Date:Message-ID:References:To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner: List-Archive; bh=rUGP2/EhTP4dGwppmcCtF8eTttAfmqOzJXqkc8SvVg4=; b=vIBuAf9Vlee2 V4ptmGGYyfs6N2fMJf/WgqgQORgM8273A0tDX8x73PfuL96QhI0gLEgjluicQA3UTwLAqvNEbYggu 8PWYn7Q+Ufa3mzIF4mX/BsxZrkSa1m5nWOxReTcpEcZ5ib4MIwbWgeiuhjiwjpmeroczBtIZDNUbm 46la4=;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:subject:to:references:autocrypt:message-id:date:user-agent :mime-version:in-reply-to; bh=W/QkNVsuOQQ1krAgRIMtCereMMaYpjZ1MRICgcWMB5U=; b=BbY9NI+rwMGHokMm+qEMHmvpXkxYsNVyaxzRNJkiN1/7zFYs9U1zIjYaKvYZSLpseV 6+QLK8R+g+ek/afbcUWM4qftGeHKY6PytL/VLFgTt8b4rio9yQwwVcpSA3nxEtwyMaQU HPXCeX0wF7Vc3IL6KibVfuHsDbjV1u0CTiUmFygHao+jTyi1xl6ULXpDhhYcrJ6q6Xu5 Kh8rolRFawaCnivAXuRsf4S4KfMMvcX8JW18HEg/gJtrACmT6+tCwRzb9NL8aosGLhgI lwAc5nF1/e2bo2Msl4NAKugDTBlEnZqCKUhw+1CnhVqJnwY3YWu2kQ+UAFwHoEIeeGs8 XjAg==
On 17/07/2020 00:04, fraser kendall wrote:
> On Thu, 16 Jul 2020 11:37:03 +0100
> fraser kendall <lfs.mailing@xxxxxxxxxxxx> wrote:
>
> Many, many thanks to everyone for their invaluable posts. The image
> has been restored and is now running on two identical machines. I'll
> post below for the record, but wanted to put my thanks at the top of
> the list. The file was retrieved and restored on the critical machine
> without any loss of service or uptime; the rescue process was seamless.
> So, thanks to everyone for these most excellent advices. Again and
> again.
>> I have just done the stupidest thing. I was freeing up (rm -rf) space
>> on what I thought was a storage directory (/srv), but I have now just
>> discovered that it contained a critical qemu image. The image is a W7
>> VM and is still running; it appears unaffected. The /srv partition
>> is the largest on this machine and the testdisk recovery image of this
>> partition (~170G) is too large to fit anywhere on the hard drive.
> [cut]
>> Best option: 1) can I retrieve the deleted qcow image from a running
>> instance of that image?
> Yes.
> 1) open root terminals: a,b,c,d
> a) # find /proc | grep w7
> note pid of deleted file and keep terminal open for
> reference
> and b) # tail -c +0 -f /proc/[pid]/fd/xxx > /srv/qemu-w7-tailed
> (keeps second instance of file in /proc)
> and c) # rsync -a /proc/[pid]/fd/xxx /srv/qemu-w7-rsync
> and/or d) # cp /proc/[pid]/fd/xxx /srv/qemu-w7-cp
>
> 2) copy the 'tailed; image to an appropriate second machine
> copy the original qemu-system commands for the deleted image
> and issue them for the 'tailed' image on the second machine
> confirm that the 'tailed' image is a working clone of the
> original
> when *completely* satisfied it is working as expected
>
> 3) close the original instance on the first machine
> (Point of no return!)
> issue the same qemu-system commands for the 'tailed' image on
> the first machine and confirm it is a working clone of the original
> When fully satisfied all is in order, the clone on the second
> machine can be closed and archived as a backup
> the rsync and cp versions are redundant
>
>> Fall back option: 2) does anyone know if a new installation of the
>> (Dell) W7 iso will still activate now that W7 is EOL?
> No. It won't even install. The installation arrests after windows
> files are unpacked: qemu enters a terminal 'pause'.
>>
>> I know that option 2 (writing to disk) will reduce the possibility of
>> a testdisk recovery. So, here's Q3: can i squeeze the second W7 VM
>> into a 6G qcow image (remaining free space in /home)?
> No. the cloned image is 23G.
>
> Many thanks again
>
> fraser
>
You forgot step 4:
4) Make a bloody backup!
lol
--
Kind regards,
Mark Smith
juglugs.com
PGP fingerprint: FE57 FF27 C090 186C BFDE EF8B 9502 6421 F69F 0742
Attachment:
signature.asc
Description: OpenPGP digital signature
--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq