* [gentoo-user] OT: shot an XFS-filesystem, oh my
@ 2012-09-26 20:13 Stefan G. Weichinger
2012-09-27 0:32 ` Michael Orlitzky
0 siblings, 1 reply; 5+ messages in thread
From: Stefan G. Weichinger @ 2012-09-26 20:13 UTC (permalink / raw
To: gentoo-user
I had an XFS-filesystem within a KVM-VM (32 bit Gentoo, so it isn't that
off-topic, btw ;-) )
... and I did a lot of work within that filesystem over the last 2 days.
Unfortunately it ran full so I decided to shutdown the VM, use qemu-img
to resize that image-file (raw format), reboot the VM ... and deleted
the partition /dev/vdb1 (virtio ...) and recreated vdb1 with the full
size of the underlying image-file.
XFS doesn't like that.
Now I lost my xfs-superblock and xfs_check/xfs_repair tell me that they
find "candidates for 2nd superblock" but can't decide to actually use
them :-(
The XFS-fs was fine before, unmounted correctly ...
I am googling and trying ... does anyone have a hint on this?
If I lose it, OK. No backup (ok, maybe one from a week ago ... without
the latest work of today), but it was mostly a pulled git-repo I worked
with. I got the generated binaries and have the learned steps documented
so I can live with it. But it would be great to somehow get that stuff
online again.
Thanks, greets, Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] OT: shot an XFS-filesystem, oh my
2012-09-26 20:13 [gentoo-user] OT: shot an XFS-filesystem, oh my Stefan G. Weichinger
@ 2012-09-27 0:32 ` Michael Orlitzky
2012-09-27 8:40 ` Stefan G. Weichinger
0 siblings, 1 reply; 5+ messages in thread
From: Michael Orlitzky @ 2012-09-27 0:32 UTC (permalink / raw
To: gentoo-user
On 09/26/2012 04:13 PM, Stefan G. Weichinger wrote:
>
> I had an XFS-filesystem within a KVM-VM (32 bit Gentoo, so it isn't that
> off-topic, btw ;-) )
>
> ... and I did a lot of work within that filesystem over the last 2 days.
>
> Unfortunately it ran full so I decided to shutdown the VM, use qemu-img
> to resize that image-file (raw format), reboot the VM ... and deleted
> the partition /dev/vdb1 (virtio ...) and recreated vdb1 with the full
> size of the underlying image-file.
>
> XFS doesn't like that.
That won't work with any filesystem. I think instead of that last step,
you should have booted to a livecd and used GParted to resize the
partition. I went through this once:
> http://michael.orlitzky.com/articles/resizing_a_kvm_or_qemu_disk_image.php
That won't help you get your stuff back but it might help out the next time.
There's proprietary software that can scan the disk for the deleted
partition. They used to be included on Hiren's Boot CD circa 9.0, but
you could easily waste a few hours screwing around with it. If there was
nothing critical and nobody else has any clever ideas, you're probably
better off reinstalling. You should cherish the times you trash
something non-critical.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] OT: shot an XFS-filesystem, oh my
2012-09-27 0:32 ` Michael Orlitzky
@ 2012-09-27 8:40 ` Stefan G. Weichinger
2012-09-28 16:52 ` geez
0 siblings, 1 reply; 5+ messages in thread
From: Stefan G. Weichinger @ 2012-09-27 8:40 UTC (permalink / raw
To: gentoo-user
Am 27.09.2012 02:32, schrieb Michael Orlitzky:
> That won't work with any filesystem. I think instead of that last
> step, you should have booted to a livecd and used GParted to resize
> the partition.
Yeah, my fault, stupid ... :-(
I went through this once:
>
>> http://michael.orlitzky.com/articles/resizing_a_kvm_or_qemu_disk_image.php
>
>>
> That won't help you get your stuff back but it might help out the
> next time.
>
> There's proprietary software that can scan the disk for the deleted
> partition. They used to be included on Hiren's Boot CD circa 9.0,
> but you could easily waste a few hours screwing around with it. If
> there was nothing critical and nobody else has any clever ideas,
> you're probably better off reinstalling. You should cherish the times
> you trash something non-critical.
Thanks, yes ...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] OT: shot an XFS-filesystem, oh my
2012-09-27 8:40 ` Stefan G. Weichinger
@ 2012-09-28 16:52 ` geez
2012-09-29 11:31 ` Stefan G. Weichinger
0 siblings, 1 reply; 5+ messages in thread
From: geez @ 2012-09-28 16:52 UTC (permalink / raw
To: gentoo-user; +Cc: Stefan G. Weichinger
Howdy,
you could do worse than try scanning with testdisk, it's saved lost
effort caused from 'experiments' with raid controllers before,
http://www.cgsecurity.org/wiki/TestDisk
On 27/09/2012 09:40, Stefan G. Weichinger wrote:
> Am 27.09.2012 02:32, schrieb Michael Orlitzky:
>
>> That won't work with any filesystem. I think instead of that last
>> step, you should have booted to a livecd and used GParted to resize
>> the partition.
> Yeah, my fault, stupid ... :-(
>
> I went through this once:
>>> http://michael.orlitzky.com/articles/resizing_a_kvm_or_qemu_disk_image.php
>> That won't help you get your stuff back but it might help out the
>> next time.
>>
>> There's proprietary software that can scan the disk for the deleted
>> partition. They used to be included on Hiren's Boot CD circa 9.0,
>> but you could easily waste a few hours screwing around with it. If
>> there was nothing critical and nobody else has any clever ideas,
>> you're probably better off reinstalling. You should cherish the times
>> you trash something non-critical.
> Thanks, yes ...
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] OT: shot an XFS-filesystem, oh my
2012-09-28 16:52 ` geez
@ 2012-09-29 11:31 ` Stefan G. Weichinger
0 siblings, 0 replies; 5+ messages in thread
From: Stefan G. Weichinger @ 2012-09-29 11:31 UTC (permalink / raw
To: gentoo-user
Am 28.09.2012 18:52, schrieb geez:
> Howdy,
> you could do worse than try scanning with testdisk, it's saved lost
> effort caused from 'experiments' with raid controllers before,
> http://www.cgsecurity.org/wiki/TestDisk
Formatted since days, and re-constructed nearly all the work already.
It wasn't that much of a loss .. "only" time.
Thanks anyway, Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-29 11:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26 20:13 [gentoo-user] OT: shot an XFS-filesystem, oh my Stefan G. Weichinger
2012-09-27 0:32 ` Michael Orlitzky
2012-09-27 8:40 ` Stefan G. Weichinger
2012-09-28 16:52 ` geez
2012-09-29 11:31 ` Stefan G. Weichinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox