224
votes
Monday morning mistake: sudo rm -rf --no-preserve-root /
Fact is? At this point, there's no simple/easy automatic fix for this. Data recovery is a science and even the basic, common tools need someone to sit down and ensure the data is there. If you're ...
48
votes
Monday morning mistake: sudo rm -rf --no-preserve-root /
I've had the same issue but just testing with a harddrive, I've lost everything.
I don't know if it'll be useful but don't install anything, don't overwrite your data, you need to mount your hard ...
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 ...
22
votes
How to backup GPG?
First of all, before we begin, in the commands below, [email protected] should be replaced with the specific identifier of your GPG key. You can use your email address associated with the key, the long ...
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 ...
15
votes
Monday morning mistake: sudo rm -rf --no-preserve-root /
I would try to recover backup machine, where all copies were stored:
1st step - Make a backup of this erased "backup machine" drives with
dd comand.
2nd step - Use testdisk to recover files.
So lets ...
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 ...
12
votes
Accepted
How long will it take to create a new EBS volume from a 1TB snapshot?
How can I figure out how long it will take to create the new EBS volume?
Create one.
And then, try using it. Continue using it over a period of hours and days, and note what you observe.
The first ...
11
votes
How to backup GPG?
In addition to @serghei's answer, check the documentation of gnupg.
It says that you should backup:
~/.gnupg/gpg.conf (standard configuration file)
~/.gnupg/pubring.gpg (legacy public keyring)
~/....
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 ...
6
votes
Accepted
How do I configure a stretch cluster without shared storage between two sites?
This is an article where you can learn more about the main idea behind Storage Replica, all its prerequisites and features: https://technet.microsoft.com/en-us/windows-server-docs/storage/storage-...
6
votes
Accepted
How to do a snapshot of a Datastore on esxi vmware - datastore snapshot as fast recovery backup
Snapshots aren't backups! You really need to follow 3-2-1 backup rule to ensure your data is safe. To accelerate your tape backup and recovery process I'd suggest to go from Disk-to-Tape to Disk-to-...
4
votes
Accepted
Allowed production maintenance during business hours
Maintenance can be done at any time so long as it doesn't impact business systems.
In your case of issues that caused a critical failure, the issue wasn't that it couldn't be done, its that either ...
4
votes
Accepted
Can't get my RAID array out of degraded mode
The critical lines are
Jun 5 13:21:55 vault kernel: [154199.676477] blk_update_request: I/O error, dev sda, sector 954247056
Jun 5 13:21:55 vault kernel: [154199.676485] md/raid1:md126: sda: ...
4
votes
How to do a snapshot of a Datastore on esxi vmware - datastore snapshot as fast recovery backup
As BaronSamedi mentioned, to boost up the backup and recovery process you need to use Disk-to-Disk-to-Tape backup. For such case, Starwind VTL is the most suitable solution with an optional offload to ...
4
votes
Build mirroring on top of SQL2008R2 SQL cluster
This article explains the issue pretty well: https://technet.microsoft.com/en-us/library/ff658546(v=sql.100).aspx.
I am using Failover Clustering for most of my highly available DBs (both Oracle and ...
4
votes
Is it compulsory to pick only a region pair as Azure DR region?
Azure makes certain guarantees about region pairs including that it will not upgrade a service in both regions simultaneously. This allows users to architect HA/DR solutions that use both regions and ...
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
In 2020 - are there any viable Linux block-level replication alternatives for DRBD?
For DBs and DB-aware & dependent applications their proprietary replication is always preferred over the "generic" block-level one due to many reasons, DB consistency is one of those. So use SQL ...
3
votes
Is it compulsory to pick only a region pair as Azure DR region?
Will there be any constraints on functionality if I choose an Azure
region other than the Azure region pair (say, US East 2, US West)?
Based on my knowledge, there are no constraint on ...
3
votes
Mysql server crashes without leaving any log behind
It is possible that from time to time MySQL server fall prey of Linux Out-of-Memory (OOM) killer process. You may find traces of such activity in /var/log/syslog or in an output of the dmesg command.
...
3
votes
Can't get my RAID array out of degraded mode
Maybe give this guys approach a try if you are brave (or desperate) enough: http://matrafox.info/how-to-get-md-raid-array-to-rebuild-even-if-read-errors.html
His hack forces the badblocks to be ...
3
votes
Accepted
How do you securely shred a file from a RAID 6?
It all depends on the RAID (and file system) implementation. In a basic RAID 6 implementation, you can just shred the file before deleting it from the file system.
This works because writing to the ...
3
votes
Monday morning mistake: sudo rm -rf --no-preserve-root /
How would you move forward from here?
I would swear off using rm for the rest of my life and think that it's madness that trash-cli isn't the default removal command on nix systems.
https://github....
3
votes
Can I restore a SQL Server instance from file backups only?
At its most basic: You put the files (the SQL Database and its transaction logs) somewhere that SQL can access them, and then you "attach" an existing database, pointing it to those files.
You can do ...
3
votes
Recover ZFS data
Michael Hampton comments were the solution for this.
It turns out that OMV in fact didn't use ZFS at all but just marked the drives as ZFS members.
I have dd-ed one of the drives and on the image I ...
3
votes
Recovering lost VHDX / VM (deleted by Veeam)
I assume that blocks, where VHDX and AVHDX were located, are now rewritten and tools such as EaseUS cannot properly restore VHDX and AVHDX.
In the case AVHDX is smaller than the previous one, this ...
3
votes
Accepted
Safe to delete managed incremental snapshots on Azure?
This question is answered here; https://azure.microsoft.com/en-gb/blog/announcing-general-availability-of-incremental-snapshots-of-managed-disks/
Now, if you deleted the first incremental snapshot ...
3
votes
Cloud definition met?
Please restate your question in a way that's not opinion based.
Most cynics will tell you that a cloud service only means you're dependent on somebody else's computers. It's always up to you as a ...
3
votes
Need to recover RAID 6 array
As others said, to recover any significant amount of data from a RAID-6 array you need at least N-2 drives from the array (N being the total number of drives used in the array). From single drives you ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
disaster-recovery × 359backup × 57
data-recovery × 32
linux × 25
sql-server × 21
active-directory × 20
raid × 19
replication × 17
hard-drive × 16
windows × 15
mysql × 15
windows-server-2008 × 14
windows-server-2003 × 13
amazon-web-services × 11
azure × 11
vmware-esxi × 11
exchange-2010 × 10
lvm × 10
exchange × 9
sql-server-2008 × 9
sql-server-2005 × 9
high-availability × 9
virtualization × 8
failover × 8
ubuntu × 7