36
votes
Accepted
Database accidentally deleted with a bash script
Easy enough. The // sequence isn't a comment in bash (# is).
The statement OUT_DIR=x // text had no effect* except a cryptic error message.
Thus, with the OUT_DIR being an empty string, one of the ...
36
votes
Server motherboard died and took Intel RAID controller configuration with it. How do I recover the data?
Put all three disks into the Linux machine. Serously. Your RAID is likely using "intel matrix storage manager" (IMSM) on-disk metadata format, which is natively recognized by modern Linux ...
29
votes
Accepted
Proper way to deal with corrupt XFS filesystems
If you're attempting to run xfs_repair, getting the error message that suggests mounting the filesystem to replay the log, and after mounting still receiving the same error message, you may need to ...
19
votes
Need to recover RAID 6 array
Recovering individual disks will only get you partial data. The "independent" means that the disk drives are not aware of each other, and can be exchanged separately.
The best way to recover ...
16
votes
Break up a dd image into multiple files
It is my command line:
dd if=/dev/sda bs=4M | gzip -c | split -b 2G - /mnt/backup_sda.img.gz
It will create 2GB files in this fashion:
backup_sda.img.gz.aa
backup_sda.img.gz.ab
backup_sda.img.gz.ac
...
13
votes
Accepted
Does one failed drive + one single bad sector destroy an entire RAID 5?
The short answer is that it depends.
In the situation you describe (a faulty disk + some unreadable sectors on another disk) some enterprise RAID controllers will nuke the entire array on the grounds ...
8
votes
How to recover XFS file system with "superblock read failed"
The answers above did not help me when I had this issue today (about 9.5 hours ago now). I'll present here the solution that worked for me, along with the reasons why the previous answer did not help.
...
8
votes
Getting files out of XFS with 64kb block size
I've done a bit of research into your problem. Not easy but looks feasible.
The area of code breaking you is this (well, in newer kernels):
fs/xfs/libxfs/xfs_sb.c
271 /*
272 * ...
8
votes
photorec photo recovery software not seeing my mounted filesystem - trying to use photorec to recover lost jpegs
You can tell photorec explicitly which block device to work with, e.g. photorec /dev/vda1. It must not be mounted.
Of course, before photorec, you should try using extundelete, which may undelete ...
8
votes
Database accidentally deleted with a bash script
1) He erroneously assumed that // was a bash comment. It is not, only # is.
The shell interpreted // text as a normal command, and did not find a binary called //, and did nothing.
In bash, when ...
7
votes
Server motherboard died and took Intel RAID controller configuration with it. How do I recover the data?
That was end of life'd a decade ago dude! fortunately that's not a very clever disk controller, it's just a fairly normal Intel RST so there's only so many configurations it could be; R0 - unlikely, ...
6
votes
HP Microserver Gen8 RAID0 rebuild loss data
So lets see if I got this straight:
You had two Western Digital HDDs in a RAID 0 array.
You removed them and replaced them with some Seagate HDDs, and created a new RAID 0 array.
You then replaced ...
6
votes
Accepted
Recover the file system from a corrupted RAID1
You can use a loop mount to mount a partition in your disk image as a device. When creating the loop device, you give an offset which makes the loop device begin at that spot in the partition.
This ...
6
votes
Recover data from failed RAID 5 Dell Poweredge T710 Server
Wow. This question. Another example of what not to do. You don't have appropriate backup methods in place. You don't know if your backups are any good and have no good way to test them. You have data ...
5
votes
Recover deleted VMware virtual disks, i.e. *.vmdk files
Deleting a VMDK file is a bit like removing physical hard drives from a server and throwing them away. Too bad.
Fortunately, this kind of thing is exactly what backups are for! Your best bet is to ...
5
votes
Unexpected shutdown and data loss
Why are your servers crashing so often?
In case of power failure:
Get a RAID controller with backup battery / capacitor
Get SSDs with build in capacitors, so they have time to write their cache
Get ...
5
votes
Accepted
MySQL fails to start [InnoDB Repair]
I have had this issue before and followed this guide to solve it:
Steps to get it back up.
Stop mysqld.
Backup /var/lib/mysql/ib*
Add the following line into /etc/my.cnf
innodb_force_recovery = 4
...
5
votes
Fix RAID 5 with two drives containing bad blocks
Backup ASAP. If you want to be 100% sure you'd better hire some recovery service. It's going to cost you some $$$ but you decide does it worth it or not.
5
votes
Accepted
Can data be recovered from a scrambled SSD?
The answer is "maybe", but it's best to assume "yes".
When you overwrite an existing file on a solid-state drive, special drivers that handle wear leveling generally often don't actually overwrite ...
5
votes
Accepted
How can I recover my ZFS pool, which suddenly went offline and reports that it was "last used by another system"?
zpool import -f tank, just like it says in the error dialog.
This is a fairly uncommon bug, but I've seen it happen before (maybe once or twice on 100+ machines over the last ten years); if something ...
5
votes
Is there a way to manually replace one disk in Microsoft Storage Spaces?
Nope, all of your data is gone. You replace the disk that failed, you reconfigure your new RAID set as RAID10 now, and recover your original data from backup.
4
votes
Recover RAID 1 data without controller
Your single "sibling" drive should be working. Spawn any recent and decent backup app and just... do a backup! Then you can build new RAID1 using whatever tech you want (better something built-in into ...
4
votes
Accepted
How to recover a cached LVM with cache on ram-disk?
you can boost disk performance to native RAM-throughput using this
technique
No, not quite. Once the cache is full of writes, write throughput degrades to what the underlying disk can do. And the ...
4
votes
Database accidentally deleted with a bash script
1) Bash comments start with #. Sorry for your loss.
2) Restore from backup is the only way to proceed here, unfortunately.
4
votes
Accepted
Data corruption when rsync command fails
It does have a built-in mechanism. The new file will be created with a temporary name, and will only be renamed to the "real" filename once it's completely transferred.
You should read the rsync man ...
4
votes
Recover data from RAID 5 with VMFS data store
It is possible to move the RAID from one server to another only if the RAID controllers are the same or from the same vendor. Metadata stored on the drives, but the configuration is located in the ...
4
votes
Accepted
Recover files from deduplicated volume in Windows Storage Server 2016
You simply do - there is no "recover". Besides you should have a backup - unless you forgot to install the deduplication feature, the OS knows how to handle the files. Now, if you were just ...
3
votes
Recover the file system from a corrupted RAID1
Although I have never tried using it for ext-based filesystems, I have had lots of success recovering data with TestDisk on Windows systems in the past.
http://www.cgsecurity.org/wiki/TestDisk
Their ...
3
votes
How can RAID deal with inconsistent data?
RAID VOLUMES WITH PARITY STRIPE
On the Areca controllers we use (and all modern hardware RAID controllers) during a consistency check the controller can detect if the corruption is with the parity ...
3
votes
How unlikely it is that 2 SSD disks in a RAID 1 crash and how to recover from it?
It's quite unlikely but at the same time, not impossible. As always, a RAID is no substitute for a backup. If you don't have a backup, something like this is guaranteed to happen!
Recovery: It's ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
data-recovery × 453linux × 84
raid × 73
hard-drive × 42
lvm × 34
disaster-recovery × 32
raid5 × 30
ubuntu × 27
backup × 26
mysql × 23
ext4 × 23
zfs × 21
filesystems × 20
partition × 20
windows × 17
mdadm × 17
hardware-raid × 15
raid1 × 15
ntfs × 13
xfs × 12
debian × 11
storage × 11
windows-server-2008 × 10
ext3 × 10
fsck × 10