I would like to set up a Linux system to use one primary storage device, but copy all writes to that device to another secondary device without blocking for every write - e.g. an NVMe SSD as primary and spinning rust as secondary.  The only way I can think of doing this currently would be to either run a frequent rsync in the background, or something like a btrfs-send of the live stream of disk writes.
I have 2 storage devices; classical slow HDD (750GB, /dev/sda) and faster SSD (128GB, /dev/sdb). Currently I have installed Ubuntu &amp; Mint on same btrfs partition on SSD (/dev/sdb5). My btrfs pool consists of /dev/sdb5.  What I want to achieve is data replication on HDD while keeping SSD performance: Something like this:  For read case it would be ideal for procedure to go like this:   read from SSD check checksum if it verifies.. awesome, give me the data if not, fetch data from HDD and perform error correction through duplicate data   I'd manually run (some tool I'm not sure which one... btrfs check --repair perhaps?) every month or so to check HDD checksums and correct them via SSD data against bitrot.  For write case:   write to SSD sync to HDD when write requirements are low, thus not slowing down the system.   Is this possible and how would I do it?  Bottom line is, I like btrfs and would like it to duplicate data across HDD &amp; SSD drive automatically while keeping SSD excellent performance.   Using SSD as write cache is not an option since it's missing data duplication and security.
Primary filegroup is full SQL Server 2008 On my Amazing 2GB EeePC Surf, I have no more space left!  This is quite normal, and it happens every now and then. Just delete a few large, unneeded files and everything should be good, right?  So I go and find a 2MB file in /tmp, and rm -rf it. Check free space again, and -- still nothing?!  I had to remove about 30MB of files before it registered some free space.  Now, my question is, what's up with this strange behaviour? Is it coherent to extend $\mathbb{R}$ with a reciprocal of $0$? I'm sure this is an obvious question, but I'm having trouble finding the right words to type into Google.  I know that the definition of a ring allows that the additive identity not have a multiplicative inverse, but is this a requirement?  Specifically, is something like $\mathbb{R}\!\left[\frac{1}{0}\right]$ such that $\frac{1}{0} \cdot 0 = 1$ a ring, or does some contradiction arise from allowing the additive identity to have a multiplicative inverse? Create Generic method constraining T to an Enum How does IPv4 Subnetting Work? This is a  about IPv4 Subnets.      Related:               How does Subnetting Work, and How do you do it by hand or in your head?  Can someone explain both conceptually and with several examples? Server Fault gets lots of subnetting homework questions, so we could use an answer to point them to on Server Fault itself.   If I have a network, how do I figure out how to split it up? If I am given a netmask, how do I know what the network Range is for it? Sometimes there is a slash followed by a number, what is that number? Sometimes there is a subnet mask, but also a wildcard mask, they seem like the same thing but they are different? Someone mentioned something about knowing binary for this? Where $F$,$K$ are two fields. What does the element in the composite field $FK$ look like? All the elements are generated by the elements of $F$ and $K$? (combination of the elements of $F$ and $K$) I think $FK$ is pretty close to the free product of $F$ and $K$; is $FK \subsetneq F*K$? Thank you! What does the '=>' syntax in C# mean? When reviewing Suggested Edits on Stack Overflow, I often come across "fixed formatting" suggestions that use  to place emphasis on certain keywords, but isn't actual code.  For example:     I am having a difficult time with a background task in iOS. The problem I seem to be facing is that iOS is silently terminating the App if my background task runs for too long. What can I do to increase time iOS will wait for my background task to complete?   Gets edited to:     I am having a difficult time with a background task in iOS. The problem I seem to be facing is that iOS is silently terminating the App if my background task runs for too long. What can I do to increase time iOS will wait for my background task to complete?   This seems like an invalid use of an inline code span because, well, it isn't code, and it is distracting. There are a    of these edits being made. Often enough they get approved, which reinforces the behavior.  Is this a valid use of inline code spans? If not, should it be edited and corrected? Should edits suggesting these changes be rejected? identity element of $(D_n ,\gcd)$ Let $x*y=\gcd(x,y)$ on $D_n=\{x\in \mathbb N:x |n\}$. I have to prove that $(D_n,*)$ is a commutative monoid and I have a problem when finding the identity element.  $x*e=x$  So $gcd(x,e)=x \to e=xk,k\in \mathbb N^*$ and $e \leq n$  A good $e$ is $0$ but it's not in $D_n$ Regular Expression to match valid dates Every time I call \section{**Section Name**}, a number appears to the left of the name of the section.  How do I hide this number? Search for a string and print everything before and after within a range I have this file:  sometext1{ string1 }  sometext2{ string2 string3 }  sometext3{ string4 string5 string6 }   I want to search this file for a specific string and print everything before this string up to the opening { and everything after this string up to the closing }. I tried to achieve this with sed but if I try to print everything in the range /{/,/string2/ for example sed prints this:  sometext1{ string1 }  sometext2{ string2 sometext3{ string4 string5 string6 }   If I search for the string "string2" I need the output to be:   sometext2{ string2 string3 }   Thanks. Group $G$ of order $p^2$: $\;G\cong \mathbb Z_{p^2}$ or $G\cong \mathbb Z_p \times \mathbb Z_p$ If the order of $G$ is $p^2$ then how do I show that $G$ is isomorphic to $\mathbb Z_{p^2}$ or $\mathbb Z_p\times\mathbb Z_p$. As of the November 2018 core book updates, what changes were made in the latest printings of the PHB that aren't noted in the errata document? How do I create a deb package for a single python script? I have a single python script that I want to distribute as a deb package. It is a  which shows local date in Unity panel. I did follow  but I could not create a deb package because it fails.   Can someone give me a step-by-step instruction on what I should do? As far as I know this script depends on python-appindicator.   NOTE: I do not want any links to Debian/Ubuntu packaging instructions. I have seen most of them. I don't find them beginner friendly. Is spacetime flat inside a spherical shell? In a perfectly symmetrical spherical hollow shell, there is a null net gravitational force according to Newton, since in his theory the force is exactly inversely proportional to the square of the distance.  What is the result of general theory of relativity? Is the spacetime flat inside (given the fact that orbit of Mercury rotates I don't think so)? How is signal from the cavity redshifted to an observer at infinity? I need to get the size of directory in terminal for signing purposes. I'm using following command:  du -s /path/to/dir   I'm multiplying the result by traditional UNIX block size (512 bytes) and get actual directory size in bytes. However, the Finder's "Get Info" dialog window shows the size slightly smaller than the one calculated with the terminal command. And it seems that it's reproducible on any folder/bundle. What am I missing? Poisson Distribution of sum of two random independent variables $X$, $Y$ $X \sim \mathcal{P}( \lambda) $ and $Y \sim \mathcal{P}( \mu)$ meaning that $X$ and $Y$ are Poisson distributions. What is the probability distribution law of $X + Y$. I know it is $X+Y \sim \mathcal{P}( \lambda + \mu)$ but I don't understand how to derive it. When can we interchange “who/which" and "that”? So far I thought the words who and that are usually interchangeable:   There is the man who saw me.  There is the man that saw me.    Both sentences seem fine, who can be replaced with that. But in the following examples:   This is the man to whom I spoke.  This is the man to that I spoke.    The #2 sounds odd, which is why I don’t think it might be correct. The same observation for the words which and that, while   This is the ball which we used today.  This is the ball that we used today.    Seem to be in order and which can be replaced with that. But in the following examples the #2 sounds odd again.   This is the ball with which I scored.  This is the ball with that I scored.    I wonder if there’s any rule regarding the interchangeability of the above mentioned words. More often that I like to admit I look for a file that contains some strings.  Currently I do:  grep -rl string1 | xargs grep -l string2 | xargs grep -l string3   Is there a tool that does this prettier?  This greps for string1 or string2 or string3.   grep -rl -e string1 -e string2 -e string3   I want files that contain string1 and string2 and string3 but not necessarily on the same line.  Maybe one of the modern greps (ag/ack/rg/sift) can do this?