Skip to content

Instantly share code, notes, and snippets.

View niklasfi's full-sized avatar

Niklas Fischer niklasfi

View GitHub Profile
I have three devices which I use for testing a btrfs-based backup solution on a fedora rawhide machine with the 3.14.0-0.rc3.git2.1.fc21.x86_64 kernel. I have created a d=raid1, m=raid1 array by first filling a disk and then running balance -dconvert=raid1 -mconvert=raid1. The second part of my routine is failing a drive and replacing it with the third, spare drive. For the first test, I wanted to go the simplest of all routes: the drive fails, while the btrfs partition is not mounted and I notice this before I even try to mount it again. This should be a wash
1. mount -t btrfs -o degraded /dev/sdg /data #mount btrfs
2. btrfs device add /dev/sdh /data #add new device to btrfs
3. btrfs device delete missing #delete missing device
Now the second step already fails, because btrfs device add never finishes, allthough iotop shows no activity at all. What you see in [03] and [04] is the dmesg output.
add_library(scsl eigensolvers.c)
set_target_properties (scsl PROPERTIES COMPILE_DEFINITIONS SCSL)
target_link_libraries(scsl multithreading ${LAPACK_LIBS})
add_library(pcsl eigensolvers.c)
set_target_properties (scsl PROPERTIES COMPILE_DEFINITIONS "PCSL=1")
target_link_libraries(pcsl multithreading ${LAPACK_LIBS})
add_library(scpl eigensolvers.c)
set_target_properties (scsl PROPERTIES COMPILE_DEFINITIONS SCPL=1)